maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   The Other Half (https://talk.maemo.org/forumdisplay.php?f=59)
-   -   [WIP] Chameleon TOH (https://talk.maemo.org/showthread.php?t=92754)

skvark 2014-04-06 11:31

Re: [WIP] Chameleon TOH
 
Quote:

Originally Posted by kimmoli (Post 1420067)
skvark, just out of curiosity; what you used to interface application to I2C ?

root-powers-daemon and dbus or something more elegant?

Nothing fancy, just kernel i2c-dev headers. Had to test that I get the blinkm's working. More elegant stuff later.

skvark 2014-04-07 20:43

Re: [WIP] Chameleon TOH
 
https://github.com/skvark/ChameleonHalf

Some initial code. I'll add the sensor stuff and more BlinkM methods when I have more time.

skvark 2014-04-09 16:01

Re: [WIP] Chameleon TOH
 
Color reading is now implemented to the sensor driver. I'm not sure if the onboard LED at the Flora sensor board can be turned completely off.

I'm using currently 700 ms integration time because shorter ones don't give reliable results (impacts to resolution and sensitivity). I'll do next some testing and code the automatic color change for the leds using the sensor values.

Edit: Some kind of polling is now too implemented. I'll make a short demo video at some point to show how well (or badly) the sensor performs :D

skvark 2014-04-09 20:13

Re: [WIP] Chameleon TOH
 
https://vimeo.com/91553447

Note that the colors in the video are not the same as in real world. The sensor is polled about every 700 ms and RGB leds fade to the detected color. Additionally the color box in the UI is updated also to the detected color.

Sensor detects well green, blue, yellow and white colors (which were tested in the video too). It has some problems detecting different reds/orange.


All times are GMT. The time now is 13:54.

vBulletin® Version 3.8.8