background image

OLIMEX© 2020

MOD-IO user's manual

Page 26 of 30

8-30 VDC

Fmax=50kHz

+

+

+

+

-

-

-

-

MOD-IO_rev_A1

Olimex LTD, Bulgaria, 2013

www.olimex.com

AIN-1-1

AIN-1-2

TB2/3.5mm

AIN-1-3

AIN-2-1

AIN-2-2

AIN-2-3

TB2/3.5mm

1

2

3

4

5

6

7

8

9

10

AVRISP

BH10S

BUT

T1107A(6x3.8x2.5mm)

C1
4n7

C2

1uF/50v

C3

100n

+

C4

220uF/35V

+

C5

2

2

0

u

/1

0

V

/t

a

n

t

C6

10n

C7

100n

C8

100n

+

C9

4

7

u

F/

6

.3

V

C10

100n

C11

NA

C12
33p
C13
33p

C14

100n

C15

100n

C16

100n

C17

100n

C18

100n

C19

100n

C20

33nF

C21

33nF

C22

33nF

C23

33nF

D1

1N5819(smd)

D2

1N4148/SMD

D3

1N4148/SMD

D4

1N4148/SMD

D5

1N4148/SMD

D6
1N4148/SMD

D7
1N4148/SMD

D8
1N4148/SMD

D9
1N4148/SMD

1
2
3
4
5
6

EXT

WF6S

G1
DB104(SMD)

GND

IN1-1

IN1-2

IN2-1

IN2-2

IN3-1

IN3-2

IN4-1

IN4-2

1

2

3

4

5

6

7

8

9

10

JTAG

L1

100uH/SW68

LED1

red

LED2

red

LED3

red

LED4

red

O1

green

O2

green

O3

green

O4

green

OUT1-1

OUT1-2

OUT1-3

OUT2-1

OUT2-2

OUT2-3

OUT3-1

OUT3-2

OUT3-3

OUT4-1

OUT4-2

OUT4-3

+5V

+

5

V

+

5

V

+

5

V

+

5

V

PWR_J

YDJ-1134

PWR_LED
red

Q1

8MHz/20pF

GND

Q2

32768Hz/6pF

R1

150k

R2

110k

0R

R3

R4

8.2K

R5

2K

R6

390R/1%

R7

240R/1%

R8

1K

R9

100R

R10

10K

R11

330R

R12

4.7K

R13

100R

R14

NA

R15

4.7K

R16

NA

R17

4.7K

R18

4.7K

R19

100R

R20

NA

R21

100R

R22

NA

R23

100R

R24

NA

100R

R26

NA

R27

3.9k

R28

47K

R29

3.9k

R30

47K

R31

3.9k

R32

47K

R33

3.9k

R34

47K

R35

1K

R36
10K

R37
1K

R38

1K

R39
10K

R40

1K

R41

1K

R42
10K

R43
1K

R44

1K

R45
10K

R46
1K

RAS-05-15

REL1

REL1

RAS-05-15

REL2

REL2

RAS-05-15

REL3

REL3

RAS-05-15

REL4

REL4

RST

T1107A(6x3.8x2.5mm)

STAT
yellow

T1
BC817

T2
BC817

T3
BC817

T4
BC817

(ADC0)PA0

37

(ADC1)PA1

36

(ADC2)PA2

35

(ADC3)PA3

34

(ADC4)PA4

33

(ADC5)PA5

32

(ADC6)PA6

31

(ADC7)PA7

30

(AIN0/INT2)PB2

42

(AIN1)PB3

43

(ICP)PD6

15

(INT0)PD2

11

(INT1)PD3

12

(MISO)PB6

2

(MOSI)PB5

1

(OC1A)PD5

14

(OC1B)PD4

13

(OC2)PD7

16

(RXD)PD0

9

(SCK)PB7

3

(SS)PB4

44

(T0)PB0

40

(T1)PB1

41

(TOSC1)PC6

25

(TOSC2)PC7

26

(TXD)PD1

10

AGND

28

AREF

29

AVCC

27

GND

6

GND1

18

GND2

39

PC0(SCL)

19

PC1(SDA)

20

