tag:blogger.com,1999:blog-4542176549692404194.post6818236750618260920..comments2023-03-18T04:12:28.727-05:00Comments on Projects from Tech: I2C HC-SR04 Sonar Module: ATtiny85 I2CMatthewhttp://www.blogger.com/profile/07493487402447428879noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-4542176549692404194.post-45540394666700327122014-10-11T01:38:45.692-05:002014-10-11T01:38:45.692-05:00Hi, I am recently trying to connect attiny84 and a...Hi, I am recently trying to connect attiny84 and a gyroscope via I2C. I use arduino uno as ISP to upload my program to attiny. My problem is, I have import the i2c master library in my program from the arduino website, however, when i compie, it shows errors like,"PIN_USI_SCL' was not declared in this scope" . Which part do I make mistake? Is it the library's problemChing-Hsiang Chennoreply@blogger.comtag:blogger.com,1999:blog-4542176549692404194.post-83407239531331195092014-05-25T18:32:17.542-05:002014-05-25T18:32:17.542-05:00I would have to look more into it. I've always...I would have to look more into it. I've always found I2C troublesome on the ATtiny. I just don't feel like I have a deep enough understanding of it to really help you too much. Perhaps in the code the clock speed is defined and must be changed to 16MHz. <br /><br />I would try to get I2C running with that many ATtinys without the sonar (maybe you have already done that). Then I would add the sonar module and code. Maybe the sonar delay is messing with it. <br /><br />You'd probably be better off asking on the forum. In this case I don't know that I have the expertise to help you. Thanks for reading!Matthewnoreply@blogger.comtag:blogger.com,1999:blog-4542176549692404194.post-61237287164386499022014-05-22T06:30:49.616-05:002014-05-22T06:30:49.616-05:00This is such a great project. I followed the inst...This is such a great project. I followed the instructions step by step and i have a problem. I bootloaded the attiny 85 at 16mhz instead of 8 and i Power it with 5 volts. <br />The problem is that if i daisy chain more than 2 on the same I2c line (they all have pullup resistors and they join the I2c bus with a delay of 10 ms each) The entire line get stuck after a little while.<br /><br />Why?zipporoboticsnoreply@blogger.com