thanks for sharing. if you have the possibilty to burn bootloaders you should check ladyadas "no startup delay" version. to get rid of thos ten 10secs at the beginning.
Cheers, the 4 blinks followed by a single blink after reset is the Adaboot signature. For i2c we use the wire library, A4+A5 on both chips, and two 1.8k resistors. There are some wire/twi/i2c examples at Arduino, and some over at wiring. We've tested this arrangement using two serial devices and one chip serving as the master, and the second as slave, and it works very well. I can't post the test project because it's work related, so I'll see what else I can come up with to demo i2c :)
*lol* no worries, Paul Badger supplies all his 168's with Adaboot, so there's no clever on my part that it happens to be there ;) i2c uses 2 analog 4&5 (pins 27&28) on both IC's, so there's no conflict with both rx/tx (pins 2&3). The wire library is from the wiring board, which has 2 serial buffers, and arranging two 168's like this provides a similar scope of capabilities, but without the expense, and uses considerably less real estate.
thanks for sharing. if you have the possibilty to burn bootloaders you should check ladyadas "no startup delay" version. to get rid of thos ten 10secs at the beginning.
i'm waiting for an i2c example though :-)
mykuki 4 years ago
Cheers, the 4 blinks followed by a single blink after reset is the Adaboot signature. For i2c we use the wire library, A4+A5 on both chips, and two 1.8k resistors. There are some wire/twi/i2c examples at Arduino, and some over at wiring. We've tested this arrangement using two serial devices and one chip serving as the master, and the second as slave, and it works very well. I can't post the test project because it's work related, so I'll see what else I can come up with to demo i2c :)
modxhost 4 years ago
arrgh, you're right. i missed your manual reset try tried to write something smart :-/
i could as well ask this at the forum, but does i2c conflict with RXTX functionality?
best, kuk :-)
mykuki 4 years ago
*lol* no worries, Paul Badger supplies all his 168's with Adaboot, so there's no clever on my part that it happens to be there ;) i2c uses 2 analog 4&5 (pins 27&28) on both IC's, so there's no conflict with both rx/tx (pins 2&3). The wire library is from the wiring board, which has 2 serial buffers, and arranging two 168's like this provides a similar scope of capabilities, but without the expense, and uses considerably less real estate.
modxhost 4 years ago