User Tools

Site Tools


en-us_guide:getting_started

This is an old revision of the document!


Getting Started with Arduino IDE

This guide explains how to upload the first program and check digital I/O on every MPINO and MPAINO model. Read the model name on the product label, then find its Arduino IDE board name in the table below.

1. Find the Settings for Your Product

The board name and I/O numbers depend on the product. Find your model below and use the settings shown for it. R identifies a relay-output model; T identifies a SINK transistor-output model.

MPAINO-8A8R(T)

Product Board and I/O settings
MPAINO-8A8R · MPAINO-8A8T PC connection: CPU module USB download port
Device Manager: Silicon Labs CP210x USB to UART Bridge(COMx)
Arduino IDE board: MPAINO-8A8R(T)
First I/O: input 0 → output 64
Output type: relay / SINK transistor

MPAINO-16A16R(T)

Product Board and I/O settings
MPAINO-16A16R · MPAINO-16A16T PC connection: CPU module USB download port
Device Manager: Silicon Labs CP210x USB to UART Bridge(COMx)
Arduino IDE board: MPAINO-16A16R(T)
First I/O: input 0 → output 64
Output type: relay / SINK transistor

MPAINO-16A32R

Product Board and I/O settings
MPAINO-16A32R PC connection: CPU module USB download port
Device Manager: Silicon Labs CP210x USB to UART Bridge(COMx)
Arduino IDE board: MPAINO-16A32R(T)
First I/O: input 0 → output 64
Output type: relay

MPAINO-24A24R(T)

Product Board and I/O settings
MPAINO-24A24R · MPAINO-24A24T PC connection: CPU module USB download port
Device Manager: Silicon Labs CP210x USB to UART Bridge(COMx)
Arduino IDE board: MPAINO-24A24R(T)
First I/O: input 0 → output 64
Output type: relay / SINK transistor

MPAINO-32A16R

Product Board and I/O settings
MPAINO-32A16R PC connection: CPU module USB download port
Device Manager: Silicon Labs CP210x USB to UART Bridge(COMx)
Arduino IDE board: MPAINO-32A16R(T)
First I/O: input 0 → output 64
Output type: relay

MPAINO-32A32R(T)

Product Board and I/O settings
MPAINO-32A32R · MPAINO-32A32T PC connection: CPU module USB download port
Device Manager: Silicon Labs CP210x USB to UART Bridge(COMx)
Arduino IDE board: MPAINO-32A32R(T)
First I/O: input 0 → output 64
Output type: relay / SINK transistor

MPAINO-48A48R(T)

Product Board and I/O settings
MPAINO-48A48R · MPAINO-48A48T PC connection: CPU module USB download port
Device Manager: Silicon Labs CP210x USB to UART Bridge(COMx)
Arduino IDE board: MPAINO-48A48R(T)
First I/O: input 0 → output 64
Output type: relay / SINK transistor

MPAINO-64A64R(T)

Product Board and I/O settings
MPAINO-64A64R · MPAINO-64A64T PC connection: CPU module USB download port
Device Manager: Silicon Labs CP210x USB to UART Bridge(COMx)
Arduino IDE board: MPAINO-64A64R(T)
First I/O: input 0 → output 64
Output type: relay / SINK transistor

MPINO-8A4R(T)-S

Product Board and I/O settings
MPINO-8A4R-S · MPINO-8A4T-S PC connection: ILOGICS MP Download Cable
Device Manager: USB Serial Port(COMx)
Arduino IDE board: MPINO-8A4R(T)-S
First I/O: input 0 (P0) → output 32 (P32)
Output type: relay / SINK transistor

MPINO-8A4R-SU

Product Board and I/O settings
MPINO-8A4R-SU PC connection: ILOGICS MP Download Cable
Device Manager: USB Serial Port(COMx)
Arduino IDE board: MPINO-8A4R-SU
First I/O: input 0 (I(0)) → output 32 (R(32))
Output type: relay with an independent COM

MPINO-8A8R(T)-S

