Difference between revisions of "DIO"

From BitWizard Wiki
Jump to navigation Jump to search
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:SPI_DIO.jpg|thumb|300px|alt=The SPI_DIO board|The SPI_DIO board]]
[[File:SPI_DIO.jpg|thumb|300px|alt=The DIO board|The DIO board (depicted: the SPI version)]]


This is the documentation page for the SPI_DIO board.
This is the documentation page for the SPI_DIO and I2C_DIO boards. That you can buy in the [http://www.bitwizard.nl/shop/expansion-boards/dio BitWizard shop].


== Overview ==
== Overview ==


This board enables you to read and write upto 7 digital IO lines.
This board enables you to read and write up to 7 digital IO lines. And although the "d" in dio stands for "digital", it now also allows you to configure and use some of the IO lines as [http://www.bitwizard.nl/wiki/index.php/Analog_inputs analog inputs!]


== Assembly instructions ==
== Assembly instructions ==
Line 24: Line 24:


== Pinout ==
== Pinout ==

For the SPI connector see: [[SPI_connector_pinout]].
For the I2C connector see: [[I2C_connector_pinout]].


{| border=1
{| border=1
! pin !! function
! pin !! function !! analog?
|-
|-
| 1 || GND
| 1 || GND
|-
|-
| 2 || VCC
| 2 || VCC
|-
|-
| 3 || IO0
| 3 || IO0 || yes
|-
|-
| 4 || IO1
| 4 || IO1 || yes
|-
|-
| 5 || IO2
| 5 || IO2 || no
|-
|-
| 6 || IO3
| 6 || IO3 || yes
|-
|-
| 7 || d.n.c.
| 7 || d.n.c.
|-
|-
| 8 || IO4
| 8 || IO4 ||yes
|-
|-
| 9 || IO5
| 9 || IO5 ||no
|-
|-
| 10 || IO6
| 10 || IO6 ||yes
|}
|}

d.n.c. means do not connect.


=== LEDs ===
=== LEDs ===
Line 53: Line 58:
The only LED is a power indicator.
The only LED is a power indicator.


== jumper settings ==
== Jumper settings ==


See [[solder jumpers]] on how to change the solder jumper.
See [[solder jumpers]] on how to change the solder jumper.
Line 60: Line 65:


== Protocol ==
== Protocol ==
For the intro to the SPI and I2C protocosl read: [[SPI versus I2C protocols]]
For the intro to the SPI and I2C protocols read: [[SPI versus I2C protocols]]


The board specific protocol can be found here: [[DIO_protocol]]
The board specific protocol can be found here: [[DIO_protocol]]
Line 66: Line 71:
You should also read the [[General_SPI_protocol]] notes.
You should also read the [[General_SPI_protocol]] notes.
<br>
<br>
For arduino, a sample PDE is available, called ardemo_lcd.pde, also at [http://www.bitwizard.nl/software|the BitWizard software download directory] .<br>
For arduino, a sample PDE is available, called ardemo_lcd.pde, also at [http://www.bitwizard.nl/software the BitWizard software download directory] .<br>
<br>
<br>
This is a demo to send things using SPI to the lcd board. The SPI routines there are applicable for the DIO, 3FETS and 7FETS boards as well.<br>
This is a demo to send things using SPI to the lcd board. The SPI routines there are applicable for the DIO, 3FETS and 7FETS boards as well.<br>

Latest revision as of 16:05, 9 December 2015

The DIO board
The DIO board (depicted: the SPI version)

This is the documentation page for the SPI_DIO and I2C_DIO boards. That you can buy in the BitWizard shop.

Overview

This board enables you to read and write up to 7 digital IO lines. And although the "d" in dio stands for "digital", it now also allows you to configure and use some of the IO lines as analog inputs!

Assembly instructions

None: the board comes fully assembled.

External resources

Datasheets

Additional software

Related projects

Pinout

For the SPI connector see: SPI_connector_pinout. For the I2C connector see: I2C_connector_pinout.

pin function analog?
1 GND
2 VCC
3 IO0 yes
4 IO1 yes
5 IO2 no
6 IO3 yes
7 d.n.c.
8 IO4 yes
9 IO5 no
10 IO6 yes

d.n.c. means do not connect.

LEDs

The only LED is a power indicator.

Jumper settings

See solder jumpers on how to change the solder jumper.

By changing the solder jumper SJ1, you can make the connector SPI1 (nearest the board edge) into an ICSP programming connector for the attiny44 on the board.

Protocol

For the intro to the SPI and I2C protocols read: SPI versus I2C protocols

The board specific protocol can be found here: DIO_protocol

You should also read the General_SPI_protocol notes.
For arduino, a sample PDE is available, called ardemo_lcd.pde, also at the BitWizard software download directory .

This is a demo to send things using SPI to the lcd board. The SPI routines there are applicable for the DIO, 3FETS and 7FETS boards as well.

The software

Default operation

Future hardware enhancements

Future software enhancements

Changelog

1.0

  • Initial public release