4
\$\begingroup\$

I have an I2C peripheral that I need to interact with using a Windows 7 PC. The interaction could be through a terminal emulator, or any program that can produce a real-time log that I can process using a scripting language. Based on your experience, what is the least painful way to achieve this?

\$\endgroup\$
7
\$\begingroup\$

In my experience the easiest way is the Bus Pirate, which is also a cheap alternative: http://www.seeedstudio.com/depot/bus-pirate-v3-assembled-p-609.html?cPath=61_68

You can find a good tutorial for it: http://dangerousprototypes.com/bus-pirate-manual/i2c-guide/

And people in forums such as this is are familiar with it. For hobbyists, bus pirate is the way to go.

\$\endgroup\$
  • \$\begingroup\$ Thanks. After a try with another possibility, I got the Bus Pirate and it worked well for me. \$\endgroup\$ – Saar Drimer Sep 8 '12 at 0:47
1
\$\begingroup\$

The are plenty of USB to I2C converters around, this would maybe be the "least painful" way to connect to your peripheral. Here is an example:

USB to I2C Converter

This one is a bus master, and seems to have half decent documentation and some sample C# code.

\$\endgroup\$
  • 3
    \$\begingroup\$ Oli, I'm not so fond of GIYF in answers, it doesn't add anything. I prefer to see that the answerer picks one example and gives details about that, like you did as well. The GIYF is then superfluous; OP knows about Google. HANWE! :-) \$\endgroup\$ – stevenvh Sep 1 '12 at 6:12
  • \$\begingroup\$ @Steven - I think we had this before ;-) I agree it's not of much value, but I don't think it does any harm (I only linked it as I had already googled and had the page open) In some cases folk don't know what search terms to use, so I think it can add something in rare cases. There's certainly nothing condescending about this as with LMGTFY links. I would never use it just as an answer though, just to illustrate how I came up with one (for the same reason I often include my Farnell parametric searches) \$\endgroup\$ – Oli Glaser Sep 1 '12 at 16:56
  • 1
    \$\begingroup\$ How does it show up, for example, in Windows? As serial port (COM) or as I2C? If it is Serial, it is totally useless because it is error prone and doesn't provide the speed of I2C. When Serial you can also use an tiny Arduino to translate I2C to COM over USB. So what is it, does it really make any sense? \$\endgroup\$ – Codebeat Aug 31 '17 at 3:24
1
\$\begingroup\$

I would use the ATMega chip from an Arduino Uno, or the Arduino itself. It is easy enough to interface via a terminal from a PC, then link commands from the terminal to the Arduino and have it do things with the I2C bus.

Examples abound in Arduino land...

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.