PC2(TCK)

21

PC3(TMS)

22

PC4(TDO)

23

PC5(TDI)

24

RESET

4

VCC

5

VCC1

17

VCC2

38

XTAL1

8

XTAL2

7

ATMEGA16L

GND

VCC

RESET

3

1

2

U2

MCP130T

1

2

4

3

U3

H11A817SMD

1

2

4

3

U4

H11A817SMD

1

2

4

3

U5

H11A817SMD

1

2

4

3

U6

H11A817SMD

1

2

3

4

5

6

7

8

9

10

UEXT_FEMALE

IDC10S/PCB

1

2

3

4

5

6

7

8

9

10

UEXT_MALE

BH10S

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3

.3

V

3.3V

EN 5

FB

3

GND7

INV

4

N.C.

2

RT 6

SW 1

VIN

8

VR1(5V)

BD9001FSO-8

ADJ/GND

IN

OUT

VR2(3.3V)
LM1117IMPX-ADJ

AN[1..4]

O[1..4]

O

[1

..

4

]

O[1..4]

#SS

#SS

#SS

AN1

AN1

AN2

AN2

AN3

AN3

AN4

AN4

BUT

BUT

I1

I1

I1

I2

I2

I2

I3

I3

I3

I4

I4

I4

LED

MISO

MISO

MISO

MOSI

MOSI

MOSI

O1

O1

O2

O2

O3

O3

O4

O4

RST

RST

RST

RXD

RXD

RXD

SCK

SCK

SCK

SCL

SCL

SCL

SDA

SDA

SDA

TCK

TCK

TDI

TDI

TDO

TDO

TMS

TMS

TXD

TXD

TXD

Summary of Contents for MOD-IO

Page 1: ...MOD IO Open source hardware UEXT extension board with relays and USER S MANUAL Document revision C May 2020 Designed by OLIMEX Ltd 2014 All boards produced by Olimex LTD are ROHS compliant...

Page 2: ...However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded This document is intended only to assist the reader i...

Page 3: ...2 Getting the state of opto isolators 11 2 7 3 Reading the value of an analog input 12 2 7 4 Changing the I2C address of a board 13 2 8 Arduino with MOD IO 14 2 9 OLinuXino boards with MOD IO 14 CHAPT...

Page 4: ...CS 25 6 Introduction to the chapter 25 6 1 Eagle schematic 25 6 2 Physical dimensions 27 CHAPTER 7 REVISION HISTORY AND SUPPORT 28 7 Introduction to the chapter 28 7 1 Document revision 28 7 2 Board r...

Page 5: ...mer JTAG 5 2 pin connector for in circuit programming with AVR JTAG AVR JTAG USB or another compatible JTAG debugger EXT extension connector for the unused AVR ports Status LED Reset IC ZM33064 Quartz...

Page 6: ...compared to the Atmel s ATmega16 MOD IO2 is also stackable and again comes with custom firmware for easier start It uses I2C for communication MOD IO2 is also a completely open design hardware files...

Page 7: ...d to the same electrical source to the same utility power socket In rare cases different polarity might cause hardware damage to one of the boards in your setup 2 2 Hardware requirements In order to s...

Page 8: ...s that can be used the most popular programmer being AVRDude There are a lot of tutorials on how to configure a Linux environment for AVR Please note that setting such a working development environmen...

Page 9: ...than what we have done Of course you can decide to completely skip this part and use the board as a general purpose AVR board You can write own software or firmware from scratch 2 6 Connecting more t...

Page 10: ...igital outputs relays OUT1 OUT2 OUT3 OUT4 signals O1 O2 O3 O4 Digital inputs optocouplers IN1 IN2 IN3 IN4 signals I1 I2 I3 I4 Analogue inputs AIN 1 2 AIN 1 3 AIN 2 1 AIN 2 2 signals AN1 AN2 AN3 AN4 Th...

Page 11: ...the MOD IO board i e bit0 corresponds to IN1 bit1 to IN2 and so on 1 means that power is applied to the optocoupler 0 means the opposite Note Successive readings from the board without reissuing the c...

