I am currently developing a board and I need to take the AtMega 328 out of the uno in order to fit it in a box.
I don't want to remove the AtMega from the board everytime I need to program it.
What do I need to program it using the arduino board as a 'burner'?
Do I need only 3 pins? Considering there's no micro on the arduino uno and the AtMega has the Arduino Bootloader.
MyBoard to Arduino Uno
TX to Arduino Uno Pin 0
RX to Arduino Uno Pin 1
Reset to +5V (or to the same reset pin used in the uno)
moothz:
Do I need only 3 pins? Considering there's no micro on the arduino uno and the AtMega has the Arduino Bootloader.
MyBoard to Arduino Uno
TX to Arduino Uno Pin 0
RX to Arduino Uno Pin 1
Reset to +5V (or to the same reset pin used in the uno)
Is the standalone chip powered? You need to connect 5V to the standalone chip's 5V.
I don't see ground was involved anywhere. I hope you know what you are doing.
Reset should be connected to the arduino reset, not to 5V. These two are not alternatives.
You also should remove the ATMEGA328P from the arduino board before programming the standalone chip.
If you are willing to shell out $20, get a USB BUBII TTL-USB adapter from modern device to program your standalone system so you can use your arduino for other projects. It's a one-time investment. All my recent standalone designs have connectors to the USB BUBII for downloading programs. I also have a setup just to burn bootloader with westfw's optiloader.
Yes, it is powered, and yes I included the ground on the connector, don't worry
I'm new to the Atmel/Arduino world, but I used to work with Microchip's PICs.
It's a device that will be attached to a door, I want to connect a cable and program the AtMega without much complication.
I plan on building something like you mentioned in the future. I know where to connect the Tx/Rx and GND cables, but what about the reset pin? Where do I connect it to in the ttl usb adapter (direct to the GND [with a pullup] so it resets whenever I connect the cable?)?
For now I just want to use my Arduino UNO board to program it.
So... it means I can do it?
That makes me happy! A 4 wire connector to program it without complications!
Arduino board has reset on the far left side of its row of power pins. If you get a TTL USB adapter, make sure they have a DTR output. The other adapter I have doesn't so I have to have a reset button on the project to press it just at the right time for upload. The usb bubII has such line you can connect directly to atmega328P reset line. The reset line on your project should be pulled up with a 10K resistor.
You can get a usb to serial convertor for about 10$ on ebay and it works great for me, and they come with the reset too, I think it was a cp2010 or something like that
and the reset isnt necessary if you don't mind resetting it manually just as the code starts to upload
winner10920:
You can get a usb to serial convertor for about 10$ on ebay and it works great for me, and they come with the reset too, I think it was a cp2010 or something like that
and the reset isnt necessary if you don't mind resetting it manually just as the code starts to upload
I have one of those. Where do you config it to send reset? I'd like to be able to do that.
winner10920:
You can get a usb to serial convertor for about 10$ on ebay and it works great for me, and they come with the reset too, I think it was a cp2010 or something like that
and the reset isnt necessary if you don't mind resetting it manually just as the code starts to upload
I had one of those too, but it stopped working after a couple of uses. It also blew up the USB driver board in my PC, lucky i use a seperate PC for programming, else my $2000 laptop would be broken right now.
What i'm trying to say is that you could better spend a bit more on a programmer than get one that breaks easily.
Idk mines lasting me more than a month now no problem with windows 7 or my usb
I think there's a program to set that up from the manufacturer but it wasn't worth it for me to figure it out, I just press the reset button when its done compiling
which I guess when you pay 10$ its not so bad