Go Down

Topic: how to connect to a bare board using a 168a pu? (Read 1 time) previous topic - next topic

Nick Gammon

Async serial idles "high" on the Arduino. That is, +5V is normal, on both pins, if they are doing nothing. Mind you, it is the sending end that would be doing the idling. So, unconnected to anything, I would expect the Tx pin to be high, and the Rx pin to be low or not determined. But if you are using an FTDI cable, I would expect both pins to be high.
http://www.gammon.com.au/electronics

jonisonvespaa

ive ordered a new usb to ttl converter, im sure its duff, the circuit is 100% and ive tryed it with known good ic's, ive also noticed the leds on the board tx, and rx flash very weak as well

jonisonvespaa

right,

ive got a new usb/ttl converter, still not working on the above 168 chip, but taken out the 168 and put in a 328 chip works fine, so the circuit is ok and converter is ok, ive tryed every 168 option ans still docent download, this is the error im getting, any ideas?

avrdude: stk500_getsync(): not in sync: resp=0xc0

abrookfield

Sounds like you burned a 328 bootloader into a 168 chip
www.reeftopper.com

jonisonvespaa

thanks abrookfield, i will try to to burn a 168 again

jonisonvespaa

#20
Jun 19, 2012, 05:07 pm Last Edit: Jun 19, 2012, 05:21 pm by jonisonvespa Reason: 1
i really am loosing the will to live,

ive re-burnt the bootloader 168, burns it ok, then go to download a sketch into a 168 sketch its just not playing, ive got the latest version 1.0.1.


ive even used another 168 chip, still does the same as above

Nick Gammon

What are you doing to ensure that the chip resets when you try to upload a sketch?
http://www.gammon.com.au/electronics

jonisonvespaa

#22
Jun 19, 2012, 11:06 pm Last Edit: Jun 19, 2012, 11:10 pm by jonisonvespa Reason: 1
hi nick,
im switching 0v to pin 1, just seems really strange i can download a sketch to a 328 chip on a bare board then put in a 168 into same board and it wont work, ive tryed a few168s seems to load the bootloader no problem.
just wondering if there is any other software i could use to download ?
thank you

jonisonvespaa

#23
Jun 20, 2012, 06:59 pm Last Edit: Jun 20, 2012, 07:06 pm by jonisonvespa Reason: 1
ok now really desperate now got the camera out may be clutching at straws but, is this the correct connection for the ribbon cable? its exactly like in the ebay edvert, and it does burn the bootloader so must be correct?

sorry for the large pic, but looks good in focus!

Nick Gammon


ive ordered a new usb to ttl converter, im sure its duff, the circuit is 100%


Is that really a USB to TTL converter in the photo? In that case you don't plug it into the SPI (ICSP) pins.
http://www.gammon.com.au/electronics

jonisonvespaa

hi nick,
no its the usbtinyisp bootloader programmer.

Nick Gammon

Right. Well you don't use that to upload using the bootloader. The bootloader uses the serial ports.
http://www.gammon.com.au/electronics

jonisonvespaa

#27
Jun 21, 2012, 09:29 am Last Edit: Jun 21, 2012, 09:43 am by jonisonvespa Reason: 1
hay nick
i wasnt using the usbtinyisp to try to upload sketches, i was using it to download the bootloader onto the ICSP header.

the USB to TTL cable works perfectly on a 328 ic downloading sketches, (pins 2/3 rx/tx) but will not download a sketch to this 168 ic same circuit.


Nick Gammon


(3878.05 KB, 3888x2592 - viewed 2 times.)


These 3 Mb pictures are a bit ridiculous. Can you stop doing that? They are too big to fit on the screen, so if we have to resize them to view them, you may as well save 5 minutes of downloading time by resizing them at your end.
http://www.gammon.com.au/electronics

Nick Gammon


i wasnt using the usbtinyisp to try to upload sketches, i was using it to download the bootloader onto the ICSP header.

the USB to TTL cable works perfectly on a 328 ic downloading sketches, (pins 2/3 rx/tx) but will not download a sketch to this 168 ic same circuit.


Right, so that earlier picture wasn't relevant? I can't see from that photo, large though it might be, what you have wired to what.
http://www.gammon.com.au/electronics

Go Up