hit counter code

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading

Summary of Contents for OLIMEX MOD-IO2

  • 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...
  • Page 2: Disclaimer

    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.
  • Page 3: Table Of Contents

    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 ........................
  • Page 4 OLIMEX© 2024 MOD-IO2 user's manual CHAPTER 6 REVISION HISTORY AND SUPPORT .......... 25 6. Introduction to the chapter ..................... 25 6.1 Document revision ......................... 25 6.2 Board's revision ........................26 6.3 Useful web links and purchase codes ................... 27 6.4 Product support ........................28...
  • Page 5: Chapter 1: Overview

    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.
  • Page 6: Board Layout (Top View)

    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.
  • Page 7: Organization

    OLIMEX© 2024 MOD-IO2 user's manual 1.5 Organization Each section in this document covers a separate topic, organized as follow: – Chapter 1 is an overview of the board usage and features – Chapter 2 provides a guide for quickly setting up the board –...
  • Page 8: Chapter 2 Setting Up The Mod-Io2 Board

    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.
  • Page 9: Firmware Description And Basic Usage Under Linux

    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 10: I2 C -Tools For Controlling Mod-Io2 Under Linux

    OLIMEX© 2024 MOD-IO2 user's manual 2. 5 . 1 I2 C -tools for controlling MOD-IO2 under Linux Instead of the custom program mentioned in 2.4.1 you might use the popular Linux tool “i2c-tools”. Download it with apt with: apt install i2c-tools MOD-IO2 is compatible with i2c-tools since the release of its firmware 3.
  • 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 13: Custom Software Tool For Controlling Mod-Io2 Under Linux

    OLIMEX© 2024 MOD-IO2 user's manual 2. 5 .2 Custom software tool for controlling MOD-IO2 under Linux To make the things even simpler we have written a software tool for controlling MOD-IO2 under Linux. You might find it here: https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/UEXT%20MODULES/MOD-IO2/ linux-access-tool...
  • 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...
  • Page 15: Arduino Ide Demos

    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.
  • Page 16: Chapter 3: The Ch32V003 Microcontroller

    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 ...
  • Page 17: Chapter 4 Connectors And Pinout

    OLIMEX© 2024 MOD-IO2 user's manual CHAPTER 4 CONNECTORS AND PINOUT 4. Introduction to the chapter In this chapter are presented the connectors that can be found on the board all together with their pinout and notes about them. Jumpers functions are described. Notes and info on specific peripherals are presented.
  • Page 18: Uext Connectors

    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.
  • Page 19: Relay Connectors

    OLIMEX© 2024 MOD-IO2 user's manual 4.3 Relay connectors There are two electromechanical relays in MOD-IO. Their output signals are the standard Normal Closed (NC), Normal Open (NO) and the Common (COM). REL1 – OUT1 Pin # Signal name NO – normal open NC –...
  • Page 20: Con1, Con2, Con3 Connectors

    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...
  • Page 21: Jumper Description

    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).
  • Page 22: Chapter 5 Schematics

    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...
  • Page 23 OLIMEX© 2024 MOD-IO2 user's manual Page 23 of 28...
  • Page 24: Physical Dimensions

    OLIMEX© 2024 MOD-IO2 user's manual 5.2 Physical dimensions Note that all dimensions are in mils. The three highest elements on the board in order from the tallest to the shortest are: relay T1 – 0.600'' (15.25 mm) over the pcb; relay T2 – 0.600'' (15.25 mm).
  • Page 25: Chapter 6 Revision History And Support

    OLIMEX© 2024 MOD-IO2 user's manual CHAPTER 6 REVISION HISTORY AND SUPPORT 6. Introduction to the chapter In this chapter you will find the current and the previous version of the document you are reading. Also the web-page for your device is listed. Be sure to check it after a purchase for the latest available updates and examples.
  • Page 26: Board's Revision

    OLIMEX© 2024 MOD-IO2 user's manual 6.2 Board's revision Revision, release date Revision notes B, 18.06.12 Initial release 1. Board re-made in KiCAD 2. PIC chip changed with CH32V003F4P6 C, unreleased 3. LDO now LD1117AG-33-AA3-A-R 4. ICSP connector no longer needed, replaced by CON4 with leftover GPIOs from the CH32V003 chip.
  • Page 27: Useful Web Links And Purchase Codes

    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.
  • Page 28: Product Support

    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.

Table of Contents