Product Board and I/O settings
MPINO-8A8R-S · MPINO-8A8T-S PC connection: ILOGICS MP Download Cable
Device Manager: USB Serial Port(COMx)
Arduino IDE board: MPINO-8A8R(T)-S
First I/O: input 0 (P0) → output 32 (R32/P32)
Output type: relay / SINK transistor

MPINO-16A16R

Product Board and I/O settings
MPINO-16A16R PC connection: ILOGICS MP Download Cable
Device Manager: USB Serial Port(COMx)
Arduino IDE board: MPINO-16A16R(T)
First I/O: input 0 (I(0)) → output 32 (R(32))
Output type: relay

MPINO-8A8R

Product Board and I/O settings
MPINO-8A8R PC connection: ILOGICS MP Download Cable
Device Manager: USB Serial Port(COMx)
Arduino IDE board: MPINO-8A8R
First I/O: input 22 (I(22)) → output 62 (R(62))
Output type: relay

MPINO-16A8R

Product Board and I/O settings
MPINO-16A8R PC connection: product USB download port
Device Manager: Silicon Labs CP210x USB to UART Bridge(COMx)
Arduino IDE board: MPINO-16A8R
First I/O: input 22 (I(22)) → output 39 (R(39))
Output type: relay

MPINO-16A8R8T

Product Board and I/O settings
MPINO-16A8R8T PC connection: ILOGICS MP Download Cable
Device Manager: USB Serial Port(COMx)
Arduino IDE board: MPINO-16A8R8T
First I/O: input 22 (I(22)) → relay 62 (R(62)); transistor 39 (O(39))
Output type: relay + SINK transistor

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.

At the top left of Arduino IDE, Verify (✓) compiles the code and Upload (→) transfers it to the product on the selected port.

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

3. Connect the Product and Find the COM Port

Disconnect output loads before the first upload. Check the product page for the power specification and R (relay) or T (transistor) output type.

All MPAINO Models

  1. Connect the PC to the CPU module's USB download port with a USB cable.
  2. In Windows Device Manager → Ports (COM & LPT), note the COM number shown for Silicon Labs CP210x USB to UART Bridge(COMx).
  3. If the port does not appear, install the CP210x USB driver and reconnect the cable.

MPINO-16A8R

  1. Connect the PC to the product's USB download port with a USB cable.
  2. In Device Manager, note the COM number shown for Silicon Labs CP210x USB to UART Bridge(COMx).
  3. If the port does not appear, install the CP210x USB driver and reconnect the cable.

Other MPINO Models

  1. Connect the PC to the product's download port with an ILOGICS MP Download Cable.
  2. In Device Manager, note the COM number shown for USB Serial Port(COMx).
  3. If the port does not appear, install the FTDI driver for the MP Download Cable and reconnect it.

4. Select the Board and Port

Open Select other board and port… from the board selector at the top of Arduino IDE. The product name in the figure is only an example of the selection method. Search for the exact board name shown in section 1.

Example of searching for and selecting an ILOGICS board in Arduino IDE

Board-selection example for a narrow screen

No. Selection
1 Enter the board name from section 1 in the BOARDS search field.
2 Select the result with the exact same name. R and T products grouped together use the common board name containing R(T).

In PORTS, select the COM number found in Device Manager.

Example of selecting and applying a CP210x COM port in Arduino IDE

CP210x COM-port example for a narrow screen

Example of selecting the MP Download Cable COM port in Arduino IDE

MP Download Cable COM-port example for a narrow screen

No. Selection
1 Under PORTS, choose the same COM number shown in Device Manager. COM1 and COM3 in the figures are examples.
2 Select OK to apply the board and port.

You can also select the same items from Tools → Board and then Tools → Port.

Find your model's I/O group in section 1 and use the matching example. Open File → New Sketch, enter the code, and save it with Ctrl + S. Select Verify (✓) and wait for Done compiling., then select Upload (→).

A relay output can be checked by its operating sound. To check a transistor output, switch off power and connect a test load according to the output-wiring section on the product page.

All MPAINO Models · Output 64

// first MPAINO output
const uint8_t OUTPUT_CHANNEL = 64;
 
void setup() {}
 
