I built a shrimp
http://shrimping.it/blog/
with an atmega which had a preloaded arduino uno bootloader. Now I'm trying to get the bootloader on to the 4 other atmega's which i just bought from tayda.
I followed a guide and tried optiLoader, but the serial monitor showed "result = 0x0" when i run the program. I checked the wiring and I'm sure it was fine. I touched the resistor of the board with the chip being programmed on it (by mistake) and felt a shock (so i know it's getting power). I'm powering the programming board with a CP2102and the programmed board with pin 9 of the programming board.
Any help is appreciated.
Nick Gammon's code is one approach
You would use the working Arduino with Nick's sketch to program the blank chips via ISP.
A blank, never used uC should program without a crystal but if you continue to fail, try the crystal & load caps as the chips may have been previously programmed.
Ray
mrburnette:
Nick Gammon's code is one approach
Gammon Forum : Electronics : Microprocessors : Atmega bootloader programmerYou would use the working Arduino with Nick's sketch to program the blank chips via ISP.
A blank, never used uC should program without a crystal but if you continue to fail, try the crystal & load caps as the chips may have been previously programmed.
Ray
Thanks for answering XD, but I believe the method you suggested requires 2 arduino boards. I'm working with 2 breadboards.
I'm working with 2 breadboards.
But... If they think they are UNOs, then the ArduinoISP sketch or Nick's sketch will work... Just site as Nick or
Shows
Ray
mrburnette:
But... If they think they are UNOs, then the ArduinoISP sketch or Nick's sketch will work... Just site as Nick or
http://arduino.cc/en/Tutorial/ArduinoISP
ShowsRay
Oh alright. The wiring is pretty similar to the optiLoader. I can't connect 5v from the programmer to anything as I'm using a CP2102 to power the board, so the 5v pin is being used. One guide suggested powering the programmed board with pin 9 from the programer board. Will that work? Other tutorials have said not to power the programmed board individually. Can you suggest any fixes?
Thanks
LS
LS:
http://shrimping.it/blog/contact/
Yes, the #Shrimp provides a very cheap alternative to the Arduino Uno hobby microcontroller board, and is indistinguishable for many purposes, apart from its form factor and construction. For some projects, making a #Shrimp up from parts is more educational or more fun than buying a £20 Arduino as well as being cheaper. The diagram at http://arduino.cc/en/Hacking/PinMapping shows you the relationship between the pins as they are named in an Arduino project, and the pins which break out of a #Shrimp.
I'm going to fuss just a bit because you are asking for assistance on the Arduino.cc forum when you were too cheap to buy a "real" Arduino. My suggestion to all newbies is to buy one real Arduino so that you can follow along when you get a question answered in the forum. The real ones cost a bit more because a significant portion of the profits go back to support this board and future research and development.
The quote from the shrimp link says your Shrimp is like an Arduino. Therefore, it should run ArduinoISP which is one of the examples included in the Arduino ZIP download. The web is full of links about ArduinoISP. The Shrimp link about PinMapping will give you the physical pin numbers and the Arduino Signal Equivalences.
I'm afraid that being frugal has some negative consequences. The Customer Reviews on Tayda's 328P-PU page clearly state that the chip is not programmed and gives examples of how others installed the bootloader. You know, you can buy the 328P-PU already installed with the bootloader?
At this point, I would suggest that you either call a friend that has a real Arduino and use it for the ISP or that you figure this out on your own. You have everything you need to get through this but experience... figure it out, and you will then have that too.
Ray
Added:
Maybe this will help you out... see if you can find anyone in your city to assist.
http://forum.arduino.cc/index.php?board=28.0
You can use the forum "PM" to send a personal message
- optiloader will want your target to have a crystal; it's designed for bulk "upgrading" of Arduinos to optiboot, so it sets the fuses as well as burning the bootloader, and it sets the fuses as appropriate for an arduino WITH a crystal.
- optiloader will attempt to power the target through Arduino digitial pin 9. This is NOT the same as pin 9 of the AVR chip. (actually, it looks as though this might be correct. Do you really have power going into the bus rail marked "-" and gnd to the bus rail marked "+" ?) You'd be better off just paralleling the power between the two AVRs; powering the target from an IO pin isn't as good an idea as I originally thought.
- you have no bypass caps on the target.
LightningSoul:
I touched the resistor of the board with the chip being programmed on it (by mistake) and felt a shock (so i know it's getting power).
You got a shock from 5 volts? Sounds fishy to me.
Unprogrammed chips will have the fuse set to divide clock by 8. This will make them hard to program until you fix that.
I can't see any crystal loading capacitors on your breadboard.
It worked! I added a crystal and 2 caps and it worked. I'll upload my new wiring soon in case anyone else encounters a similar problem.
Thanks a lot everyone XD