Arduino To ATtiny2313 via I2C

preview_player
Показать описание
My second foray into inter-chip communication. This time using I2C two wire interface with the ATtiny as a slave and using an Arduino Uno as the master. I'm using Don Blake's conversion of the Atmel library to drive the slave and the standard Wire library on the Arduino as master.

I'm using AVR Studio 5 to program the ATtiny.

Analog pin4 on the Arduino goes to SDA (pin 17) on the ATtiny, Arduino analog pin 5 goes to SCL (pin 19). I used a 10k resistor on both lines. You must also connect the ground on the ATtiny to one of the ground pins on the Arduino.
Рекомендации по теме
Комментарии
Автор

Hrm, it seems to be gone. I'll see if I still have a copy at home. :/

gristc
Автор

Yes, it works. Thnx, this helps a lot with my own project.

gerritbosch
Автор

unknown paste id... where is the code?

mustafasarfaraz
Автор

I think the link in the description should work now? Please let me know if it doesn't.


gristc
Автор

Would love to see your code for the tiny2313. Is that possible?

gerritbosch
Автор

Hi @gristc, I have a question for you, any chance for that ATtiny2313 i2c slave code to be reworked for Arduino IDE compatible? Regards, Viktor

beicel