MOD-IO development board user`s manual

MOD-IO development board user`s manual

MOD-IO development board user's manual

All boards produced by Olimex are ROHS compliant

Rev. C, March 2013

Copyright(c) 2011, OLIMEX Ltd, All rights reserved

Page 1

INTRODUCTION

MOD-IO is a small but powerful development board who let you control 4 optoisolated input and 4 relay outputs - with this features is possible to turn on and off almost any electronic device at home. The board has UEXT_FEMALE connector which allows you to communicate with a PC and UEXT_MALE connector where you can connect other Olimex board with UEXT.

The MOD-IO project is fully open software and open hardware. The customer has full access to the documentation of the board including schematics and board design.

The main idea of MOD-IO chain connection is to extend:

- isolated relay outputs

- isolated digit inputs

- non isolated analog inputs

- non isolated digit inputs/outputs using UEXT male/female connector. So the MCU interfaces (I2C, SPI, UART) from all chain boards are connected in parallel.

Note that if you want to connect more than 1 MOD-IO board then on the interface bus (I2C or UART or SPI) has to have only one Master device. The other devices have to be Slaves.

For example: if UART interface is used - the master will send a string with Slave address and command. All Slaves will listen UART bus through RXD line while all Slave TXD lines are inputs. So when the address is recognized from the Slave device, the one will answer as it will force TXD pin like output but immediately after command answer is finished the Slave TXD pin must be initialized like input.

The same principle can be used for other interfaces (SPI or I2C).

BOARD FEATURES

Microcontroller: Atmega16L

AVRISP connector

JTAG connector

EXT connector

UEXT_MALE

UEXT_FEMALE

Clock circuit

User button

Reset circuit and button

Power Jack

Power-on led

Nine status leds

Four optocoupler isolated inputs

Page 2

Four Relays

PCB: FR-4, 1.5 mm (0,062"), solder mask, silkscreen component print

Dimensions: 100x80 mm (3.94x3.15")

Page 3

ELECTROSTATIC WARNING

The MOD-IO board is shipped in protective anti-static packaging. The board must not be subject to high electrostatic potentials. General practice for working with static sensitive devices should be applied when working with this board.

BOARD USE REQUIREMENTS

Cables: The cable you will need depends on the programmer/debugger you use. If you use AVR-PG1, or AVR-JTAG, you will need RS232 cable, if you use AVR-PG2, you will need LPT cable, if you use AVR-USB-

JTAG, AVR-ISP500, AVR-ISP500-TINY, AVR-ISP500-ISO, AVR-ISP-

MK2 you will need 1.8 meter A-B USB cable.

Hardware:

One of Olimex programmers/debuggers – AVR-PG1 , AVR-PG2 ,

AVR-ISP500 , AVR-ISP500-TINY , AVR-ISP500-ISO , AVR-JTAG , AVR-

Software:

USB-JTAG, AVR-ISP-MK2 or other compatible programming/debugging tool

.

Make sure to check if the above programmer/debugger is supported by the IDE you are going to use.

AVR C Compiler

PROCESSOR FEATURES

MOD-IO use 8-bit AVR Microcontroller with 16K Bytes In-System Programmable

Flash, with these features:

High-performance, Low-power AVR ® 8-bit Microcontroller

Advanced RISC Architecture

131 Powerful Instructions – Most Single-clock Cycle Execution

32 x 8 General Purpose Working Registers

Fully Static Operation

Up to 16 MIPS Throughput at 16 MHz

On-chip 2-cycle Multiplier

High Endurance Non-volatile Memory segments

16K Bytes of In-System Self-programmable Flash program memory

512 Bytes EEPROM

1K Byte Internal SRAM

Write/Erase Cycles: 10,000 Flash/100,000 EEPROM

Data retention: 20 years 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

Page 4

Programming Lock for Software Security

JTAG (IEEE std. 1149.1 Compliant) Interface

Boundary-scan Capabilities According to the JTAG Standard

Extensive On-chip Debug Support

Programming of Flash, EEPROM, Fuses, and Lock Bits through the JTAG

Interface

Peripheral Features

Two 8-bit Timer/Counters with Separate Prescalers and Compare Modes

One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and

Capture Mode

Real Time Counter with Separate Oscillator

Four PWM Channels

8-channel, 10-bit ADC

8 Single-ended Channels

7 Differential Channels in TQFP Package Only

2 Differential Channels with Programmable Gain at 1x, 10x, or 200x

Byte-oriented Two-wire Serial Interface

Programmable Serial USART

Master/Slave SPI Serial Interface

Programmable Watchdog Timer with Separate On-chip Oscillator

On-chip Analog Comparator

Special Microcontroller Features

Power-on Reset and Programmable Brown-out Detection

Internal Calibrated RC Oscillator

External and Internal Interrupt Sources

Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down,

Standby and Extended 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

Page 5

Idle Mode: 0.35 mA

Power-down Mode: < 1 µA

Page 6

BLOCK DIAGRAM

Page 7

MEMORY MAP

Page 8

Page 9

SCHEMATIC

AIN-1-1

AIN-1-2

AIN-1-3

TB2/3.5mm

AIN-2-1

AIN-2-2

3.3V

AIN-2-3

TB2/3.5mm

IN4-2

+

IN4-1

-

IN3-2

+

IN3-1

-

IN2-2

+

IN2-1

-

IN1-2

+

IN1-1

-

R19

100R

R21

100R

R23

100R

100R

R27

3.9k

R29

3.9k

R31

3.9k

R33

3.9k

PWR_J

YDJ-1134

8-30 VDC

G1

DB104(SMD)

R1

150k

C1

4n7

VR1(5V)

8

VIN

4

INV

2

N.C.

3

FB

BD9001FSO-8

EN 5

SW 1

RT 6

GND7

C2

1uF/50v

C3

100n

R2

110k

C4

220uF/35V

L1

100uH/SW68

D1

1N5819(smd)

R3

0R

C5

+5V

R4

8.2K

C6

10n

C7

100n

VR2(3.3V)

LM1117IMPX-ADJ

IN OUT

ADJ/GND

R7

240R/1%

R6

390R/1%

C8

100n

3.3V

C9

PWR_LED red

R8

1K

O1

R35

1K

D9

REL4

T4

BC817 green

O4

R37

1K

R5

GND

R36

10K

Fmax=50kHz

AN1

2K

R20

NA

C20

R9 green

O3

33nF

100R

RST

D8

C10

3.3V

AN2 R10

R40

1K

AN[1..4]

R22

NA

R24

NA

R26

NA

C21

33nF

C22

33nF

C23

33nF

AN3

AN4

3.3V

3.3V

3.3V

RST

AVRISP

2

4

6

8

10

6

8

2

4

10

BH10S

5

7

1

3

9

JTAG

1

3

5

7

9

O[1..4]

RST

STAT yellow

3.3V

AN1

AN2

AN3

O3

O2

O1

R11

330R

Q2

GND

32768Hz/6pF

TCK

TDO

TMS

TDI SDA

SCL

TDI

TDO

TMS

TCK

SCK

MISO

MOSI

#SS

LED

I2

I3

I4

30

31

32

33

34

35

36

37

44

43

42

41

40

3

2

1

26

25

24

23

22

21

20

19

(ADC7)PA7

(ADC6)PA6

(ADC5)PA5

(ADC4)PA4

(ADC3)PA3

(ADC2)PA2

(ADC1)PA1

(ADC0)PA0

(SCK)PB7

(MISO)PB6

(MOSI)PB5

(SS)PB4

(AIN1)PB3

(AIN0/INT2)PB2

(T1)PB1

(T0)PB0

(TOSC2)PC7

(TOSC1)PC6

PC5(TDI)

PC4(TDO)

PC3(TMS)

PC2(TCK)

PC1(SDA)

PC0(SCL)

RESET

4

XTAL2

7

XTAL1

8

AREF

29

AVCC

27

AGND

28

VCC

5

VCC1

17

VCC2

38

RST

Q1

8MHz/20pF

C12

33p

C13

33p

3.3V

C14

100n

C15

100n

C11

NA

3.3V

3.3V

1

10K

U2

RESET

GND

MCP130T

O2

O3

R38

1K

R41

1K

R39

10K

D7

REL2

RAS-05-15

T3

BC817

T2

BC817 green

O2

R43

1K

D5

1N4148/SMD red

LED4

1

U6

2

4

3

I1

R28

47K

I1

3

4

5

6

1

2

I1

BUT

TXD

RXD

16

15

14

13

12

11

10

9

(OC2)PD7

(ICP)PD6

(OC1A)PD5

(OC1B)PD4

(INT1)PD3

(INT0)PD2

(TXD)PD1

(RXD)PD0

GND

6

GND1

18

GND2

39

C16

100n

C17

100n

C18

100n

EXT

WF6S

H11A817SMD

ATMEGA16L

I2

I2 red

LED3

1

U5

4

R30

O[1..4]

D4

1N4148/SMD

2 3

47K

H11A817SMD red

LED2

1

U4

4

I3

R32

I3 3.3V

3.3V

3.3V

3.3V

3.3V

D3

1N4148/SMD

2 3

47K

R12

4.7K

R13

R14

NA

R15

4.7K

R16

NA

R17

4.7K

H11A817SMD

BUT

I4 100R

UEXT_MALE

6

8

2

4

10

UEXT_FEMALE

D2

1N4148/SMD red

LED1

1

U3

2

4

3

I4

R34

47K

C19

100n

BUT

T1107A(6x3.8x2.5mm)

SCL

3

SCK

7

9

TXD

SDA

MOSI

#SS

SCL

3

SCK

7

9

6

8

2

4

10

TXD

SDA

MOSI

#SS

BH10S IDC10S/PCB

H11A817SMD

This schematic is released under the Creative Commons Attribution-Share Alike 3.0 United States License.

3.3V

R18

4.7K

MOD-IO_rev_A1

O4

R44

1K https://www.olimex.com

R42

10K

D6

REL1

R45

10K

T1

BC817

OLIMEX LTD, Plovdiv, Bulgaria, 2013 green

O1

R46

1K

REL4

REL3

REL2

REL1

OUT3-3

OUT3-2

OUT3-1

OUT2-3

OUT2-2

OUT2-1

OUT1-3

OUT1-2

OUT1-1

OUT4-3

OUT4-2

OUT4-1

BOARD LAYOUT

POWER SUPPLY CIRCUIT

MOD-IO is typically power supplied with 8-30V DC.

Power consumption when all relays are working is about 310 mA.

CLOCK CIRCUIT

Crystal Quartz 8 MHz connected to Atmega16l pin 7 (XTAL2) and pin 8 (XTAL1).

Crystal Quartz 32.768kHz connected to Atmega16L pin 25 ((TOSC1)PC6) and pin 26

((TOSC2)PC7).

RESET CIRCUIT

MOD-IO reset circuit includes Reset scheme MCP130T (U2), AVRISP connector pin

5, JTAG connector pin 6, Atmega16L pin 4 (RESET), R9 (100Ohm), R10 (10k), C10

(100nF) and RST button.

Page 11

CONNECTOR DESCRIPTIONS

AVRISP

5

6

3

4

Pin #

1

2

9

10

7

8

Signal Name

MOSI

3.3V

NC

GND

RST

GND

SCK

GND

MISO

GND

JTAG

6

7

4

5

8

Pin #

1

2

3

9

10

Signal Name

TCK

GND

TDO

3.3V

TMS

RST

3.3V

NC

TDI

GND

EXT

5

6

3

4

Pin #

1

2

Signal Name

PD7

PD6

PD5

PD4

3.3V

GND

Page 12

UEXT_MALE

More info available here: https://www.olimex.com/Products/Modules/UEXT/

5

6

3

4

Pin #

1

2

9

10

7

8

Signal Name

NC

GND

RXD

TXD

SCL

SDA

MISO

MOSI

SCK

#SS

UEXT_FEMALE

3

4

5

Pin #

1

2

8

9

6

7

10

Signal Name

NC

GND

RXD

TXD

SCL

SDA

MISO

MOSI

SCK

#SS

Page 13

IN1, IN2 IN3, IN4

Please note that the opto-isolated inputs IN1, IN2, IN3, IN4 in earlier revisions were able to receive signals in the 3V to 6V range. R27, R29, R31, R33 were 330R and R28, R30, R32, R34 were R4.7k.

We have now adjusted the values of the resistors in that part of the schematic in latest revisions to allow higher voltage input in the 3.3V-24.0V range. R27, R29, R31, R33 are now R3.9k and R28, R30,

R32, R34 are now R47k

Pin #

1

2

Signal

-

+

IN1 connected to (T0)PB0 – signal I4

IN2 connected to (T1)PB1 – signal I3

IN2 connected to (AIN0/INT2)PB2 – signal I2

IN4 connected to (INT1)PD3 – signal I1

OUT1, OUT2, OUT3, OUT4

OUT1 connected to (ADC3)PA3 – signal name O4

OUT2 connected to (ADC2)PA2 – signal name O3

OUT3 connected to (ADC1)PA1 – signal name O2

OUT4 connected to (ADC0)PA0 – signal name O1

AIN-1

Please note that the analog inputs by default are as big as the input levels but you might change this.

Just calculate the needed resistors R19/R20 and R21/R22.

Pin # Signal Name Connected to

1

2

3

3.3V

AN1

AN2

VCC

(ADC7)PA7

(ADC6)PA6

Page 14

AIN-2

Please note that the analog inputs by default are as big as the input levels but you might change this.

Just calculate (and mount/replace) the needed resistors R23/R24 and R25/R26.

Pin # Signal Name Connected to

1 AN3 (ADC5)PA5

2

3

AN4

AGND

(ADC4)PA4

Analog GND

PWR_J

Pin #

1

2

Signal Name

Power Input

GND

Page 15

JUMPER DESCRIPTION

There are no jumpers on this board.

INPUT/OUTPUT

User button with name BUT – connected to Atmega16L pin 11 ((INT0)PD2).

Reset button with name RST – connected to Atmega16L pin 4 (RESET).

Status LED (yellow) with name STAT – connected via R11 (330 Ohm) to Atmega16l 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 LED (red) with name LED4 – visualize input (IN4) state.

Status LED (green) with name O1 – visualize relay (REL1) state.

Status LED (green) with name O2 – visualize relay (REL2) state.

Status LED (green) with name O3 – visualize relay (REL3) state.

Status LED (green) with name O4 – visualize relay (REL4) state.

Power-on LED (red) with name PWR_LED – shows that +3.3V voltage is applied to the board.

Page 16

MECHANICAL DIMENSIONS

Page 17

AVAILABLE DEMO SOFTWARE

There are two firmware available for MOD-IO: one is for RS232 control and the other is for I2C control. They might be found at the web page of MOD-IO.

Direct download links:

MOD-IO I2C (newer) firmware C source and hex

MOD-IO RS232 (older) firmware C source and hex

Page 18

ORDER CODE

MOD-IO assembled and tested.

How to order?

You can order directly from our web shop or from any of our distributors. The list of distributors might be found here: https://www.olimex.com/Distributors .

Check our web https://www.olimex.com

for more info.

Revision history:

Board's revision:

Manual's revision:

Rev. A - create November 2009

Rev. B – edited September 2011 added more detailed INTRODUCTION and

MECHANICAL DIMENSIONS

Rev. C – edited March 2013 added new schematic, more information about

AIN and IN inputs; IN input voltage adjusted; updated disclaimer and product support

Page 19

Disclaimer

© 2013 Olimex Ltd. Olimex®, logo and combinations thereof, are registered trademarks of Olimex Ltd.

Other product names may be trademarks of others and the rights belong to their respective owners.

The information in this document is provided in connection with Olimex products. No license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Olimex products.

The Hardware project is released under the Creative Commons Attribution-Share Alike 3.0 United

States License. You may reproduce it for both your own personal use, and for commercial use. You will have to provide a link to the original creator of the project https://www.olimex.com on any documentation or website.

You may also modify the files, but you must then release them as well under the same terms. Credit can be attributed through a link to the creator website: https://www.olimex.com

The software is released under GPL.

It is possible that the pictures in this manual differ from the latest revision of the board.

The product described in this document is subject to continuous development and improvements. All particulars of the product and its use contained in this document are given by OLIMEX in good faith.

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 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.

This evaluation board/kit is intended for use for engineering development, demonstration, or evaluation purposes only and is not considered by OLIMEX to be a finished end-product fit for general consumer use. Persons handling the product must have electronics training and observe good engineering practice standards. As such, the goods being provided are not intended to be complete in terms of required design-, marketing-, and/or manufacturing-related protective considerations, including product safety and environmental measures typically found in end products that incorporate such semiconductor components or circuit boards.

Olimex currently deals with a variety of customers for products, and therefore our arrangement with the user is not exclusive. 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-IO. THEY ARE CONSIDERED SUITABLE ONLY FOR MOD-IO.

Page 20

For product support, hardware information and error reports mail to: [email protected]

. 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.

Warranty and returns:

Our boards have lifetime warranty against manufacturing defects and components.

During development work it is not unlikely that you can burn your programmer or development board. This is normal, we also do development work and we have damaged A LOT of programmers and boards during our daily job so we know how it works. If our board/programmer has worked fine then stopped, please check if you didn't apply over voltage by mistake, or shorted something in your target board where the programmer was connected etc. Sometimes boards might get damaged by ESD shock voltage or if you spill coffee on them during your work when they are powered.

Please note that warranty do not cover problems caused by unproper use, shorts, over-voltages, ESD shock etc.

If the board has warranty label it should be not broken. Broken labels void the warranty, same applies for boards modified by the customer, for instance soldering additional components or removing components - such boards will be not be a subject of our warranty.

If you are positive that the problem is due to manufacturing defect or component you can return the board back to us for inspection.

When we receive the board we will check and if the problem is caused due to our fault and we will repair/replace the faulty hardware free of charge, otherwise we can quote price of the repair.

Note that all shippings back and forth have to be covered by the customer. Before you ship anything back you need to ask for RMA. When you ship back please attach to it your shipping address, phone, e-mail, RMA# and brief description of the problem. All boards should be sent back in antistatic package and well packed to prevent damages during the transport.

Page 21

Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement