-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arduino IDE #4
Comments
Did you flash the atmega with a bootloader? In the Arduino IDE you have to choose "Arduino as ISP" for the programmer and "Arduino Duemilanove w/ Atmega328" as the board. |
Yes, I flashed the bootloader (and the blink example) via ICSP. Thanks for the suggestion to upload via programmer and "Arduino as ISP" as the programmer with "Arduino Duemilanove." I wonder if the IDE has changed at all. Still not working. Sounds like you have used the Arduino IDE to upload in the past? Maybe there's an old edition of the IDE I could upload? Here's the error I'm getting...
I know the chip is working because I've uploaded serial code to the Atmega via ICSP and the serial monitor lights up. |
Here is a short video of the hardware. trim.3EA6FF14-F7BA-4C3C-9524-147370FCB17B.MOV |
If the atmega is working and sending serial data via the PIC, then I can only suggest to put the atmega into a known-working arduino board and see if it is programmable via the serial interface there. But it looks like you soldered the atmega chip onto the proto-board. Then that's not going to work. I used the IDE many times to program all different kinds of arduino boards. It is important to select the right board and programmer type. Did you wire the chip reset line from the DTR of the PIC to the atmega? |
Yes, soldered the Atmega. May be able unsolder the TX and RX lines if need be. Yes, the DTR is connected to the PIC via a 100nF capacitor. |
I tried Arduino as ISP, Arduino as ISP (atmega32u4), ArduinoISP, ArduinoISP.org, AVRISP, and AVRISP mkII and no successful connection. Could you help my understanding with what might be the location of the error? Is it a driver issue? Maybe a ATmega issue (though I've been able to burn the boot loader and upload an example program to the AtMega via a USBasp programmer and ICSP pins)? Maybe an issue with the PIC code (the PIC is performing serial to USB). Video of an upload. |
I just tried again with my board and it works with the same settings as yours. My understanding is that there is nothing magic in the serial comm during the upload. Therefore, since the serial seems to be working, the problem must be in the bootloader. You could verify this with an alternative serial connection to the atmega chip wired up with DTR. If it doesn't work then it probably is the the bootloader. Then you could re-burn the Duemilanova Bootloader to the atmega. |
That is good news, well not as good as Jesus dying for our sins, but, nevertheless, I was worried the newer IDE had changed something. Sweet, I'll see about maybe reflashing the Atmega with the boot loader and maybe trying to connect another Atmega to my setup if need be (I've got a bread board set up for a Atmega) |
I'm also slightly wondering about the resistors I placed in the TX and RX lines. I used 1k ohm because the Arduino nano uses 1k ohm and I believe others use 220 ohm, maybe an issue? |
@jgeisler0303 Bro, thank you so much. I uploaded the wrong boot loader. I uploaded the Uno bootloader. I uploaded the Duemilanove bootloader and the board is uploading. Thank you so much, you're a blessing! |
@jgeisler0303 I'm super thankful! I want to send you one of the first kits being made as a thank you! I've been developing this project for students in Zimbabwe! The students will be able to learn to solder and learn about basic electronics components (I'm going to write an educational instruction manual). I really appreciate you taking the time to help me and I appreciate the work you've put into the project. Would you be willing to email me your mailing address? Would be grateful for the ability to send you thanks! Here's my junk email (that way the bots remain unhappy): |
Hi @svencov , good to hear it's working now! You cannot imagine how happy I am that my work is being put to good use. You might have noticed how old and almost abandoned the project is. And honestly I had my doubts that using an expensive PIC with all the hassle of flashing it, instead of a simple ch340, only to have a through-hole component, is worth it. I must admit that I already have more than enough hardware sitting around in my shelf, collecting dust. And I'm not so much attached to physical tokens. Therefore I would like to thankfully decline your offer. Your reply and your story is thanks enough! I'd really like to know how your project works out, as I am also working in education. So, feel free to keep me posted. |
Did you ever get this to work inside the Arduino IDE? I've assembled everything so far and can program PIC via ICSP however I am having difficulty programming the Atmega328 chip via the Arduino IDE. The Arduino IDE serial monitor is working (displaying values sent by the Atmega328 so I know the PIC is doing something).
The text was updated successfully, but these errors were encountered: