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 22:15] – 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 ====== | ||
| - | Upload your first program to an MPAINO-8A8R(T) or MPINO-8A4R(T)-S | + | This guide explains how to install Arduino IDE and the ILOGICS boards, upload the first program to an MPINO or MPAINO product, |
| - | ===== 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: | + | |
| - | + | ||
| - | [[# | + | |
| - | + | ||
| - | For another model, check its cable and pin map under [[en-us_products: | + | |
| - | + | ||
| - | ===== 2. Install Arduino IDE and the ILOGICS Boards ===== | + | |
| {{ : | {{ : | ||
| Line 21: | 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 | ||
| + | |||
| + | In **PORTS**, select the COM number found in Device Manager. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ^ 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 ===== | ||
| + | |||
| + | Find the first I/O numbers for your model in the product-family table, then use the example below with the same numbers. Open **File → New Sketch**, enter the code, and save it with **Ctrl + S**. Select **Verify (✓)** and wait for '' | ||
| + | |||
| + | 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 ==== | ||
| <code cpp> | <code cpp> | ||
| - | const uint8_t OUTPUT_CHANNEL = 64; // First MPAINO-8A8R(T) output | + | // first MPAINO output |
| + | const uint8_t OUTPUT_CHANNEL = 64; | ||
| void setup() {} | void setup() {} | ||
| Line 72: | Line 89: | ||
| </ | </ | ||
| - | Open **File → New Sketch**, enter the code, and save it with **Ctrl + S**. Click **Verify (✓)** | + | ==== MPINO Models |
| - | ==== Control Output 64 from Input 0 ==== | + | Use this example with MPINO-8A4R(T)-S, MPINO-8A4R-SU, MPINO-8A8R(T)-S, |
| - | + | ||
| - | Output '' | + | |
| <code cpp> | <code cpp> | ||
| - | const uint8_t INPUT_CHANNEL = 0; // First MPAINO-8A8R(T) input | + | // first output on these MPINO models |
| - | const uint8_t OUTPUT_CHANNEL = 64; | + | const uint8_t OUTPUT_CHANNEL = 32; |
| void setup() {} | void setup() {} | ||
| void loop() { | void loop() { | ||
| - | | + | |
| - | digitalWrite(OUTPUT_CHANNEL, | + | delay(500); |
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | delay(500); | ||
| } | } | ||
| </ | </ | ||
| - | Check the input terminal and COM wiring for [[en-us_products: | + | ==== MPINO-8A8R and MPINO-16A8R8T · Relay Output 62 ==== |
| - | ===== 4. MPINO-8A4R(T)-S First Upload ===== | + | To test transistor output O(39) on MPINO-16A8R8T, check the transistor-output wiring on its product page and change '' |
| - | ==== Connect the Product ==== | + | <code cpp> |
| + | // relay output R(62) | ||
| + | const uint8_t OUTPUT_CHANNEL | ||
| - | - Check the power specification and R (relay) or T (transistor) output type on the product label. Disconnect output loads for the first upload. | + | void setup() {} |
| - | - Connect the PC to the product' | + | |
| - | - In Windows **Device Manager → Ports (COM & LPT)**, note the COM number for '' | + | |
| - | ==== Select the Board and Port ==== | + | void loop() { |
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | delay(500); | ||
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | delay(500); | ||
| + | } | ||
| + | </ | ||
| - | 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. | + | ==== MPINO-16A8R · Output 39 ==== |
| - | {{ : | + | <code cpp> |
| + | // relay output R(39) | ||
| + | const uint8_t OUTPUT_CHANNEL = 39; | ||
| - | {{ : | + | void setup() {} |
| - | ^ Marker ^ Selection ^ | + | void loop() { |
| - | | **1** | Enter '' | + | |
| - | | **2** | Select '' | + | delay(500); |
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | delay(500); | ||
| + | } | ||
| + | </ | ||
| - | {{ : | + | ===== 5. 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. |
| - | ^ Marker ^ Selection ^ | + | ==== All MPAINO Models · Input 0 → Output 64 ==== |
| - | | **1** | In **PORTS**, select the same COM number shown as '' | + | |
| - | | **2** | Click **OK** to apply the board and port selections. | | + | |
| - | ==== Blink Output 32 (P32) ==== | + | <code cpp> |
| + | // first MPAINO input | ||
| + | const uint8_t INPUT_CHANNEL | ||
| + | const uint8_t OUTPUT_CHANNEL | ||
| - | This program turns the first output, '' | + | void setup() {} |
| + | |||
| + | void loop() { | ||
| + | const bool inputOn = digitalRead(INPUT_CHANNEL); | ||
| + | digitalWrite(OUTPUT_CHANNEL, inputOn); | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== MPINO Models with Input 0 and Output 32 ==== | ||
| <code cpp> | <code cpp> | ||
| - | const uint8_t OUTPUT_CHANNEL = 32; // First MPINO-8A4R(T)-S output (P32) | + | // first input on these MPINO models |
| + | const uint8_t INPUT_CHANNEL = 0; | ||
| + | const uint8_t OUTPUT_CHANNEL = 32; | ||
| 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 it with **Ctrl + S**. Click **Verify (✓)** and check for '' | + | ==== MPINO-8A8R |
| - | ==== Control Output 32 (P32) from Input 0 (P0) ==== | + | <code cpp> |
| + | // input I(22) | ||
| + | const uint8_t INPUT_CHANNEL | ||
| + | const uint8_t OUTPUT_CHANNEL | ||
| - | Output '' | + | void setup() {} |
| + | |||
| + | void loop() { | ||
| + | const bool inputOn = digitalRead(INPUT_CHANNEL); | ||
| + | digitalWrite(OUTPUT_CHANNEL, | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== MPINO-16A8R · Input 22 → Output 39 ==== | ||
| <code cpp> | <code cpp> | ||
| - | const uint8_t INPUT_CHANNEL = 0; // First MPINO-8A4R(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 155: | Line 205: | ||
| </ | </ | ||
| - | Check the input terminal and COM wiring for [[en-us_products: | + | ===== 6. If Something Goes Wrong ===== |
| - | + | ||
| - | ===== 5. 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.1789391740.txt.gz · Last modified: by 127.0.0.1
