User Tools

Site Tools


en-us_guide:getting_started

This is an old revision of the document!


Getting Started with Arduino IDE

This guide covers the first upload for MPAINO-8A8R(T), MPAINO-16A16R(T), MPINO-8A4R(T)-S, and MPINO-8A8R(T)-S. Check the model name on the product label, then go to the matching section.

1. Choose Your Product

Product PC connection Board selection in Arduino IDE First input and output
MPAINO-8A8R · MPAINO-8A8T USB download port on the CPU module MPAINO-8A8R(T) Input 0 · output 64
MPAINO-16A16R · MPAINO-16A16T USB download port on the CPU module MPAINO-16A16R(T) Input 0 · output 64
MPINO-8A4R-S · MPINO-8A4T-S MP Download Cable MPINO-8A4R(T)-S Input 0 (P0) · output 32 (P32)
MPINO-8A8R-S · MPINO-8A8T-S MP Download Cable MPINO-8A8R(T)-S Input 0 (P0) · output 32 (R32/P32)

MPAINO-8A8R(T) steps · MPAINO-16A16R(T) steps · MPINO-8A4R(T)-S steps · MPINO-8A8R(T)-S steps

For another model, check its cable, pin map, and development setup under MPAINO Series or MPINO Series. Do not reuse the I/O numbers below on another model without checking them.

2. Install Arduino IDE and the ILOGICS Boards

Install Arduino IDE and the ILOGICS SDK, then select the board and port

Install Arduino IDE and the ILOGICS SDK, then select the board and port

  1. Install the Windows Arduino IDE from the official Arduino download page.
  2. Download and run ARDUINO SDK INSTALL from the ILOGICS Arduino SDK download page.
  3. Close Arduino IDE and start it again. Follow the product section below to connect the cable and choose the board and port.

At the top left of Arduino IDE, Verify (✓) compiles the code and Upload (→) transfers it to the product on the selected port. The board and port selection screens are shown separately for each product below.

The ILOGICS SDK configures digital I/O directions automatically. These examples do not need a separate pinMode() call.

3. MPAINO-8A8R(T) First Upload

Connect the Product

  1. Check the power specification and R (relay) or T (transistor) output type on the product label. Disconnect output loads for the first upload.
  2. Connect the PC to the CPU module's USB download port with a USB cable. USB power alone does not establish that field output loads can operate; check the product's main power supply requirements.
  3. In Windows Device Manager → Ports (COM & LPT), note the COM number shown for Silicon Labs CP210x USB to UART Bridge(COMx). If it does not appear, install the CP210x USB driver and reconnect the cable.

Select the Board and Port

Open Select other board and port… from the board selector at the top of Arduino IDE.

Select the MPAINO-8A8R(T) board in Arduino IDE

Select the MPAINO-8A8R(T) board in Arduino IDE

Marker Selection
1 Enter MPAINO-8A8R(T) in the BOARDS search field.
2 Select MPAINO-8A8R(T) from the results.

Select and apply the MPAINO COM port in Arduino IDE

Select and apply the MPAINO COM port in Arduino IDE

Marker Selection
1 In PORTS, select the COM number seen in Device Manager. COM1 in the image is an example. Arduino IDE may show it as COMx Serial Port (USB).
2 Click OK to apply the board and port selections.

This program turns the first output, 64, on and off every 0.5 seconds.

const uint8_t OUTPUT_CHANNEL = 64;  // First MPAINO-8A8R(T) output
 
void setup() {}
 
void loop() {
  digitalWrite(OUTPUT_CHANNEL, HIGH);
  delay(500);
  digitalWrite(OUTPUT_CHANNEL, LOW);
  delay(500);
}

Open File → New Sketch, enter the code, and save it with Ctrl + S. Click Verify (✓) and check for Done compiling.; then click Upload (→). Check the output after upload. On an R model, you can hear the relay click. On a T model, switch off the power before connecting a test load according to the output wiring guide.

Control Output 64 from Input 0

Output 64 turns on when the first input, 0, is HIGH.

const uint8_t INPUT_CHANNEL = 0;     // First MPAINO-8A8R(T) input
const uint8_t OUTPUT_CHANNEL = 64;
 
void setup() {}
 
