Archive for the ‘I2C’ Category

Must-See Beginner Tutorials For Arduino

Wednesday, March 9th, 2011

[Jeremy] made ten Tutorials about Arduino worth our “All Stars” category. He talks about different themes: Blinking Leds [Intro & #2], Electrical Engineering  [#3],  Analog Inputs [#4], Motors & Transistors [#5], Serial Communication & Processing [#6], I2C & Processing [#7], SPI Interfaces [#8], Wireless Communication [#9] and Interrupts [#10].

Thanks to a generous sponsorship from element14, I’m putting together a tutorial series on using the arduino microcontroller platform!  The arduino is a platform that I’ve done several projects with, and I think it is the best possible way for beginners to get acquainted with electronics.  This tutorial series will be aimed at beginner users, but I’m hoping to keep it going with some more advanced topics a few episodes into the future.

thanks Jeremy! ++

via [JeremyBlum] [Element14]

SoftI2CMaster Library Lets You Add I2C To Any Arduino Pin

Friday, October 1st, 2010

 

[TodBot] shares his latest knoledge about I2C:

Ever wanted to use any pair of pins for I2C on Arduino, not just the dedicated pins on Analog 4 & 5? Me too, so I made a quick little Arduino library called “SoftI2CMaster”, available in the “blinkm-projects” Googlecode repository.

Get it here: SoftI2CMaster.h, SoftI2CMaster.cpp.

It’s still a work in progress, but it can write data pretty successfully and do it over longer cables than normal.

For the VIMBY/Scion Hackerspace Challenge, I created an array of BlinkM MaxM-powered accent lights for the device we made. Because the I2C cable was longer than a few feet, the normal Wire library that BlinkM_funcs.h uses to communicate with BlinkMs couldn’t be used. This is because the Wire library assumes a perfect bus. If there is any noise or other bus problems, the Wire library will currently lock up. For the SoftI2CMaster library, I wanted it to be very tolerant, even lazy, about bus problems and also have more tunable timing to let you slow the bus down. Of course, you still need pull-up resistors on the two lines. I’ve found using 2.2k resistors to be good.

We totally have to give it a try!

via [Todbot]

 

SoftI2CMaster Library Lets You Add I2C To Any Arduino Pin

Friday, October 1st, 2010

 

[TodBot] shares his latest knoledge about I2C:

Ever wanted to use any pair of pins for I2C on Arduino, not just the dedicated pins on Analog 4 & 5? Me too, so I made a quick little Arduino library called “SoftI2CMaster”, available in the “blinkm-projects” Googlecode repository.

Get it here: SoftI2CMaster.h, SoftI2CMaster.cpp.

It’s still a work in progress, but it can write data pretty successfully and do it over longer cables than normal.

For the VIMBY/Scion Hackerspace Challenge, I created an array of BlinkM MaxM-powered accent lights for the device we made. Because the I2C cable was longer than a few feet, the normal Wire library that BlinkM_funcs.h uses to communicate with BlinkMs couldn’t be used. This is because the Wire library assumes a perfect bus. If there is any noise or other bus problems, the Wire library will currently lock up. For the SoftI2CMaster library, I wanted it to be very tolerant, even lazy, about bus problems and also have more tunable timing to let you slow the bus down. Of course, you still need pull-up resistors on the two lines. I’ve found using 2.2k resistors to be good.

We totally have to give it a try!

via [Todbot]