Pages: 1 2 [3] 4 5 6   Go Down
Author Topic: UNO as ISP?  (Read 9055 times)
0 Members and 1 Guest are viewing this topic.
Scotland
Offline Offline
Edison Member
*
Karma: 24
Posts: 1207
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

John, can you post a photo of your setup please, and confirm the caps you are using.
Double check :-

Correct Chip choosen in tools
Correct Port choosen in tools (for the chip your programming)
Check voltages on the chip - +5v (+/- 0.3)
check continuity from chip to chip - no power on boards. test top of leg to top of leg, this will check the wiring. (I get this fault from time to time).


Drew.
Logged

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here are the pics:
http://img708.imageshack.us/i/sam0334f.jpg/
http://img705.imageshack.us/i/sam0326v.jpg/
http://img40.imageshack.us/i/sam0327u.jpg/
http://img18.imageshack.us/i/sam0329a.jpg/
http://img405.imageshack.us/i/sam0330p.jpg/
http://img835.imageshack.us/i/sam0331t.jpg/
http://img825.imageshack.us/i/sam0332s.jpg/
http://img819.imageshack.us/i/sam0333z.jpg/

i still get the same error. pls help me.
Logged

Switzerland
Offline Offline
Sr. Member
****
Karma: 6
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If your breadboard is like mine, the power-rails are broken mid-way along.  There's a slightly larger gap between adjacent groups of 5-holes to indicate the break.  Check you have power everywhere you should have.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I agree with tim7:

http://img40.imageshack.us/i/sam0327u.jpg/

This picture shows the power ground rail don't continue along the bottom.  Jump the power and ground rails around 35 to some free holes near 25.

I just got some atmegas from mouser in the mail today and followed this thread...and was able to burn the bootloader without a problem.  You wiring all looks good except for the power connections on the bottom rails.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I agree with tim7:

http://img40.imageshack.us/i/sam0327u.jpg/

This picture shows the power ground rail don't continue along the bottom.  Jump the power and ground rails around 35 to some free holes near 25.

I just got some atmegas from mouser in the mail today and followed this thread...and was able to burn the bootloader without a problem.  You wiring all looks good except for the power connections on the bottom rails.


Thanks guys .. u guys are right on the power connection.. i finally done burning it. Hope this thread useful for others too.
Anyway, is there a way i can test my newly bootloaded chip with arduino sketch (e.g.blink) without removing the original one which is on my UNO now? coz i want to be absolutely sure that my chip properly bootloaded before i remove the original one and place the newly bootloaded one for other projects.
Logged

Switzerland
Offline Offline
Sr. Member
****
Karma: 6
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you've disabled auto-reset on the UNO, it should be able to upload sketches to the breadboard chip.  AFAIK ArduinoISP uses the same upload protocol as the bootloader, so to Avrdude and the Arduino IDE it should appear like a normal Arduino board.  Keep the wires connected as they were for installing the bootloader and try it.
Logged

Scotland
Offline Offline
Edison Member
*
Karma: 24
Posts: 1207
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Connect Ground from uno to Ground on stand alone (pin 7 or 22)
connect uno Rx to pin 2
connect uno Tx to pin 3

upload while holding reset on uno
(remember tio tap reset on standalone when sketch size is shown in IDE)
It should upload to standalone



Drew.
Logged

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Connect Ground from uno to Ground on stand alone (pin 7 or 22)
connect uno Rx to pin 2
connect uno Tx to pin 3

upload while holding reset on uno
(remember tio tap reset on standalone when sketch size is shown in IDE)
It should upload to standalone



Drew.

thanks...So i have to add a reset button on the breadboard(standalone)?
Logged

Scotland
Offline Offline
Edison Member
*
Karma: 24
Posts: 1207
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, a 10K pullup resistor from pin 1 to 5v and pin 1 to button, and other side of button to 0v.


Drew
Logged

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, a 10K pullup resistor from pin 1 to 5v and pin 1 to button, and other side of button to 0v.


Drew

thanks..I did what you said... however i cant seems to load the sketch on the breadboard chip.

Basically i connected an LED to pin 19 on the the breadboard chip which i guess is arduino digital pin 13. i upload the blink example and i remove the reset connection on my breadboard and it blinks and i am very happy... however when i modify the sketch in the blink sketch eg(delay 5000), the uploading successful but this time, only the led on arduino blink as modify but the led on the breadboard just blink(remain same). Any idea whats wrong with it?
Logged

Switzerland
Offline Offline
Sr. Member
****
Karma: 6
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In this setup you have two micro-controller chips connected to the same serial interface: one on the Arduino board, and one on the breadboard.  In order for this to work, one of the chips must not interfere with the serial interface signals whilst the other is being programmed.  It sounds as though the chip on the Arduino board is being reset, causing its bootloader to take over the serial interface.  Check that the Arduino chip has its reset suppressed, and has its RX and TX pins both configured as inputs.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In this setup you have two micro-controller chips connected to the same serial interface: one on the Arduino board, and one on the breadboard.  In order for this to work, one of the chips must not interfere with the serial interface signals whilst the other is being programmed.  It sounds as though the chip on the Arduino board is being reset, causing its bootloader to take over the serial interface.  Check that the Arduino chip has its reset suppressed, and has its RX and TX pins both configured as inputs.


i have a 10uf cap on the +reset-gnd- on the UNO board as mention that is use to disableautoreset?
Logged

Switzerland
Offline Offline
Sr. Member
****
Karma: 6
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, the 10uF capacitor should normally disable the reset.  But if the modified sketch is being uploaded to the Arduino, it must be being reset somehow.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

After reading the tutorial on arduino breadboard site, it said that i need to remove the microcontroller chip on my arduino board in order to upload a sketch/program
the newly bootloaded chip on my breadboard. can i program the chip on the breadboard without removing the chip on my arduino board? i tried using the method below but it doesnt work and i have no idea what went wrong. i know the easiest way is to remove the original chip on my board and pop the new chip in to program? but i worry i make damage the chip. pls help me.
Logged

Switzerland
Offline Offline
Sr. Member
****
Karma: 6
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's strange that you managed to upload the bootloader and Blink to the breadboard, but cannot upload anything else.  Which bootloader are you using?  The Uno bootloader is designed to work with auto-reset, so only waits a very short time for programming to start.  Are you certain that the Arduino is configured with RX and TX as inputs?

If programming via the TX/RX pins doesn't work, rearrange everything as for the bootloader installation and try uploading sketches via ArduinoISP.
Logged

Pages: 1 2 [3] 4 5 6   Go Up
Jump to: