Forum >Replies by tnapoleon74
userhead tnapoleon74
Replies (5)
  • You Reply: Look at basecamelectronics - They have a serial API to control TX/RX interface. They have several projects on got hub that will be of use.

    For example:

    void Gimbal_SendCommand(byte Command, byte *Data, int Size)
    {
    byte i, Checksum = 0;


    Serial1.write('>');
    Serial1.write(Command);
    Serial1.write(Size);
    Serial1.write(Command + Size);
    for(i=0; i < Size; i++)
    {
    Checksum += Data[i];
    Serial1.write(Data[i]);
    }
    Serial1.write(Checksum);

    // Serial.print(Command);
    // Serial.println(" Message sent.");

    delay(20); /* 20ms delay as suggested in SimpleBGC firmware */
    }
  • You Reply: Look at basecamelectronics - They have a serial API to control TX/RX interface. They have several projects on got hub that will be of use.

    For example:

    void Gimbal_SendCommand(byte Command, byte *Data, int Size)
    {
    byte i, Checksum = 0;


    Serial1.write('>');
    Serial1.write(Command);
    Serial1.write(Size);
    Serial1.write(Command + Size);
    for(i=0; i < Size; i++)
    {
    Checksum += Data[i];
    Serial1.write(Data[i]);
    }
    Serial1.write(Checksum);

    // Serial.print(Command);
    // Serial.println(" Message sent.");

    delay(20); /* 20ms delay as suggested in SimpleBGC firmware */
    }
  • You Reply: Here is the board if you could let me know what pins map to the diagram.

    Second.

    Since the device works and only the upload a new sketch is broken that the c2540 with the TI programmer that needs flashing?

    What link do I use to update the hex?
  • You Reply: Where is the boards reset button.
  • You Reply: The is the v2 gamepad with the blue tooth 2 bee. Does this change your instructions.

    The blue tooth module is set to master to control another device.