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/14 22:14] – 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 ======
  
-Upload your first program to an MPAINO-8A8R(T) or MPINO-8A4R(T)-S and check the I/O. Read the model name on the product label, then follow the matching section 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. 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:mpaino_8a8r|MPAINO-8A8R]] · [[en-us_products:mpaino_8a8t|MPAINO-8A8T]] | USB download port on the CPU module | ''MPAINO-8A8R(T)'' | Input ''0'' · output ''64''+
-| [[en-us_products:mpino_8a4r_s|MPINO-8A4R-S]] · [[en-us_products:mpino_8a4t_s|MPINO-8A4T-S]] | **MP Download Cable** | ''MPINO-8A4R(T)-S'' | Input ''0'' (P0) · output ''32'' (P32) | +
- +
-[[#mpaino-8a8r_t_first_upload|Go to MPAINO-8A8R(T) steps]] · [[#mpino-8a4r_t_-s_first_upload|Go to MPINO-8A4R(T)-S steps]] +
- +
-For another model, check its cable and pin map under [[en-us_products:mpaino|MPAINO Series]] or [[en-us_products:mpino_series|MPINO Series]]. Do not reuse this page's I/O addresses on another model without checking them. +
- +
-===== 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 21: Line 11:
   - Install the Windows Arduino IDE from the [[https://www.arduino.cc/en/software|official Arduino download page]].   - Install the Windows Arduino IDE from the [[https://www.arduino.cc/en/software|official Arduino download page]].
   - Download and run ''ARDUINO SDK INSTALL'' from the [[https://www.ilogics.net/en-us/resources/downloads/software/3|ILOGICS Arduino SDK download page]].   - Download and run ''ARDUINO SDK INSTALL'' from the [[https://www.ilogics.net/en-us/resources/downloads/software/3|ILOGICS Arduino SDK download page]].
-  - 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 ''pinMode()'' call. The ILOGICS SDK configures digital I/O directions automatically. These examples do not need a separate ''pinMode()'' call.
  
-===== 3MPAINO-8A8R(T) First Upload =====+===== 2Connect the Product and Find the COM Port =====
  
-==== Connect the Product ====+Disconnect output loads before the first upload. Check the product page for the power specification and R (relay) or T (transistor) output type.
  
-  - 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'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. +
-  - 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 [[https://www.ilogics.net/en-us/resources/downloads/driver/2|CP210x USB driver]] and reconnect the cable.+
  
-==== Select the Board and Port ====+  - Connect the PC to the CPU module's **USB download port** with a USB cable. 
 +  - In Windows **Device Manager → Ports (COM & LPT)**, 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.
  
-Open **Select other board and port…** from the board selector at the top of Arduino IDE.+==== MPINO-16A8R ====
  
-{{ :guide:arduino-ide-board-selection.svg?480 |Select the MPAINO-8A8R(Tboard in Arduino IDE }}+  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)''
 +  - 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.
  
-{{ :guide:arduino-ide-board-selection-mobile.svg?350 |Select the MPAINO-8A8R(T) board in Arduino IDE }}+==== Other MPINO Models ====
  
-^ Marker ^ Selection ^ +  Connect the PC to the product's download port with an **MP Download Cable**. 
-| **1** | Enter ''MPAINO-8A8R(T)'' in the **BOARDS** search field| +  - In Device Manager, note the COM number shown for ''USB Serial Port(COMx)''
-| **2** | Select ''MPAINO-8A8R(T)'' from the results. |+  - 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.
  
-{{ :guide:arduino-ide-port-selection.svg?480 |Select and apply the MPAINO COM port in Arduino IDE }}+===== 3. Select the Board and Port =====
  
-{{ :guide:arduino-ide-port-selection-mobile.svg?350 |Select and apply the MPAINO COM port in Arduino IDE }}+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.
  
-^ Marker ^ Selection ^ +{{ :guide:arduino-ide-board-selection.svg?480 |Example of searching for and selecting an ILOGICS board in Arduino IDE }}
-**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. |+
  
-==== Blink Output 64 ====+{{ :guide:arduino-ide-board-selection-mobile.svg?350 |Board-selection example for a narrow screen }}
  
-This program turns the first output, ''64'', on and off every 0.5 seconds.+^ No. ^ Selection ^ 
 +| **1** | In the **BOARDS** search fieldenter 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)''. | 
 + 
 +In **PORTS**select the COM number found in Device Manager. 
 + 
 +{{ :guide:arduino-ide-port-selection.svg?480 |Example of selecting and applying a CP210x COM port in Arduino IDE }} 
 + 
 +{{ :guide:arduino-ide-port-selection-mobile.svg?350 |CP210x COM-port example for a narrow screen }} 
 + 
 +{{ :guide:arduino-ide-mpino-port-selection.svg?480 |Example of selecting the MP Download Cable COM port in Arduino IDE }} 
 + 
 +{{ :guide:arduino-ide-mpino-port-selection-mobile.svg?350 |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**. 
 + 
 +===== 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 ''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 ====
  
 <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:
 </code> </code>
  
-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 [[en-us_products:mpaino_8a8t|output wiring guide]].+==== MPINO Models with Input 0 and Output 32 ====
  
-==== Control Output 64 from Input 0 ==== +Use this example with MPINO-8A4R(T)-SMPINO-8A4R-SUMPINO-8A8R(T)-S, and MPINO-16A16R.
- +
-Output ''64'' turns on when the first input''0''is HIGH.+
  
 <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() {
-  const bool inputOn = digitalRead(INPUT_CHANNEL); +  digitalWrite(OUTPUT_CHANNEL, HIGH); 
-  digitalWrite(OUTPUT_CHANNEL, inputOn);+  delay(500); 
 +  digitalWrite(OUTPUT_CHANNEL, LOW); 
 +  delay(500);
 } }
 </code> </code>
  
-Check the input terminal and COM wiring for [[en-us_products:mpaino_8a8r|8A8R]] or [[en-us_products:mpaino_8a8t|8A8T]]. Switch off power before connecting the input signal, then turn the input on and off and check that the output follows it.+==== MPINO-8A8R and MPINO-16A8R8T · Relay Output 62 ====
  
-===== 4. MPINO-8A4R(T)-S First Upload =====+To test transistor output O(39on MPINO-16A8R8T, check the transistor-output wiring on its product page and change ''OUTPUT_CHANNEL'' to ''39''.
  
-==== Connect the Product ====+<code cpp> 
 +// relay output R(62) 
 +const uint8_t OUTPUT_CHANNEL 62;
  
-  - Check the power specification and R (relayor T (transistor) output type on the product label. Disconnect output loads for the first upload. +void setup() {}
-  - 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. +
-  - In Windows **Device Manager → Ports (COM & LPT)**, note the COM number for ''USB Serial Port(COMx)''. If it does not appear, install the [[https://www.ilogics.net/en-us/resources/downloads/driver/1|FTDI USB driver]] and reconnect the cable.+
  
-==== Select the Board and Port ====+void loop() { 
 +  digitalWrite(OUTPUT_CHANNEL, HIGH); 
 +  delay(500); 
 +  digitalWrite(OUTPUT_CHANNEL, LOW); 
 +  delay(500); 
 +
 +</code>
  
-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 ====
  
-{{ :guide:arduino-ide-mpino-board-selection.svg?480 |Select the MPINO-8A4R(T)-S board in Arduino IDE }}+<code cpp> 
 +// relay output R(39) 
 +const uint8_t OUTPUT_CHANNEL = 39;
  
-{{ :guide:arduino-ide-mpino-board-selection-mobile.svg?350 |Select the MPINO-8A4R(T)-S board in Arduino IDE }}+void setup() {}
  
-^ Marker ^ Selection ^ +void loop() { 
-| **1** | Enter ''MPINO-8A4R(T)-S'' in the **BOARDS** search field. | +  digitalWrite(OUTPUT_CHANNEL, HIGH); 
-| **2** | Select ''MPINO-8A4R(T)-S'' from the results. |+  delay(500)
 +  digitalWrite(OUTPUT_CHANNEL, LOW); 
 +  delay(500); 
 +
 +</code>
  
-{{ :guide:arduino-ide-mpino-port-selection.svg?480 |Select and apply the MP Download Cable COM port in Arduino IDE }}+===== 5Control the Output with the First Input =====
  
-{{ :guide:arduino-ide-mpino-port-selection-mobile.svg?350 |Select and apply the MP Download Cable COM port in Arduino IDE }}+Switch off power before wiring the input and COMTurn 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 ''USB Serial Port(COMx)'' in Device Manager. ''COM3'' in the image is an example. | +
-| **2** | Click **OK** to apply the board and port selections. |+
  
-==== Blink Output 32 (P32) ====+<code cpp> 
 +// first MPAINO input 
 +const uint8_t INPUT_CHANNEL 0; 
 +const uint8_t OUTPUT_CHANNEL 64;
  
-This program turns the first output, ''32'' (terminal P32), on and off every 0.5 seconds.+void setup() {} 
 + 
 +void loop() { 
 +  const bool inputOn = digitalRead(INPUT_CHANNEL); 
 +  digitalWrite(OUTPUT_CHANNELinputOn); 
 +
 +</code> 
 + 
 +==== MPINO Models with Input 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() {
-  digitalWrite(OUTPUT_CHANNEL, HIGH); +  const bool inputOn = digitalRead(INPUT_CHANNEL); 
-  delay(500); +  digitalWrite(OUTPUT_CHANNEL, inputOn);
-  digitalWrite(OUTPUT_CHANNEL, LOW); +
-  delay(500);+
 } }
 </code> </code>
  
-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 [[en-us_products:mpino_8a4t_s|output wiring guide]].+==== MPINO-8A8R and MPINO-16A8R8T · Input 22 → Relay Output 62 ====
  
-==== Control Output 32 (P32from Input 0 (P0) ====+<code cpp> 
 +// input I(22) 
 +const uint8_t INPUT_CHANNEL 22; 
 +const uint8_t OUTPUT_CHANNEL 62;
  
-Output ''32'' (terminal P32turns on when input ''0'' (terminal P0is HIGH.+void setup() {} 
 + 
 +void loop() 
 +  const bool inputOn = digitalRead(INPUT_CHANNEL); 
 +  digitalWrite(OUTPUT_CHANNEL, inputOn); 
 +
 +</code> 
 + 
 +==== 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:
 </code> </code>
  
-Check the input terminal and COM wiring for [[en-us_products:mpino_8a4r_s|8A4R-S]] or [[en-us_products:mpino_8a4t_s|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. 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 ''ARDUINO SDK INSTALL'' ran and restart Arduino IDE. Check the model name entered in the search field. | +| 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 | For MPAINO, check the CPU USB download port and CP210x driver. For MPINO-8A4R(T)-S, check the MP Download Cable and FTDI driver. | +| 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 copied correctly. Read the error line 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 the same COM number in Device Manager and Arduino IDE. Check the cable 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 | Check output ''64'' for MPAINO or ''32'' for MPINO-8A4R(T)-S. Use the product page for R/T output type and test-load wiring. | +| 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 | Check the input ''0'' terminal and COM wiring in 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.1789391658.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki