Go Down

Topic: I2C problem with Wire.endTransmission (Read 809 times) previous topic - next topic



I've just started up a project i've been chasing parts for for quite a while, but now at last i've started programming.

Im connecting a MD03 motor controllet to an arduino mega 2560 via I2C.

I've looked at some examples, and foud several examples of this exact application.

So fas so good. But when i try to get the firmware number from the motorcontroller and print it in the serial monitor i get nothing. I looked around this forum and found that some have had the problem that the Wire.endTransmission command shuts down the USB connection, but I have'nt seen a single solution to this problem.

Does someone have a solution to this problem or at least an idea?



This is your MD03, http://www.robot-electronics.co.uk/htm/md03tech.htm ?
The Wire.endTransmission shutting down the USB connection. I have never heard of that.
They provide code (not Arduino code) for the I2C, but I don't understand that. But they say it is the same as the 24C04, so it should be easy.

The first thing to do is the i2c scanner, http://playground.arduino.cc/Main/I2cScanner

Nick Gammon

Post your code please.

How to use this forum

Also see: http://www.gammon.com.au/i2c
Please post technical questions on the forum, not by personal message. Thanks!

More info:

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131