Hi guys I've downloaded all the required libraries to start communicating with the Attiny85. I followed the tutorial described here:
http://playground.arduino.cc/Code/USIi2c
However, I have no idea on how to connect the SDA and SCL to the attiny85 from the Arduino. I heard that you have to use pull-ups connected to ground. Here is an image about how I predict to do it. I heard the SDA and SCL pins on the Arduino Uno are A4 and A5 respectively, am i right?
Please tell me if the schematic is cool or not 8) And give some additional tips if you can! Wil Really appreciate it!
Thanks!
(note, the resistors have a value of 4.7K)
Mixania,
Actually, the pull up resistors need to go to the 5V supply pin on the Uno. You need to leave the ground connected to the Uno though, and you will need to power the ATTiny. Since they draw so little current I usually use the 5V pin on the Uno for that too when prototyping. Don't forget a .1uf capacitor between the ground and power of the ATTiny, for noise decoupling.
TomJ
Tumbleweed:
Mixania,
Actually, the pull up resistors need to go to the 5V supply pin on the Uno. You need to leave the ground connected to the Uno though, and you will need to power the ATTiny. Since they draw so little current I usually use the 5V pin on the Uno for that too when prototyping. Don't forget a .1uf capacitor between the ground and power of the ATTiny, for noise decoupling.
TomJ
Awesome, thanks! You were very helpful!
For that matter, don't forget to power the ATtiny either (pin 8).