====== CFMEGA1 ===== 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. * This module must be positioned on the far left. Attach I/O modules to the right side. * Up to 16 I/O modules can be connected to one CPU module. ===== System Specifications ===== * MCU: Mega2560 * Program memory: 256 KB * SRAM memory: 8 KB * EEPROM: 4 KB ===== Device Specifications ===== * Power supply voltage: **DC 12–24 V** * Power supply capacity selection: Use a power supply with enough capacity to handle the total current consumed by the connected I/O modules. If the total number of connected modules is 8 or fewer, a 24 V, 1 A SMPS is suitable. If the total number of connected modules is more than 8, use a 24 V, 3 A SMPS. * Communication: RS232C x 2 * User program LED: 13 = LED ===== Description of Each Part ===== {{:modularfaduino:cfmega1.jpg?600|}} ===== Power Input ===== Apply a voltage between DC 12–24 V to the power supply terminals at the bottom of the terminal block. ===== Example Programs ===== ** - 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); } } [[:modularfaduino:index|Modular FADUINO]]