void loop() {
  const bool inputOn = digitalRead(INPUT_CHANNEL);
  digitalWrite(OUTPUT_CHANNEL, inputOn);
}

Check the input terminal and COM wiring for 8A8R or 8A8T. Switch off power before connecting the input signal, then turn the input on and off and check that the output follows it.

4. MPAINO-16A16R(T) First Upload

Connect the Product

  1. Check the power specification and R (relay) or T (transistor) output type on the product label. Disconnect output loads before the first upload.
  2. Connect the PC to the CPU module's USB download port with a USB cable. Before checking output operation, confirm the main power and output wiring for your product.
  3. In Windows Device Manager → Ports (COM & LPT), note the COM number shown for Silicon Labs CP210x USB to UART Bridge(COMx). If no port appears, install the CP210x USB driver and reconnect the cable.

Select the Board and Port

Open Select other board and port… at the top of Arduino IDE. The R and T models use the same board name.

Find and select the MPAINO-16A16R(T) board in Arduino IDE

Mobile view of the MPAINO-16A16R(T) board selection

Marker Selection
1 Enter MPAINO-16A16R(T) in the BOARDS search field.
2 Select MPAINO-16A16R(T) from the results.

Select the CPU module's COM port in Arduino IDE

Mobile view of CPU module COM port selection

Marker Selection
1 In PORTS, select the COM number seen in Device Manager. COM1 in the image is an example.
2 Click OK to apply the selection.

The following program turns the first output, 64, on and off every 0.5 seconds.

const uint8_t OUTPUT_CHANNEL = 64;  // First MPAINO-16A16R(T) output
 
void setup() {}
 
void loop() {
  digitalWrite(OUTPUT_CHANNEL, HIGH);
  delay(500);
  digitalWrite(OUTPUT_CHANNEL, LOW);
  delay(500);
}

Open File → New Sketch, enter the code, and save with Ctrl + S. Check for Done compiling. after Verify (✓), then click Upload (→). On an R model, you can hear the relay click. For a T model, switch off the power before connecting a test load according to the output wiring guide.

Control Output 64 from Input 0

Output 64 turns on when the first input, 0, is HIGH.

const uint8_t INPUT_CHANNEL = 0;     // First MPAINO-16A16R(T) input
const uint8_t OUTPUT_CHANNEL = 64;
 
void setup() {}
 
void loop() {
  const bool inputOn = digitalRead(INPUT_CHANNEL);
  digitalWrite(OUTPUT_CHANNEL, inputOn);
}

Check the input 0 terminal and COM wiring for 16A16R or 16A16T. Switch off power before connecting the input signal. Then turn the input on and off and check that output 64 follows it.

5. MPINO-8A4R(T)-S First Upload

Connect the Product

  1. Check the power specification and R (relay) or T (transistor) output type on the product label. Disconnect output loads for the first upload.
  2. Connect the PC to the product's download port using the ILOGICS MP Download Cable. A regular USB cable or third-party USB-to-TTL cable cannot replace it.
  3. In Windows Device Manager → Ports (COM & LPT), note the COM number for USB Serial Port(COMx). If it does not appear, install the FTDI USB driver and reconnect the cable.

Select the Board and Port

Open Select other board and port… from the board selector at the top of Arduino IDE. The R and T models use the same board entry.

Select the MPINO-8A4R(T)-S board in Arduino IDE

Select the MPINO-8A4R(T)-S board in Arduino IDE

Marker Selection
1 Enter MPINO-8A4R(T)-S in the BOARDS search field.
2 Select MPINO-8A4R(T)-S from the results.

Select and apply the MP Download Cable COM port in Arduino IDE

Select and apply the MP Download Cable COM port in Arduino IDE

Marker Selection
1 In PORTS, select the same COM number shown as USB Serial Port(COMx) in Device Manager. COM3 in the image is an example.
2 Click OK to apply the board and port selections.

This program turns the first output, 32 (terminal P32), on and off every 0.5 seconds.

const uint8_t OUTPUT_CHANNEL = 32;  // First MPINO-8A4R(T)-S output (P32)
 
void setup() {}
 
void loop() {
  digitalWrite(OUTPUT_CHANNEL, HIGH);
  delay(500);
  digitalWrite(OUTPUT_CHANNEL, LOW);
  delay(500);
}

