Difference between revisions of "Relay"

From BitWizard WIKI
Jump to: navigation, search
Line 1: Line 1:
 
[[File:SPI_relay.jpg|thumb|300px|alt=The SPI_relay board|The SPI_relay board]]
 
[[File:SPI_relay.jpg|thumb|300px|alt=The SPI_relay board|The SPI_relay board]]
  
This is the documentation page for the SPI_relay board.  
+
This is the documentation page for the SPI_relay and I2C_relay boards.  
  
 
== Overview ==
 
== Overview ==
  
 +
This board enables you to drive two relays. 
  
 
== Assembly instructions ==
 
== Assembly instructions ==
  
 
+
None: the board comes fully assembled.
=== Possible Configurations ===
 
 
 
  
 
== External resources ==
 
== External resources ==
Line 28: Line 27:
  
 
For the SPI connector see: [[SPI_connector_pinout]].  
 
For the SPI connector see: [[SPI_connector_pinout]].  
 +
For the I2C connector see: [[I2C_connector_pinout]].
  
 +
{| border=1
 +
! pin !! function
 +
|-
 +
| 1 || GND
 +
|-
 +
| 2 || VCC
 +
|-
 +
| 3 || IO0
 +
|-
 +
| 4 || IO1
 +
|-
 +
| 5 || IO2
 +
|-
 +
| 6 || IO3
 +
|-
 +
| 7 || d.n.c.
 +
|-
 +
| 8 || IO4
 +
|-
 +
| 9 || IO5
 +
|-
 +
| 10 || IO6
 +
|}
  
 
=== LEDs ===
 
=== LEDs ===

Revision as of 17:03, 11 May 2012

The SPI_relay board
The SPI_relay board

This is the documentation page for the SPI_relay and I2C_relay boards.

Overview

This board enables you to drive two relays.

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
1 GND
2 VCC
3 IO0
4 IO1
5 IO2
6 IO3
7 d.n.c.
8 IO4
9 IO5
10 IO6

LEDs

Jumper settings

Protocol

To make the relay PCB do things, you need to send things over the SPI bus to the PCB.

The general overview of the protocol is here.

The specific commands for the relay PCB are explained on the page about the spi_dio board, as the two boards share the same protocol: spi_dio_protocol .

For arduino, a sample PDE is available, called ardemo_lcd.pde, also at 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 and relay boards as well.

The software

Default operation

Future hardware enhancements

Future software enhancements

Changelog

1.0

  • Initial public release