Page 12: ...formula voltage 3 3 1024 read value Volts Note Successive readings from the board without reissuing the command code will not get an updated value of the voltage i e the user will read the same value...

Page 13: ...it address to update P Stop condition NB To protect the device from accidental address updates the user should hold the on board button pressed not the RESET button while issuing the command Successfu...

Page 14: ...ith I2C address 0x58 Refer to the comments inside the example for more information 2 9 OLinuXino boards with MOD IO You can connect MOD IO to all OLINUXINO boards that have UEXT connector Connect the...

Page 15: ...0 MOD IO user s manual To read digital inputs i2cget y f 2 0x58 0x20 c To read analog value of IN1 i2cset y f 2 0x58 0x30 i2cget y f 2 0x58 w To change address to 0 22 i2cset y f 2 0x58 0xF0 0x22 Page...

Page 16: ...t acquainted with the main parts of the board Note the names used on the board might differ from the names used below to describe them For the actual names check the MOD IO board itself 3 1 Layout top...

Page 17: ...ears at 85 C 100 years at 25 C Optional Boot Code Section with Independent Lock Bits In System Programming by On chip Boot Program True Read While Write Operation Programming Lock for Software Securit...

Page 18: ...xtended Standby I O and Packages 32 Programmable I O Lines Operating Voltages 2 7 5 5V Speed Grades 0 8 MHz Power Consumption 1 MHz 3V and 25 C Active 1 1 mA Idle Mode 0 35 mA Power down Mode 1 A More...

Page 19: ...ion with MOD IO There are several ways for communication with MOD IO and its main microcontroller ATMEGA16A The three typical communication routines are via I2C by utilizing the default firmware via I...

Page 20: ...you can still use it for programming as long as you make a small adapter or set jumper wires properly Tables with proper connections required to convert 6 pin ISP to 10 pin ISP are seasy to be found Y...

Page 21: ...D IO user s manual 5 4 EXT The EXT connector has 4 pins from the ATMEGA16A s port D PD4 PD5 PD6 and PD7 it has a VCC and GND for easier access also Pin Signal Name 1 PD7 2 PD6 3 PD5 4 PD4 5 3 3V 6 GND...

Page 22: ...e connected to each other even without the need of a cable Just plug the UEXT_FEMALE of board 1 to the UEXT_MALE of board 2 You can have as many boards as you want as long as each of them has unique i...

Page 23: ...2 OUT1 OUT2 OUT3 OUT4 digital outputs The digital outputs are controlled by the big orange relays on the top of the board OUT1 connected to ADC3 PA3 signal name O4 OUT2 connected to ADC2 PA2 signal n...

Page 24: ...tmega16l pin 43 AIN1 PB3 Status LED red with name LED1 visualize input IN1 state Status LED red with name LED2 visualize input IN2 state Status LED red with name LED3 visualize input IN3 state Status...

Page 25: ...We mostly use Eagle by Cad Soft 4 16r2 for designing However the files should be compatible with the latest Eagle available Cad Soft offers a trial version of their software that allows you to inspect...

Page 26: ...2 47K R33 3 9k R34 47K R35 1K R36 10K R37 1K R38 1K R39 10K R40 1K R41 1K R42 10K R43 1K R44 1K R45 10K R46 1K RAS 05 15 REL1 REL1 RAS 05 15 REL2 REL2 RAS 05 15 REL3 REL3 RAS 05 15 REL4 REL4 RST T1107...

Page 27: ...OLIMEX 2020 MOD IO user s manual 6 2 Physical dimensions Note that all dimensions are in mm Page 27 of 30...

Page 28: ...ed by i2c tools added instruction for usage in Arduino improved the section borders for better readability improved the numbering of the chapters 14 19 30 C 28 08 20 Fixed incorrect information about...

Page 29: ...le low cost programmer compatible with Atmel Studio 6 or any previous version also compatible with AVRDude AVR ISP MK2 an open source programmer based on ISP MKII compatible with Atmel Studio 6 or any...

Page 30: ...mmer tools and cables permitted within 7 days from the date of receipt of merchandise After such time all sales are considered final Returns of incorrect ordered items are allowed subject to a 10 rest...

Reviews: