Page 1
MOD-IO2 extension board USER’S MANUAL Document revision G, July 2024 Board designed by OLIMEX Ltd All boards produced by Olimex LTD are ROHS compliant...
This document is intended only to assist the reader in the use of the product. OLIMEX Ltd. shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product.
2. 4 Powering the board ........................8 2. 5 Firmware description and basic usage under Linux ............9 2. 5 . 1 I2 C -tools for controlling MOD-IO2 under Linux ..............10 2.5.2 Custom software tool for controlling MOD-IO2 under Linux ..........13 2.5.3 Arduino IDE demos ........................
MOD-IO2 is a smaller-sized input output extension module compared to MOD-IO both in terms of size and in terms of functionality, however in a lot of situations MOD-IO2 might provide to be the better choice. Designs which need optocouplers should consider MOD-IO. Additionally MOD-IO has a better power supply with the option to be provide voltage in the 8-30VDC range.
2-4-6-8 etc! MOD-IO2 has CH32V003 RISC-V microcontroller and the firmware is open source and available for modification. The board is a very good addition to most of the Olimex boards if you need GPIOs or analog inputs or relays.
Avoid touching the component pins or any other metallic element. 2.2 Typical setup The most typical setup for MOD-IO2 is to attach it via the female UEXT connector to another board with female UEXT connector. This establishes I2C interface between these two boards. Then run code on the main board and communicate via I2C with MOD-IO2.
Please note that the custom firmware might NOT support all of the hardware capabilities of MOD-IO2. In some cases you might need to to adapt the firmware to use the hardware of MOD-IO2 to its full potential! Page 9 of 28...
Page 11
0×01 only the first, 0×00 would turn both off – 0×03 again would turn them off also); Expected result: a specific sound would occur and relay LED would turn on. - Reading the status of the relays (available since MOD-IO2's firmware revision 3.02): i2cset –y 2 0x21 0x43 and then the read command i2cget –y 2 0x21...
Page 12
Detailed explanation of the preloaded software may be found in the firmware archive available for download at MOD-IO2’s web-page. - Changing I2C device address – especially useful if you use more than one MOD-IO2 i2cset 2 0x21 0xF0 0xHH ,where...
Page 14
Expected result: the voltage at the AN would be printed. If there is nothing connected it can be anything like “ADC1: 2.311V”. ADC is 10-bit. - Changing the I2C address – if you use more than one MOD-IO2 (available since MOD-IO2's firmware revision 3.02) ./modio2tool -B 0 -x 15...
We have written an Arduino IDE library suitable for the board, with a number of simple examples. If you use MOD-IO2 with Arduino IDE compatible board, you can download the ZIP archive then add it to your Arduino IDE installation.
MOD-IO2 user's manual CHAPTER 3: THE CH32V003 MICROCONTROLLER 3. Introduction to the chapter In this chapter is located the information about the heart of MOD-IO2 – its CH32V003F4P6 microcontroller. 3.1 The CH32V003F4P6 features QingKe 32-bit RISC-V2A processor, supporting 2 levels of interrupt nesting ...
The female connector is used either to connect to a board directly (without using the female-female cable) or to connect the module to another MOD-IO2 – to create a stackable module that can be addressed via the I2C. Remember to change the I2C address of each board when using multiple boards. By default the I2C address is 0x21.
The DC barrel jack has 2.0mm inner pin and 6.3mm hole. More information about the exact component might be found here: https://www.olimex.com/wiki/PWRJACK For the European customers, we also stock and sell basic power supply adapters compatible with the power jack. MOD-IO2 requires 12V DC of voltage. Pin # Signal name 12V DC input...
4.6.2 SDA_E1/SCL_E1 Jumpers that connect or disconnect 4.7K pull-up resistors. When you have more than one MOD-IO2 connected you need to keep those two jumpers closed, else the I2C line will be disconnected. The default positions for both jumpers are closed (pull-ups enabled).
In this chapter are located the schematics describing logically and physically MOD-IO2. 5.1 KiCAD schematic The latest MOD-IO2 schematic is situated on the next page for quicker reference. You can also find it in the HARDWARE section on the web page for MOD-IO2 at our site: https://www.olimex.com/Products/Modules/IO/MOD-IO2/open-source-hardware...
How to order? You can purchase directly from our online shop or from any of our distributors. Note that usually it is faster and cheaper to purchase Olimex products from our distributors. List of confirmed Olimex LTD distributors and resellers: https://www.olimex.com/Distributors.
All goods are checked before they are sent out. In the unlikely event that goods are faulty, they must be returned, to OLIMEX at the address listed on your order invoice. OLIMEX will not accept goods that have clearly been used more than the amount needed to evaluate their functionality.