This is an old revision of the document!
This is an Arduino Mega-compatible CPU module. It is designed with a compact form factor so that it can be used practically in small spaces.
Apply a voltage between DC 12–24 V to the power supply terminals at the bottom of the terminal block.
- STATUS LED Blinking : This program blinks the STATUS LED.
const int StatusLED = 13; void setup() { pinMode(StatusLED, OUTPUT); } void loop() { digitalWrite(StatusLED, HIGH); delay(1000); digitalWrite(StatusLED, LOW); delay(1000); }
- RS232 Communication : This is an echo communication program for channel 1 (Tx1, Rx1). Connect Tx1 and Rx1 to each other before running the program.
void setup() { Serial.begin(9600); Serial1.begin(9600); } void loop() { if (Serial1.available() > 0) { char rx_Byte = Serial1.read(); Serial.print("I received: "); Serial.print(rx_Byte); Serial1.print(rx_Byte); } }
Source code that you are developing is not covered by technical support. If you believe there is a problem with the product, please send the product itself to our company. We will test it using our own source code and test jig, determine whether there is a defect, and take action if a problem is found.