Pages: 1 [2] 3   Go Down
Author Topic: how to connect to a bare board using a 168a pu?  (Read 1289 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Melbourne, Australia
Online Online
Brattain Member
*****
Karma: 511
Posts: 19367
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Atlanta
Offline Offline
Full Member
***
Karma: 4
Posts: 128
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sounds like you burned a 328 bootloader into a 168 chip
Logged


uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: June 19, 2012, 10:21:20 am by jonisonvespa » Logged

Global Moderator
Melbourne, Australia
Online Online
Brattain Member
*****
Karma: 511
Posts: 19367
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What are you doing to ensure that the chip resets when you try to upload a sketch?
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: June 19, 2012, 04:10:24 pm by jonisonvespa » Logged

uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!


* IMG_9583.JPG (3593.26 KB, 3888x2592 - viewed 11 times.)
« Last Edit: June 20, 2012, 12:06:39 pm by jonisonvespa » Logged

Global Moderator
Melbourne, Australia
Online Online
Brattain Member
*****
Karma: 511
Posts: 19367
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi nick,
no its the usbtinyisp bootloader programmer.
Logged

Global Moderator
Melbourne, Australia
Online Online
Brattain Member
*****
Karma: 511
Posts: 19367
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Right. Well you don't use that to upload using the bootloader. The bootloader uses the serial ports.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

uk
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.



* IMG_9585.JPG (3878.05 KB, 3888x2592 - viewed 6 times.)
« Last Edit: June 21, 2012, 02:43:31 am by jonisonvespa » Logged

Global Moderator
Melbourne, Australia
Online Online
Brattain Member
*****
Karma: 511
Posts: 19367
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

(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.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Global Moderator
Melbourne, Australia
Online Online
Brattain Member
*****
Karma: 511
Posts: 19367
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Pages: 1 [2] 3   Go Up
Jump to: