MPU6050 teapot with other microcontrollers

edited May 2016 in Arduino

greetings !! After successfully running MPU6050 DMP Teapot Demo for Arduino, Now i want to implement the same using other microcontroller ( cypress or PIC or Renesas ). Do i need to include any other libraries for this in processing ? What should be the packet format for data to be sent from other controllers. For arduino we used ...// packet structure for InvenSense teapot demo as- uint8_t teapotPacket[14] = { '$', 0x02, 0,0, 0,0, 0,0, 0,0, 0x00, 0x00, '\r', '\n' }; what does each byte represent in this format ?? Thanks.


  • edited January 2017

    I guess uint8_t means unsigned char maybe? :-??

    I've just tweaked my previous "Efficient Serial ReadBytes" example from:

    It's relying on Serial's buffer() & readBytes() methods in order to receive those 14 sent bytes within serialEvent():


     * Efficient Serial ReadBytes (v2.0)
     * GoToLoop (2016-May-06)
     * mpu6050-teapot-with-other-microcontrollers#Item_1
     * out-of-control-y-axis-rolling-graph#Item_1
    import processing.serial.Serial;
    static final int BYTES = 14, PORT_IDX = 3, BAUDS = 9600;
    final byte[] receivedBytes = new byte[BYTES];
    void setup() {
      final String[] ports = Serial.list();
      new Serial(this, ports[PORT_IDX], BAUDS).buffer(BYTES);
    void draw() {
    void serialEvent(final Serial s) {
      redraw = true;
  • dear gotoloop, Which microcontroller and sensor was used for your application. What consideration should be taken in to account while using processing environment along with other microcontroller and mpu6050. I am willing to model mpu6050's movement to processing using cypress/renesas microcontroller.

  • I don't have any of those hardware. It's completely a shot in the dark attempt. :-O

Sign In or Register to comment.