User Tools

Site Tools


en-us_guide:getting_started

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en-us_guide:getting_started [2026/09/15 10:37] – external edit 127.0.0.1en-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 shows how to make the first Arduino IDE upload and check digital I/O on every MPINO and MPAINO model. Read the model name on the product label and make sure it matches the board name below.+This guide explains how to install Arduino IDE and the ILOGICS boards, upload the first program to an MPINO or MPAINO product, and check its digital I/O.
  
-===== 1. Find the Settings for Your Product ===== +===== 1. Install Arduino IDE and the ILOGICS Boards =====
- +
-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 ^ +
-| [[en-us_products:mpaino_8a8r|MPAINO-8A8R]] · [[en-us_products:mpaino_8a8t|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 ^ +
-| [[en-us_products:mpaino_16a16r|MPAINO-16A16R]] · [[en-us_products:mpaino_16a16t|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 ^ +
-| [[en-us_products:mpaino_16a32r|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 ^ +
-| [[en-us_products:mpaino_24a24r|MPAINO-24A24R]] · [[en-us_products:mpaino_24a24t|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 ^ +
-| [[en-us_products:mpaino_32a16r|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 ^ +
-| [[en-us_products:mpaino_32a32r|MPAINO-32A32R]] · [[en-us_products:mpaino_32a32t|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 ^ +
-| [[en-us_products:mpaino_48a48r|MPAINO-48A48R]] · [[en-us_products:mpaino_48a48t|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 ^ +
-| [[en-us_products:mpaino_64a64r|MPAINO-64A64R]] · [[en-us_products:mpaino_64a64t|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 ^ +
-| [[en-us_products:mpino_8a4r_s|MPINO-8A4R-S]] · [[en-us_products:mpino_8a4t_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 ^ +
-| [[en-us_products:mpino_8a4r_su|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 ^ +
-| [[en-us_products:mpino_8a8r_s|MPINO-8A8R-S]] · [[en-us_products:mpino_8a8t_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 ^ +
-| [[en-us_products:mpino_16a16r|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 ^ +
-| [[en-us_products:mpino_8a8r|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 ^ +
-| [[en-us_products:mpino_16a8r|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 ^ +
-| [[en-us_products:mpino_16a8r8t|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 =====+
  
 {{ :guide:arduino-ide-setup-flow-en.svg?1000 |Install Arduino IDE and the ILOGICS SDK, then select the board and port }} {{ :guide:arduino-ide-setup-flow-en.svg?1000 |Install Arduino IDE and the ILOGICS SDK, then select the board and port }}
Line 96: Line 17:
 The ILOGICS SDK configures digital I/O directions automatically. These examples do not need a separate ''pinMode()'' call. 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 =====+===== 2. 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. Disconnect output loads before the first upload. Check the product page for the power specification and R (relay) or T (transistor) output type.
Line 108: Line 29:
 ==== MPINO-16A8R ==== ==== MPINO-16A8R ====
  
-  - Connect the PC to the product's **USB download port** with a USB cable.+  - Connect the PC to the product's **USB download port** with a **USB A-to-B cable**.
   - In Device Manager, note the COM number shown for ''Silicon Labs CP210x USB to UART Bridge(COMx)''.   - In Device Manager, note the COM number shown for ''Silicon Labs CP210x USB to UART Bridge(COMx)''.
   - If the port does not appear, install the [[https://www.ilogics.net/en-us/resources/downloads/driver/2|CP210x USB driver]] and reconnect the cable.   - If the port does not appear, install the [[https://www.ilogics.net/en-us/resources/downloads/driver/2|CP210x USB driver]] and reconnect the cable.
Line 114: Line 35:
 ==== Other MPINO Models ==== ==== Other MPINO Models ====
  
-  - Connect the PC to the product's download port with an ILOGICS **MP Download Cable**. Do not substitute an ordinary USB cable or another USB-to-TTL adapter.+  - Connect the PC to the product's download port with an **MP Download Cable**.
   - In Device Manager, note the COM number shown for ''USB Serial Port(COMx)''.   - In Device Manager, note the COM number shown for ''USB Serial Port(COMx)''.
   - If the port does not appear, install the [[https://www.ilogics.net/en-us/resources/downloads/driver/1|FTDI driver for the MP Download Cable]] and reconnect it.   - If the port does not appear, install the [[https://www.ilogics.net/en-us/resources/downloads/driver/1|FTDI driver for the MP Download Cable]] and reconnect it.
  
-===== 4. Select the Board and Port =====+===== 3. 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.**+Find the board name in the [[:en-us_products:mpino_series#mpino_series_specifications|MPINO Series specifications]] or the [[:en-us_products:mpaino#mpaino_series_specifications|MPAINO Series specifications]]. Open **Select other board and port…** from the board selector at the top of Arduino IDE, then search for the same name. The product name in the figure is an example of the selection method.
  
 {{ :guide:arduino-ide-board-selection.svg?480 |Example of searching for and selecting an ILOGICS board in Arduino IDE }} {{ :guide:arduino-ide-board-selection.svg?480 |Example of searching for and selecting an ILOGICS board in Arduino IDE }}
Line 127: Line 48:
  
 ^ No. ^ Selection ^ ^ No. ^ Selection ^
-| **1** | Enter the board name from section 1 in the **BOARDS** search field. |+| **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 ''R(T)''. | | **2** | Select the result with the exact same name. R and T products grouped together use the common board name containing ''R(T)''. |
  
Line 146: Line 67:
 You can also select the same items from **Tools → Board** and then **Tools → Port**. You can also select the same items from **Tools → Board** and then **Tools → Port**.
  
-===== 5. Blink the First Output =====+===== 4. Blink the First Output =====
  
-Find your model'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 (→)**.+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 ''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. 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.
Line 155: Line 76:
  
 <code cpp> <code cpp>
-const uint8_t OUTPUT_CHANNEL = 64;  // first MPAINO output+// first MPAINO output 
 +const uint8_t OUTPUT_CHANNEL = 64;
  
 void setup() {} void setup() {}
Line 172: Line 94:
  
 <code cpp> <code cpp>
-const uint8_t OUTPUT_CHANNEL = 32;  // first output on these MPINO models+// first output on these MPINO models 
 +const uint8_t OUTPUT_CHANNEL = 32;
  
 void setup() {} void setup() {}
Line 189: Line 112:
  
 <code cpp> <code cpp>
-const uint8_t OUTPUT_CHANNEL = 62;  // relay output R(62)+// relay output R(62) 
 +const uint8_t OUTPUT_CHANNEL = 62;
  
 void setup() {} void setup() {}
Line 204: Line 128:
  
 <code cpp> <code cpp>
-const uint8_t OUTPUT_CHANNEL = 39;  // relay output R(39)+// relay output R(39) 
 +const uint8_t OUTPUT_CHANNEL = 39;
  
 void setup() {} void setup() {}
Line 216: Line 141:
 </code> </code>
  
-===== 6. Control the Output with the First Input =====+===== 5. 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. 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.
Line 223: Line 148:
  
 <code cpp> <code cpp>
-const uint8_t INPUT_CHANNEL = 0;   // first MPAINO input+// first MPAINO input 
 +const uint8_t INPUT_CHANNEL = 0;
 const uint8_t OUTPUT_CHANNEL = 64; const uint8_t OUTPUT_CHANNEL = 64;
  
Line 237: Line 163:
  
 <code cpp> <code cpp>
-const uint8_t INPUT_CHANNEL = 0;   // first input on these MPINO models+// first input on these MPINO models 
 +const uint8_t INPUT_CHANNEL = 0;
 const uint8_t OUTPUT_CHANNEL = 32; const uint8_t OUTPUT_CHANNEL = 32;
  
Line 251: Line 178:
  
 <code cpp> <code cpp>
-const uint8_t INPUT_CHANNEL = 22;   // input I(22)+// input I(22) 
 +const uint8_t INPUT_CHANNEL = 22;
 const uint8_t OUTPUT_CHANNEL = 62; const uint8_t OUTPUT_CHANNEL = 62;
  
Line 265: Line 193:
  
 <code cpp> <code cpp>
-const uint8_t INPUT_CHANNEL = 22;   // input I(22)+// input I(22) 
 +const uint8_t INPUT_CHANNEL = 22;
 const uint8_t OUTPUT_CHANNEL = 39; const uint8_t OUTPUT_CHANNEL = 39;
  
Line 276: Line 205:
 </code> </code>
  
-===== 7. If Something Goes Wrong =====+===== 6. If Something Goes Wrong =====
  
 ^ Symptom ^ What to check ^ ^ 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. |+| 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 the product-family table. |
 | 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. | | 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. | | 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 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. | +| Upload succeeds but the output does not change | Recheck the first output number in the product-family table and the R/T output type on the product page. 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. |+| The output does not follow the input | Recheck the first input number in the product-family table and the input-to-COM wiring on the product page. |
  
 ===== Next Documents ===== ===== Next Documents =====
  
-  * [[en-us_guide:wiring|I/Wiring Principles]]+  * [[en-us_guide:wiring|First wiring and I/O check]]
   * [[en-us_commands:builtin|ILOGICS Built-in Commands]]   * [[en-us_commands:builtin|ILOGICS Built-in Commands]]
   * [[:en-us_safety|Safety and Installation Notes]]   * [[:en-us_safety|Safety and Installation Notes]]
  
en-us_guide/getting_started.1789436245.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki