Olimex assumes no liability for applications assistance, customer product design, software performance, or infringement of patents or services described herein. THERE IS NO WARRANTY FOR THE DESIGN MATERIALS AND THE COMPONENTS USED TO CREATE MOD-IO2. THEY ARE CONSIDERED SUITABLE ONLY FOR MOD- IO2. Page 2 of 28...
2.3 Powering the board ........................7 2.4 Firmware description and basic usage under Linux ............8 2.4.1 Custom software tool for controlling MOD-IO2 under Linux ......... 8 2.4.2 I2CTools for controlling MOD-IO2 under Linux ............11 CHAPTER 3 MOD-IO2 BOARD DESCRIPTION ..........14 3.
Thank you for choosing the MOD-IO2 single board computer from Olimex! This document provides a user’s guide for the Olimex MOD-IO2 board. As an overview, this chapter gives the scope of this document and lists the board’s features. The differences between the members of the MOD-IO2 and MOD-IO boards are mentioned.
RELAY outputs you can add these by connecting MOD-IO2 to your development board. This board allows easy interfacing to 2 relays and 7 GPIOs. MOD-IO2 is stackable and addressable – these boards can be plugged together and you can add as many inputs and outputs as you want! 2-4- 6-8 etc! MOD-IO2 has PIC16F1503 microcontroller and the firmware is open source and available for modification.
2.1 Electrostatic warning MOD-IO2 is shipped in a protective anti-static package. The board must not be exposed to high electrostatic potentials. A grounding strap or similar protective device should be worn when handling the board. Avoid touching the component pins or any other metallic element.
Please note that the custom firmware does 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! 2.4.1 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.
Page 9
“2” for only the first or only the second relay) Expected result: a specific sound would occur and the relay LEDs would turn off. - Reading the status of the relays (available since MOD-IO2's firmware revision 3.02): ./modio2tool -B 0 -r...
(i2cget) different data. The information about the firmware is located in a README.txt file in the archive of the firmware; the archive containing the latest firmware (3.02) might be found here: https://www.olimex.com/Products/Modules/IO/MOD-IO2/resources/MOD- IO2_firmware_v_3_02.zip Some examples for setting/reading MOD-IO2's peripherals in Linux using i2c-tools - Turning on the relays: i2cset –y 2 0x21 0x40 0x03 ,where i2cset –...
Page 13
Detailed explanation of the preloaded software may be found in the demo package available at our web-page. - Changing I2C device address – if you use more than one MOD-IO2 (available since MOD- IO2's firmware revision 3.02) i2cset 2 0x21 0xHH...
3. Introduction to the chapter Here you get acquainted with the main parts of the board. Note the names used on the board differ from the names used to describe them. For the actual names check the MOD-IO2 board itself. 3.1 Layout (top view)
CHAPTER 4 THE PIC16F1503 MICROCONTROLLER 4. Introduction to the chapter In this chapter is located the information about the heart of MOD-IO2 – its PIC16 microcontroller. The information below is a modified version of the datasheet provided by its manufacturers from Microchip.
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.
5.6.3 UEXT_FPWR_E If closed provides 3.3V at the female UEXT connector. (be careful since if you close that jumper and also you close the male one on the next MOD-IO2 line this might cause electrical burn to the board. Default position is open/unsoldered.
7. Introduction to the chapter In this chapter are located the schematics describing logically and physically MOD-IO2. 7.1 Eagle schematic MOD-IO2 schematic is visible for reference here. You can also find it on the web page for MOD- IO2 at our site: https://www.olimex.com/Products/Modules/IO/MOD-IO2/open-source-hardware They are located in HARDWARE section.
Need help?
Do you have a question about the MOD-IO2 and is the answer not in the manual?
Questions and answers