en-us_guide:getting_started
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en-us_guide:getting_started [2026/09/14 23:56] – external edit 127.0.0.1 | en-us_guide:getting_started [2026/09/15 15:28] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Getting Started with Arduino IDE ====== | ====== Getting Started with Arduino IDE ====== | ||
| - | This guide covers | + | This guide explains how to install Arduino IDE and the ILOGICS boards, upload |
| - | ===== 1. Choose Your Product ===== | + | ===== 1. Install Arduino IDE and the ILOGICS Boards ===== |
| - | + | ||
| - | ^ Product ^ PC connection ^ Board selection in Arduino IDE ^ First input and output ^ | + | |
| - | | [[en-us_products: | + | |
| - | | [[en-us_products: | + | |
| - | | [[en-us_products: | + | |
| - | | [[en-us_products: | + | |
| - | + | ||
| - | [[# | + | |
| - | + | ||
| - | For another model, check its cable, pin map, and development setup under [[en-us_products: | + | |
| - | + | ||
| - | ===== 2. Install Arduino IDE and the ILOGICS Boards ===== | + | |
| {{ : | {{ : | ||
| Line 23: | Line 11: | ||
| - Install the Windows Arduino IDE from the [[https:// | - Install the Windows Arduino IDE from the [[https:// | ||
| - Download and run '' | - Download and run '' | ||
| - | - Close Arduino IDE and start it again. Follow the product section below to connect the cable and choose the board and port. | + | - 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 board and port selection screens are shown separately for each product below. | + | 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 '' | The ILOGICS SDK configures digital I/O directions automatically. These examples do not need a separate '' | ||
| - | ===== 3. MPAINO-8A8R(T) First Upload | + | ===== 2. Connect the Product and Find the COM Port ===== |
| - | ==== Connect | + | Disconnect output loads before |
| - | - Check the power specification and R (relay) or T (transistor) output type on the product label. Disconnect output loads for the first upload. | + | ==== All MPAINO Models ==== |
| - | - Connect the PC to the CPU module' | + | |
| - | - In Windows **Device Manager → Ports (COM & LPT)**, note the COM number shown for '' | + | |
| - | ==== Select | + | - Connect |
| + | - In Windows **Device Manager → Ports (COM & LPT)**, note the COM number shown for '' | ||
| + | - If the port does not appear, install the [[https:// | ||
| - | Open **Select other board and port…** from the board selector at the top of Arduino IDE. | + | ==== MPINO-16A8R ==== |
| - | {{ : | + | |
| + | | ||
| + | - If the port does not appear, install the [[https:// | ||
| - | {{ : | + | ==== Other MPINO Models ==== |
| - | ^ Marker ^ Selection ^ | + | |
| - | | **1** | Enter '' | + | - In Device Manager, note the COM number shown for '' |
| - | | **2** | Select | + | - If the port does not appear, install |
| - | {{ : | + | ===== 3. Select the Board and Port ===== |
| - | {{ :guide:arduino-ide-port-selection-mobile.svg? | + | Find the board name in the [[:en-us_products: |
| - | ^ Marker ^ Selection ^ | + | {{ : |
| - | | **1** | In **PORTS**, select the COM number seen in Device Manager. '' | + | |
| - | | **2** | Click **OK** to apply the board and port selections. | | + | |
| - | ==== Blink Output 64 ==== | + | {{ : |
| - | This program turns the first output, '' | + | ^ No. ^ Selection ^ |
| + | | **1** | In the **BOARDS** search field, enter the board name shown in the product-family table. | | ||
| + | | **2** | Select the result with the exact same name. R and T products grouped together use the common board name containing | ||
| - | <code cpp> | + | In **PORTS**, select the COM number found in Device Manager. |
| - | const uint8_t OUTPUT_CHANNEL = 64; // First MPAINO-8A8R(T) output | + | |
| - | void setup() | + | {{ : |
| - | void loop() | + | {{ : |
| - | | + | |
| - | | + | {{ : |
| - | | + | |
| - | | + | {{ : |
| - | } | + | |
| - | </ | + | ^ No. ^ Selection ^ |
| + | | **1** | Under **PORTS**, choose the same COM number shown in Device Manager. '' | ||
| + | | **2** | Select **OK** to apply the board and port. | | ||
| + | |||
| + | You can also select the same items from **Tools → Board** and then **Tools → Port**. | ||
| + | |||
| + | ===== 4. Blink the First Output ===== | ||
| - | Open **File → New Sketch**, enter the code, and save it with **Ctrl + S**. Click **Verify (✓)** and check for '' | + | Find the first I/O numbers for your model in the product-family table, then use the example below with the same numbers. |
| - | ==== Control Output 64 from Input 0 ==== | + | 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. |
| - | Output | + | ==== All MPAINO Models · Output 64 ==== |
| <code cpp> | <code cpp> | ||
| - | const uint8_t INPUT_CHANNEL = 0; // First MPAINO-8A8R(T) input | + | // first MPAINO |
| const uint8_t OUTPUT_CHANNEL = 64; | const uint8_t OUTPUT_CHANNEL = 64; | ||
| Line 87: | Line 82: | ||
| void loop() { | void loop() { | ||
| - | | + | |
| - | digitalWrite(OUTPUT_CHANNEL, | + | delay(500); |
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | delay(500); | ||
| } | } | ||
| </ | </ | ||
| - | Check the input terminal | + | ==== MPINO Models with Input 0 and Output 32 ==== |
| - | ===== 4. MPAINO-16A16R(T) First Upload ===== | + | Use this example with MPINO-8A4R(T)-S, MPINO-8A4R-SU, MPINO-8A8R(T)-S, and MPINO-16A16R. |
| - | + | ||
| - | ==== Connect the Product ==== | + | |
| - | + | ||
| - | | + | |
| - | - Connect the PC to the CPU module' | + | |
| - | | + | |
| - | + | ||
| - | ==== 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. | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | ^ Marker ^ Selection ^ | + | |
| - | | **1** | Enter '' | + | |
| - | | **2** | Select '' | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | ^ Marker ^ Selection ^ | + | |
| - | | **1** | In **PORTS**, select the COM number seen in Device Manager. '' | + | |
| - | | **2** | Click **OK** to apply the selection. | | + | |
| - | + | ||
| - | ==== Blink Output 64 ==== | + | |
| - | + | ||
| - | The following program turns the first output, '' | + | |
| <code cpp> | <code cpp> | ||
| - | const uint8_t OUTPUT_CHANNEL = 64; // First MPAINO-16A16R(T) output | + | // first output on these MPINO models |
| + | const uint8_t OUTPUT_CHANNEL = 32; | ||
| void setup() {} | void setup() {} | ||
| Line 139: | Line 107: | ||
| </ | </ | ||
| - | Open **File → New Sketch**, enter the code, and save with **Ctrl + S**. Check for '' | + | ==== MPINO-8A8R |
| - | ==== Control Output 64 from Input 0 ==== | + | To test transistor output O(39) on MPINO-16A8R8T, |
| - | + | ||
| - | Output | + | |
| <code cpp> | <code cpp> | ||
| - | const uint8_t INPUT_CHANNEL = 0; // First MPAINO-16A16R(T) input | + | // relay output R(62) |
| - | const uint8_t OUTPUT_CHANNEL = 64; | + | const uint8_t OUTPUT_CHANNEL = 62; |
| void setup() {} | void setup() {} | ||
| void loop() { | void loop() { | ||
| - | | + | |
| - | digitalWrite(OUTPUT_CHANNEL, | + | delay(500); |
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | delay(500); | ||
| } | } | ||
| </ | </ | ||
| - | Check the input 0 terminal and COM wiring for [[en-us_products: | + | ==== MPINO-16A8R · Output |
| - | + | ||
| - | ===== 5. MPINO-8A4R(T)-S First Upload ===== | + | |
| - | + | ||
| - | ==== Connect the Product ==== | + | |
| - | + | ||
| - | - Check the power specification and R (relay) or T (transistor) output type on the product label. Disconnect output loads for the first upload. | + | |
| - | - Connect the PC to the product' | + | |
| - | - In Windows **Device Manager → Ports (COM & LPT)**, note the COM number for '' | + | |
| - | + | ||
| - | ==== 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. | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | ^ Marker ^ Selection ^ | + | |
| - | | **1** | Enter '' | + | |
| - | | **2** | Select '' | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | ^ Marker ^ Selection ^ | + | |
| - | | **1** | In **PORTS**, select the same COM number shown as '' | + | |
| - | | **2** | Click **OK** to apply the board and port selections. | | + | |
| - | + | ||
| - | ==== Blink Output | + | |
| - | + | ||
| - | This program turns the first output, '' | + | |
| <code cpp> | <code cpp> | ||
| - | const uint8_t OUTPUT_CHANNEL = 32; // First MPINO-8A4R(T)-S output (P32) | + | // relay output R(39) |
| + | const uint8_t OUTPUT_CHANNEL = 39; | ||
| void setup() {} | void setup() {} | ||
| Line 204: | Line 141: | ||
| </ | </ | ||
| - | Open **File → New Sketch**, enter the code, and save it with **Ctrl + S**. Click **Verify (✓)** and check for '' | + | ===== 5. Control |
| - | ==== Control | + | 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. |
| - | Output '' | + | ==== All MPAINO Models · Input 0 → Output 64 ==== |
| <code cpp> | <code cpp> | ||
| - | const uint8_t INPUT_CHANNEL = 0; // First MPINO-8A4R(T)-S input (P0) | + | // first MPAINO input |
| - | const uint8_t OUTPUT_CHANNEL = 32; | + | const uint8_t INPUT_CHANNEL = 0; |
| + | const uint8_t OUTPUT_CHANNEL = 64; | ||
| void setup() {} | void setup() {} | ||
| Line 222: | Line 160: | ||
| </ | </ | ||
| - | Check the input terminal | + | ==== MPINO Models with Input 0 and Output 32 ==== |
| - | ===== 6. MPINO-8A8R(T)-S First Upload ===== | + | <code cpp> |
| + | // first input on these MPINO models | ||
| + | const uint8_t INPUT_CHANNEL | ||
| + | const uint8_t OUTPUT_CHANNEL | ||
| - | ==== Connect the Product ==== | + | void setup() {} |
| - | - Check the power specification and R (relay) or T (transistor) output type on the product label. Disconnect output loads before the first upload. | + | void loop() { |
| - | | + | |
| - | - In Windows **Device Manager → Ports (COM & LPT)**, note the COM number shown for '' | + | |
| - | + | } | |
| - | ==== 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. | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | ^ Marker ^ Selection ^ | + | |
| - | | **1** | Enter '' | + | |
| - | | **2** | Select '' | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | ^ Marker ^ Selection ^ | + | |
| - | | **1** | In **PORTS**, select the same COM number shown for '' | + | |
| - | | **2** | Click **OK** to apply the selection. | | + | |
| - | + | ||
| - | ==== Blink Output 32 ==== | + | |
| - | The following program turns the first output, '' | + | ==== MPINO-8A8R |
| <code cpp> | <code cpp> | ||
| - | const uint8_t OUTPUT_CHANNEL = 32; // First MPINO-8A8R(T)-S output (R32/P32) | + | // input I(22) |
| + | const uint8_t INPUT_CHANNEL = 22; | ||
| + | const uint8_t OUTPUT_CHANNEL = 62; | ||
| void setup() {} | void setup() {} | ||
| void loop() { | void loop() { | ||
| - | | + | |
| - | delay(500); | + | digitalWrite(OUTPUT_CHANNEL, |
| - | digitalWrite(OUTPUT_CHANNEL, | + | |
| - | delay(500); | + | |
| } | } | ||
| </ | </ | ||
| - | Open **File → New Sketch**, enter the code, and save with **Ctrl + S**. Check for '' | + | ==== MPINO-16A8R · Input 22 → Output |
| - | + | ||
| - | ==== Control | + | |
| - | + | ||
| - | Output '' | + | |
| <code cpp> | <code cpp> | ||
| - | const uint8_t INPUT_CHANNEL = 0; // First MPINO-8A8R(T)-S input (P0) | + | // input I(22) |
| - | const uint8_t OUTPUT_CHANNEL = 32; | + | const uint8_t INPUT_CHANNEL = 22; |
| + | const uint8_t OUTPUT_CHANNEL = 39; | ||
| void setup() {} | void setup() {} | ||
| Line 287: | Line 205: | ||
| </ | </ | ||
| - | Check input P0 and COM0 wiring for [[en-us_products: | + | ===== 6. If Something Goes Wrong ===== |
| - | + | ||
| - | ===== 7. If Something Goes Wrong ===== | + | |
| ^ Symptom ^ What to check ^ | ^ Symptom ^ What to check ^ | ||
| - | | The model is missing from the board results | Confirm that '' | + | | The model is missing from the board results | Confirm that '' |
| - | | No COM port appears in Device Manager | For MPAINO, | + | | No COM port appears in Device Manager | Use section 3 to check the connection |
| - | | Verify reports an error | Check that the selected board matches the product and the code was copied | + | | Verify reports an error | Check that the selected board matches the product and the code was entered |
| - | | Upload fails | Confirm | + | | Upload fails | Confirm |
| - | | Upload succeeds but the output does not change | Check output | + | | Upload succeeds but the output does not change | Recheck the first output |
| - | | The output does not follow the input | Check the input '' | + | | The output does not follow the input | Recheck |
| ===== Next Documents ===== | ===== Next Documents ===== | ||
| - | * [[en-us_guide: | + | * [[en-us_guide: |
| * [[en-us_commands: | * [[en-us_commands: | ||
| * [[: | * [[: | ||
en-us_guide/getting_started.1789397762.txt.gz · Last modified: by 127.0.0.1
