Control H4 ZOOM RECORDER with rs 232 and arduino


hello !
i try tutorial:
http://www.apm-motionpictures.de/en/h4ncontrol
it allows arduino control zoom recorder ! pretty useful...

i try arduino code no results:
the arduino serial window print weird characters "ÿ"... weird...i have feeling h4 doesn't response @ all...


code: [select]

#include <softwareserial.h>

softwareserial myserial(10, 11); // rx, tx
uint8_t my_serial_bytes[3] = {0x82, 0x00};

void setup()
{
  serial.begin(57600);
  myserial.begin(2400);
  myserial.write((byte)0x00);  //first byte of registration sequence
}

void loop()
{

  serial.println("0x00 sends");
  serial.write((byte)myserial.read()); //h4 supposed send '0x80'... nothing occurs...
  delay(10000);
  serial.println("0xa1 envoye"); //part of registration sequence still...
  myserial.write((byte)0xa1);
  delay(10000);
  serial.write(my_serial_bytes, sizeof(my_serial_bytes)); //send play command h4n... still nothing occurs...
  serial.println("play");
  delay(30000);
}




any appreciated :-)
thanks

quote
the arduino serial window print weird characters "ÿ"
that sign of baud rates of program , serial monitor not matching.  baud rate have got monitor set ?


Arduino Forum > Using Arduino > Programming Questions > Control H4 ZOOM RECORDER with rs 232 and arduino


arduino

Comments