I used the example you are referring to, but it doesn't work.
After wiring as the scheme shows and uploading the sketch there is no connection between arduino and the MD25. It doesn't even read the software version. That's why I thought I should use another sketch since this one is for the MD23. For example: the address for the MD23 in the sketch is "#define md23Address 0x58 // Address of the MD22", and in the tech specs it says the MD25 is shipped with the default address 0xB0.
There is an inconsistancy in the information.
Should MD25 work with the MD23 sketch ?
Just a dumb-ass guess, but I suspect this is setting the speed to the value stored in x. Somewhere prior to this code, you would need to define x, and assign it a value.
Yup, 'x' must be declare earlier in the code. Sorry, I'm new to programming..
Anyway, I just want to test my Arduino Mega & interface it with MD25 to control my robot. For a start, I only want Arduino to talk with MD25 ie; asking for Battery volts. I guess this will be the simplest i2c code for testing. So, this is my code;