×

With the recent surge in Omicron cases, shipping may be slower than stated times. We are working to build, ship and respond to everything as quickly as possible. Please see all COVID-19 updates here. Thank you for your continued support.

satoshi

Member Since: May 22, 2011

Country: United States

  • I used the following two modified libraries:
    http://code.google.com/p/arms22/downloads/detail?name=JPEGCamera-001.zip
    http://code.google.com/p/arms22/downloads/detail?name=NewSoftSerial-001.zip
    You should add the setBaudrate method on this JPEGCamera library.

  • After you change the speed, do not reset the camera. Otherwise it will
    return to the original setting (38400). The setup code looks like this:
    void setup() {
    mySerial.begin(38400);
    mySerial.flush();
    Serial.begin(115200);
    Serial.flush();
    delay(100);
    camera.reset();
    delay(4000);
    camera.setBaudrate(0x56, 0xE4);
    mySerial.end();
    mySerial.begin(19200);
    delay(100);
    }
    The class camera must have method setBaudrate accordingly.
    //Set baud rate
    bool JPEGCamera::setBaudrate(uint8_t high_b, uint8_t low_b)
    {
    cmdResBuffer[0] = 0x56;
    cmdResBuffer[1] = 0x00;
    cmdResBuffer[2] = 0x24;
    cmdResBuffer[3] = 0x03;
    cmdResBuffer[4] = 0x01;
    cmdResBuffer[5] = high_b;
    cmdResBuffer[6] = low_b;
    return commandAndResponse(7, 5);
    }

No public wish lists :(