BlinkM

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "== BlinkM RGB LED == We are supporting BlinkM RGB LED devices via I2C Bus. == Basic I2C Setup == Edit '''/etc/modprobe.d/raspi-blacklist.conf''' and add a comment out this l...")
 
(Basic I2C Setup)
Line 40: Line 40:
 
  i2cdetect -y 1  
 
  i2cdetect -y 1  
  
 +
== Install BlinkM device ==
 
Install BlinkM Device
 
Install BlinkM Device
 
  apt-get update
 
  apt-get update
Line 59: Line 60:
 
Enable BlinkM device support at bootup
 
Enable BlinkM device support at bootup
 
  systemctl enable agoblinkm.service
 
  systemctl enable agoblinkm.service
 +
 +
== Raspberry PI wiring a BlinkM ==
 +
[[File:Raspberry-pi_BlinkM-RGB-LED_wiring.jpg|frame|How to wire a Raspberry PI with a BlinkM RGB LED|left]]

Revision as of 21:40, 25 February 2013

Contents

BlinkM RGB LED

We are supporting BlinkM RGB LED devices via I2C Bus.

Basic I2C Setup

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

  1. 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/config.ini - 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