void loop() {
  digitalWrite(OUTPUT_CHANNEL, HIGH);
  delay(500);
  digitalWrite(OUTPUT_CHANNEL, LOW);
  delay(500);
}

MPINO Models with Input 0 and Output 32

Use this example with MPINO-8A4R(T)-S, MPINO-8A4R-SU, MPINO-8A8R(T)-S, and MPINO-16A16R.

// first output on these MPINO models
const uint8_t OUTPUT_CHANNEL = 32;
 
void setup() {}
 
void loop() {
  digitalWrite(OUTPUT_CHANNEL, HIGH);
  delay(500);
  digitalWrite(OUTPUT_CHANNEL, LOW);
  delay(500);
}

MPINO-8A8R and MPINO-16A8R8T · Relay Output 62

To test transistor output O(39) on MPINO-16A8R8T, check the transistor-output wiring on its product page and change OUTPUT_CHANNEL to 39.

// relay output R(62)
const uint8_t OUTPUT_CHANNEL = 62;
 
void setup() {}
 
void loop() {
  digitalWrite(OUTPUT_CHANNEL, HIGH);
  delay(500);
  digitalWrite(OUTPUT_CHANNEL, LOW);
  delay(500);
}

MPINO-16A8R · Output 39

// relay output R(39)
const uint8_t OUTPUT_CHANNEL = 39;
 
void setup() {}
 
void loop() {
  digitalWrite(OUTPUT_CHANNEL, HIGH);
  delay(500);
  digitalWrite(OUTPUT_CHANNEL, LOW);
  delay(500);
}

6. Control the Output with the First Input

Switch off power before wiring the input and COM. Turn the input on and off and check that the output follows it. Use the Digital Inputs and Output sections of your product page to identify the terminals and COM.

All MPAINO Models · Input 0 → Output 64

// first MPAINO input
const uint8_t INPUT_CHANNEL = 0;
const uint8_t OUTPUT_CHANNEL = 64;
 
void setup() {}
 
void loop() {
  const bool inputOn = digitalRead(INPUT_CHANNEL);
  digitalWrite(OUTPUT_CHANNEL, inputOn);
}

MPINO Models with Input 0 and Output 32

// first input on these MPINO models
const uint8_t INPUT_CHANNEL = 0;
const uint8_t OUTPUT_CHANNEL = 32;
 
void setup() {}
 
void loop() {
  const bool inputOn = digitalRead(INPUT_CHANNEL);
  digitalWrite(OUTPUT_CHANNEL, inputOn);
}

MPINO-8A8R and MPINO-16A8R8T · Input 22 → Relay Output 62

// input I(22)
const uint8_t INPUT_CHANNEL = 22;
const uint8_t OUTPUT_CHANNEL = 62;
 
void setup() {}
 
void loop() {
  const bool inputOn = digitalRead(INPUT_CHANNEL);
  digitalWrite(OUTPUT_CHANNEL, inputOn);
}

MPINO-16A8R · Input 22 → Output 39

// input I(22)
const uint8_t INPUT_CHANNEL = 22;
const uint8_t OUTPUT_CHANNEL = 39;
 
void setup() {}
 
void loop() {
  const bool inputOn = digitalRead(INPUT_CHANNEL);
  digitalWrite(OUTPUT_CHANNEL, inputOn);
}

7. If Something Goes Wrong

Symptom What to check
The model is missing from the board results Confirm that ARDUINO SDK INSTALL ran, then restart Arduino IDE. Search for the board name exactly as shown in section 1.
No COM port appears in Device Manager Use section 3 to check the connection and driver for your product. MPINO-16A8R does not use the MP Download Cable.
Verify reports an error Check that the selected board matches the product and the code was entered correctly. Start with the first error shown in the output panel.
Upload fails Confirm that Device Manager and Arduino IDE show the same COM number. Check the cable connection and product power.
Upload succeeds but the output does not change Recheck the first output number and R/T output type in section 1. A transistor output needs a wired test load to show its state.
The output does not follow the input Recheck the first input number and the input-to-COM wiring on the product page.

Next Documents

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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki