When I got my new bbgw I ran an internet search to find how to use the 
relay and did not find an easy answer, so here goes:
1. The Grove - SPDT Relay(30A) - uses +5V , so you need to solder the third 
pin of that groove connector. Disconnect it from the board, and connect it 
to the input 5v power.
The groove connector pinout are:

J4 
1- I2C2_SCL - P9_19 
2- I2C2_SDA - P9_20 
3- VDD 3.3 
4- GND 

J5 
1- UART2_RXD - P9_22 
2- UART2_TXD - P9_21 
3- VDD 3.3 
4- GND

The pinout of the relay is:
1- Signal
2- not connected
3- +5V
4- GND

If you connect the relay to J4 use this python code, to toggle it on and off

import Adafruit_BBIO.GPIO as GPIO
import time
GPIO.setup("P9_19", GPIO.OUT)
while True:
    GPIO.output("P9_19", GPIO.HIGH)
    time.sleep(0.5)
    GPIO.output("P9_19", GPIO.LOW)
    time.sleep(0.5)



-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/e3107928-9666-4382-9a71-8efac916376b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to