Advertisement

Quick Links

MOD-IO2 extension board
USER'S MANUAL
Revision D, May 2015
Designed by OLIMEX Ltd, 2012
All boards produced by Olimex LTD are ROHS compliant

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MOD-IO2 and is the answer not in the manual?

Questions and answers

Summary of Contents for Oumex MOD-IO2

  • Page 1 MOD-IO2 extension board USER’S MANUAL Revision D, May 2015 Designed by OLIMEX Ltd, 2012 All boards produced by Olimex LTD are ROHS compliant...
  • Page 2: Disclaimer

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

    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.
  • Page 4 OLIMEX© 2015 MOD-IO2 user's manual 6.2 Physical memory map ......................21 CHAPTER 7 SCHEMATICS ................... 22 7. Introduction to the chapter ..................... 22 7.1 Eagle schematic ........................22 7.2 Physical dimensions ....................... 24 CHAPTER 8 REVISION HISTORY AND SUPPORT .......... 25 8.
  • Page 5: Chapter 1 Overview

    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.
  • Page 6: Target Market And Purpose Of The Board

    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.
  • Page 7: Chapter 2 Setting Up The Mod-Io2 Board

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

    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...
  • Page 10 OLIMEX© 2015 MOD-IO2 user's manual - 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 ,where -B 0 – sets the board to use its hardware I2C #0 (typically either “0”, “1”, or “2”) -x 15 –...
  • Page 11: I2Ctools For Controlling Mod-Io2 Under Linux

    (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 12 OLIMEX© 2015 MOD-IO2 user's manual - 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 ,where i2cset – command for sending data; – to skip the y/n confirmation prompt;...
  • 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...
  • Page 14: Chapter 3 Mod-Io2 Board Description

    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)
  • Page 15: Chapter 4 The Pic16F1503 Microcontroller

    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.
  • Page 16: Chapter 5 Connectors And Pinout

    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.
  • Page 17: Male Connector

    OLIMEX© 2015 MOD-IO2 user's manual 5.2.2 Male connector The male connector is used with the ribbon cable in the package to connect to another male UEXT or to connected to another MOD-IO2 Male UEXT Pin # Signal name Pin # Signal name +3.3V...
  • Page 18: Gpio Connectors

    OLIMEX© 2015 MOD-IO2 user's manual 5.4 GPIO connectors The GPIO connectors can be used to implement PWM, I2C, SPI, etc. Note that the names of each pin are also printed at the bottom of the board. Pin # Signal name Analog Input 3.3V...
  • Page 19: Jumper Description

    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.
  • Page 20: Chapter 6 Block Diagram And Memory

    OLIMEX© 2015 MOD-IO2 user's manual CHAPTER 6 BLOCK DIAGRAM AND MEMORY 6. Introduction to the chapter Down this page you can find a memory map for this family of processors. It is strongly recommended to refer to the original datasheet released by Microchip for one of higher quality.
  • Page 21: Physical Memory Map

    OLIMEX© 2015 MOD-IO2 user's manual 6.2 Physical memory map Page 21 of 28...
  • Page 22: Chapter 7 Schematics

    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.
  • Page 23 OLIMEX© 2015 MOD-IO2 user's manual 3.3V UEXTs 3.3V CON1 3.3V 3.3V GPIO0_ICSPDAT RA0/AN0/C1IN+/DACOUT1/ICSPDAT GPIO0_ICSPDAT GPIO1_ICSPCLK GPIO0 RA1/AN1/VREF+/C1IN0-/C2IN0-/ICSPCLK GPIO2_AOUT TB3/3.5MM RA2/AN2/C1OUT/DACOUT2/T0CKI/INT/PWM3/CLC1/CWG1FLT UEXT_MPWR_E #MCLR RA3/CLC1IN0/VPP/T1G/SS/#MCLR CON2 GPIO3 Open RA4/AN3/NCO1/SDO/CLKOUT/T1G UEXT_MALE GPIO4_CLKIN GPIO1_ICSPCLK GPIO1 RA5/CLKIN/T1CKI/NCO1CLK/CLC1IN1 GPIO2_AOUT GPIO2 100nF GPIO3 GPIO3 RC0/AN4/C2IN+/CLC2/SCL/SCK TB3/3.5MM RC1/AN5/C1IN1-/C2IN1-/PWM4/NCO1(1)/SDA/SDI...
  • Page 24: Physical Dimensions

    OLIMEX© 2015 MOD-IO2 user's manual 7.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); ICSP connector – 0.450'' (11.43 mm).
  • Page 25: Chapter 8 Revision History And Support

    OLIMEX© 2015 MOD-IO2 user's manual CHAPTER 8 REVISION HISTORY AND SUPPORT 8. 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© 2015 MOD-IO2 user's manual 8.2 Board's revision Revision, date Revision notes B, 18.06.12 Initial release Page 26 of 28...
  • Page 27: Useful Web Links And Purchase Codes

    OLIMEX© 2015 MOD-IO2 user's manual 8.3 Useful web links and purchase codes The web page you can visit for more info on your device is https://www.olimex.com/mod-io2.html. ORDER CODES: MOD-IO2 – the version of the board discussed in this document MOD-IO – the bigger version with optocouplers and 8-30VDC power range option PIC-KIT3 –...
  • Page 28: Product Support

    OLIMEX© 2015 MOD-IO2 user's manual 8.4 Product support For product support, hardware information and error reports mail to: support@olimex.com. All document or hardware feedback is welcome. Note that we are primarily a hardware company and our software support is limited. Please consider reading the paragraph below about the warranty of Olimex products.
  • Page 29 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Olimex Ltd. MOD-IO2...

Table of Contents