HOME    PROJECTS    LIBRARIES    RESOURCES    LINKS    CONTACT  
Select category:
Arduino
  DS1302
  DS1307
  DS3231
  DS3234
  KeyPad
  LCD5110_Basic
  LCD5110_Graph
  LCD5110_SPIflash
  LEDmatrix7219
  MCP4725
  MGLCD
  OLED_I2C
  OLED_SPIflash
  OLED_StatusIcons
  relay8
  SPIflash
  SPIflash_Audio
  tinyFAT
  URTouch
  UTFT
  UTFT_Buttons
  UTFT_Geometry
  UTFT_SPIflash
  UTFT_tinyFAT
  WiiChuck
chipKit
ESP8266/32
TI LaunchPad

IF YOU LIKE,
and use any of my projects or libraries, and would like to encourage further development you can donate through PayPal here:

Rather donate hardware directly? Then click here.




Library: relay8

This library is just a quick and easy way to control relay boards. The library supports from 1 to 8 relays.

Relay boardRelay boardRelay board

This library supports relays board with both active high and active low inputs. To set the correct parameter for your relay board you will have to edit relay8.h.

Set line 59 to #define OUTPUT_ON_LEVEL HIGH if your board requires a HIGH signal to switch a relay on. If your board requires a LOW signal to switch a relay on you can edit line 32 to be #define OUTPUT_ON_LEVEL LOW.

Download:

relay8.zip
(Filesize is 335.46 KiB. Downloaded 10746 times)


A demo showcasing most of the functions is included in the download.
This is a multi-platform library that will work with several different development board types.

Changes:
v1.04 Feb 2013initial release

Compatibility:

WorkingArduino Duemilanove w/ATmega328
WorkingArduino Uno
WorkingArduino Leonardo
WorkingArduino Mega
WorkingArduino Mega2560
WorkingArduino Due
Not tested, UnsupportedBobuino
Not tested, UnsupportedTeensy 3.1
Working = Working   Not working: Not working
Not tested, Unsupported = Not tested, Unsupported

Manual:

CLICK HERE TO VIEW
The manual is included in the download

License:

By downloading the library you accept the following license:
Creative Commons BY-NC-SA Logo
Creative Commons (CC BY-NC-SA 3.0)
View SummaryView Legal