BlinkM

From ago control wiki
Jump to: navigation, search

Contents

BlinkM RGB LED

We are supporting BlinkM RGB LED devices via I2C Bus. You can find more information about BlinkM LEDs here: http://thingm.com/products/blinkm

Manual I2C Setup on Raspberry Pi

Edit /etc/modprobe.d/raspi-blacklist.conf and add a comment out this line:

#blacklist i2c-bcm2708

Try to load the modules

modprobe i2c-bcm2708
modprobe i2c_dev

Check if the modules are loaded:

lsmod | grep i2c
i2c_dev                 5620  22 
i2c_bcm2708             3759  0 

Keep the modules at start up - add this lines to /etc/modules

i2c-bcm2708
i2c-dev

Check if you can see your device

i2cdetect -y 0

Output should be something like this:

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- 09 -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                                              

For Raspberry PI B Model with 512MB it's this command - you need EXTRA settings in config.ini too

i2cdetect -y 1

Install BlinkM device

Install BlinkM Device

apt-get update
apt-get install agocontrol-blinkm

Add agocontrol to group i2c (if not done by post install script):

adduser agocontrol i2c

Edit /etc/opt/agocontrol/confd/blinkm.conf - optional for non PI B 512MB

[blinkm]
#default
bus=/dev/i2c-0
# RP B 512MB
#bus=/dev/i2c-1

Start the service for BlinkM

systemctl start agoblinkm.service

Enable BlinkM device support at bootup

systemctl enable agoblinkm.service

Raspberry PI wiring a BlinkM

(thumbnail)
How to wire a Raspberry PI with a BlinkM RGB LED
Personal tools