Hello
I'm looking to control a projector via an RS232 Port.
I have an UNO and a MAX232 - SP3232E IC.
The projector i'm looking to control is a Hitachi. Page 16 of the Technical section shows the 8 bit codes needed to control the projector. see link below
http://www.hitachiserviceeu.com/scripts/userguide.php/CP-A300NMEF_EN.pdf
I am wanting to write code to send commands. This is my first project - be nice ![]()
I was had started coding this - can anyone tell me if i'm heading in the right direction.
I have coded for the POWER ON command.
int digitalInput = 0;Â Â
void setup() {
 // open the serial port at 9600 bps:
 Serial.begin(9600);
}
void loop() {
 // read the digital input on pin 2:
 digitalInput = digitalRead(2);
//power on command
if (digitalInput = HIGH){
 Serial.println('BEEF');Â
 Serial.println('0x03');
  Serial.println('0600');
  Serial.println('BAD2');
   Serial.println('0100');
   Serial.println('0060');
    Serial.println('0100');
 // delay 10 milliseconds before the next reading:
 delay(10);
Â
 }
}
Do I need to declare the TX and RX for the system or are pins 0 and 1 automatically selected on the UNO?
Any advice would be great
Thank you
L