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 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: ...ies of merchantability or fitness for purpose are excluded 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 f...
Page 3: ...rolling MOD IO2 under Linux 11 CHAPTER 3 MOD IO2 BOARD DESCRIPTION 14 3 Introduction to the chapter 14 3 1 Layout top view 14 CHAPTER 4 THE PIC16F1503 MICROCONTROLLER 15 4 Introduction to the chapter...
Page 4: ...7 Introduction to the chapter 22 7 1 Eagle schematic 22 7 2 Physical dimensions 24 CHAPTER 8 REVISION HISTORY AND SUPPORT 25 8 Introduction to the chapter 25 8 1 Document revision 25 8 2 Board s revis...
Page 5: ...bugger 9 pin terminal screw connector for 7 GPIOs 3 3V and GND PWR jack for 12VDC 7 GPIOs which could implement different functionality as PWM SPI I2C etc 2 relay outputs with 15A 250VAC contacts with...
Page 6: ...oards 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 T...
Page 7: ...onent pins or any other metallic element 2 2 Requirements In order to set up the MOD IO2 optimally the following items are required Any OLIMEX board that has an UEXT connector 12V source of power If y...
Page 8: ...e https github com OLIMEX OLINUXINO tree master SOFTWARE UEXT 20MODULES MOD IO2 linux access tool This software tool requires a Linux enabled board The tool works with MOD IO2 units loaded with firmwa...
Page 9: ...d 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 where B 0 sets...
Page 10: ...re I2C 0 typically either 0 1 or 2 x 15 x is used to change the I2C address of the board 15 is the desired number it is different from the default 0x21 Expected result the board would have new I2C add...
Page 11: ...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...
Page 12: ...011 e g both relays are on etc Reading analog inputs outputs i2cset y 2 0x21 0x10 and then the read command i2cget y 2 0x21 where 0x10 the first analog IO The big thing here is that to read you actual...
Page 13: ...re than one MOD IO2 available since MOD IO2 s firmware revision 3 02 i2cset 2 0x21 0xHH where HH is new address in hexadecimal format Note that PROG jumper must be closed to be able to change the addr...
Page 14: ...SCRIPTION 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...
Page 15: ...Oscillator NCO Module 2x Configurable Logic Cell CLC Modules Integrated Temperature Indicator Module 8 Channel 10 bit ADC with Voltage Reference 5 bit Digital to Analog Converter DAC MI2C SPI 25mA So...
Page 16: ...PDAT 2 3 3V 5 GPIO0_ICSPCLK 3 GND 6 Not connected 5 2 UEXT modules MOD IO2 board has two UEXT connectors male and female and can interface Olimex s UEXT boards For more information on UEXT please visi...
Page 17: ...3V 6 SDA 2 GND 7 Not connected 3 Not connected 8 Not connected 4 Not connected 9 Not connected 5 SCL 10 Not connected 5 3 Relay output connectors There are two relays in MOD IO Their output signals a...
Page 18: ...t 1 3 3V 2 GND 3 GPIO0 AN0 4 GPIO1 AN1 5 GPIO2 AN2 6 GPIO3 AN3 7 GPIO4 8 GPIO5 AN7 9 GPIO6 PWM 5 5 PWR Jack The DC barrel jack has 2 0mm inner pin and 6 3mm hole More information about the exact compo...
Page 19: ...ault position is open 5 6 2 SDA_E SCL_E 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 ju...
Page 20: ...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...
Page 21: ...OLIMEX 2015 MOD IO2 user s manual 6 2 Physical memory map Page 21 of 28...
Page 22: ...ly 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...
Page 23: ...1 1 2 3 CON2 1 2 3 CON3 D2 D4 D7 GND 1 2 3 4 5 6 ICSP LED_REL1 LED_REL2 OUT1 1 OUT1 2 OUT1 3 OUT2 1 OUT2 2 OUT2 3 1 2 PROG PWR_J PWR_LED R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R13 REL1 REL1 REL2 REL2 1 2 SCL_...
Page 24: ...l 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 m...
Page 25: ...evision Revision Changes Modified page A 27 08 12 Initial creation All B 16 10 12 Fixed several leftovers from the template which were referencing wrong processors and boards Updated links 6 10 20 C 2...
Page 26: ...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: ...Olimex programmer capable of programming MOD IO2 SY0612E power supply adapter 12V 0 5A for MOD IO2 220V European compatibility The latest price list can be found at https www olimex com prices How to...
Page 28: ...ordered items are allowed subject to a 10 restocking fee What is unaffected If you hooked it to power you affected it To be clear this includes items that have been soldered to or have had their firmw...
Page 29: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Olimex Ltd MOD IO2...