10 Replies Latest reply on Feb 25, 2016 5:46 AM by wdobrzyc

    Romeo for Intel® Edison Controller problem with i2c communication with integral motor driver L298P

    wdobrzyc

      Hi,

       

      I am working with Romeo for Intel® Edison Controller (With Intel® Edison). On this board there is integral motor driver L298P.

      I am running motors with library ouki-wang/remeo4edison - C++ - GitHub  with success.

      I was trying to run my motors without this library direct via i2c bus. it does not work for me. I used same i2c command as is in this library.

      Can someone suggest me what is wrong with my code ?

       

      I want to run motor1 with max speed 255

       

      #include <wire.h>
      void setup() {
      Wire.begin(); 
      Wire.beginTransmission(4);
      Wire.write(0x55);
      Wire.write(0xaa);
      Wire.write(0xc1); 
      Wire.write(0xff);
      Wire.write((unsigned char)(0x55+0xaa+0xc1+0xff));
      Wire.endTransmission(); 
      }

      void loop() {
      }