3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.


A Framework For Making Affordable & Stylish Modular Controllers (USB to MIDI, HID, or Serial)

Step 12Linking Module Together With I2C

Linking Module Together With I2C

To enable module->module communication you simply connect the modules together and enable I2C-mode in the code. Only your master module will plug into the computer via USB. You must connect all your modules together, then plug in the USB. If you plug in USB before connecting the modules together there will be no communication and all the controllers will freeze. 

DO NOT plug the modular connectors in backwards to the PCB or bad things may happen. Ensure your red cable is lined up with the power and the black cable is lined up with ground at all times. 

Below is a video showing module->module connections between three modules (one master, and two slaves). 


You can link as many modules together as you like. As you can see from the video, each slave module had a free I2C slot allowing more modules to be connected in series. 



« Previous StepDownload PDFView All StepsNext Step »
5 comments
Mar 29, 2012. 5:23 AMbalduin-kowalski says:
Hi there, I have an other question concerning the I2C module->module communication. It looks like a great feature if you want to use all modules with only one USB-Port. But if I have enough USB-ports on my computer it seems to be much easier just to connect every single module via its own USB. Or would it be a problem if I have thee Teensys all connected via different USB-ports to tractor?
Mar 29, 2012. 7:33 AMbalduin-kowalski says:
Hmm, okay. But can you just tell me WHY it is always better to use I2C? Don´t get me wrong, but I would just like to know the pros and cons. Yes, it is easier if you can use all modules with only one USB-Port, but this also means you can not use the slave-modules as standalone-controllers anymore (unless reprogramming them).
Jan 23, 2012. 12:10 AMsinkingships_41 says:
video is private :/

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
66
Followers
2
Author:Fuzzy-Wobble
I am a human from planet earth. I use my brain to make things. fuzzywobble.com