BlinkM

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(Basic I2C Setup)
(Install BlinkM device)
 
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
We are supporting BlinkM RGB LED devices via I2C Bus. You can find more information about BlinkM LEDs here: [http://thingm.com/products/blinkm http://thingm.com/products/blinkm]
 
We are supporting BlinkM RGB LED devices via I2C Bus. You can find more information about BlinkM LEDs here: [http://thingm.com/products/blinkm http://thingm.com/products/blinkm]
  
== Basic I2C Setup ==
+
== Manual I2C Setup on Raspberry Pi ==
  
 
Edit '''/etc/modprobe.d/raspi-blacklist.conf''' and add a comment out this line:
 
Edit '''/etc/modprobe.d/raspi-blacklist.conf''' and add a comment out this line:
Line 48: Line 48:
 
  adduser agocontrol i2c
 
  adduser agocontrol i2c
  
Edit '''/etc/opt/agocontrol/config.ini - optional for non PI B 512MB'''
+
Edit '''/etc/opt/agocontrol/confd/blinkm.conf - optional for non PI B 512MB'''
 
  [blinkm]
 
  [blinkm]
 
  #default
 
  #default

Latest revision as of 15:38, 29 October 2013

Contents

[edit] 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

[edit] 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

[edit] 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

[edit] Raspberry PI wiring a BlinkM

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