Open File → New Sketch, enter the code, and save it with Ctrl + S. Click Verify (✓) and check for Done compiling.; then click Upload (→). On an R model, you can hear the relay click. On a T model, switch off the power before connecting a test load according to the output wiring guide.

Control Output 32 (P32) from Input 0 (P0)

Output 32 (terminal P32) turns on when input 0 (terminal P0) is HIGH.

const uint8_t INPUT_CHANNEL = 0;     // First MPINO-8A4R(T)-S input (P0)
const uint8_t OUTPUT_CHANNEL = 32;
 
void setup() {}
 
void loop() {
  const bool inputOn = digitalRead(INPUT_CHANNEL);
  digitalWrite(OUTPUT_CHANNEL, inputOn);
}

Check the input terminal and COM wiring for 8A4R-S or 8A4T-S. Switch off power before connecting the input signal, then turn the input on and off and check that the output follows it.

6. MPINO-8A8R(T)-S First Upload

Connect the Product

  1. Check the power specification and R (relay) or T (transistor) output type on the product label. Disconnect output loads before the first upload.
  2. Connect the PC to the product's download port with the ILOGICS MP Download Cable. A standard USB cable or generic USB-to-TTL adapter cannot replace it.
  3. In Windows Device Manager → Ports (COM & LPT), note the COM number shown for USB Serial Port(COMx). If no port appears, install the FTDI driver for the MP Download Cable and reconnect it.

Select the Board and Port

Open Select other board and port… at the top of Arduino IDE. The R and T models use the same board name.

Find and select the MPINO-8A8R(T)-S board in Arduino IDE

Mobile view of the MPINO-8A8R(T)-S board selection

Marker Selection
1 Enter MPINO-8A8R(T)-S in the BOARDS search field.
2 Select MPINO-8A8R(T)-S from the results.

Select the MP Download Cable's COM port in Arduino IDE

Mobile view of the MP Download Cable COM port selection

Marker Selection
1 In PORTS, select the same COM number shown for USB Serial Port(COMx) in Device Manager. COM3 in the image is an example.
2 Click OK to apply the selection.

The following program turns the first output, 32, on and off every 0.5 seconds. Its terminal is R32 on the R model and P32 on the T model.

const uint8_t OUTPUT_CHANNEL = 32;  // First MPINO-8A8R(T)-S output (R32/P32)
 
void setup() {}
 
void loop() {
  digitalWrite(OUTPUT_CHANNEL, HIGH);
  delay(500);
  digitalWrite(OUTPUT_CHANNEL, LOW);
  delay(500);
}

Open File → New Sketch, enter the code, and save with Ctrl + S. Check for Done compiling. after Verify (✓), then click Upload (→). On an R model, you can hear the relay click. For a T model, switch off the power before connecting a test load according to the output wiring guide.

Control Output 32 from Input 0 (P0)

Output 32 turns on when input 0 (terminal P0) is HIGH.

const uint8_t INPUT_CHANNEL = 0;     // First MPINO-8A8R(T)-S input (P0)
const uint8_t OUTPUT_CHANNEL = 32;
 
void setup() {}
 
void loop() {
  const bool inputOn = digitalRead(INPUT_CHANNEL);
  digitalWrite(OUTPUT_CHANNEL, inputOn);
}

Check input P0 and COM0 wiring for 8A8R-S or 8A8T-S. Switch off power before connecting the input signal. Then turn the input on and off and check that output R32 or P32 follows it.

7. If Something Goes Wrong

Symptom What to check
The model is missing from the board results Confirm that ARDUINO SDK INSTALL ran and restart Arduino IDE. Check the model name entered in the search field.
No COM port appears in Device Manager For MPAINO, check the CPU USB download port and CP210x driver. For MPINO, check the MP Download Cable and FTDI driver.
Verify reports an error Check that the selected board matches the product and the code was copied correctly. Read the error line in the output panel.
Upload fails Confirm the same COM number in Device Manager and Arduino IDE. Check the cable and product power.
Upload succeeds but the output does not change Check output 64 for MPAINO or 32 for MPINO. Use the product page for R/T output type and test-load wiring.
The output does not follow the input Check the input 0 terminal and COM wiring in the product page.

Next Documents

en-us_guide/getting_started.1789397762.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki