Discuss what the LED can do
Thread Rating:
[SOLVED] LED Function
|
01-14-2017, 12:19 AM
According to my opinion, it would be nice to change the color of the led according to the air quality (green = ok, orange = slighty bad, red = bad), more or less like the Original V1 air quality monitor.
01-14-2017, 12:02 PM
Got same idea as erwin describe.
But on my device the led is not very shiny, i must have the nose on sensor to see it .
01-14-2017, 02:11 PM
there is an additional light sensor on the device, that i haven't yet activated, and my idea was - once i implement it - the led would shine as much as it needs, depending on the ambient light.. but i haven't yet tested if this works and how much light the boxes let through.
currently by default it is on the dimmest setting
02-19-2017, 05:05 AM
i finally managed to fix this
some details are here http://forum.vair-monitor.com/showthread.php?tid=63
02-20-2017, 01:53 PM
Got the light sensor in my CO₂ monitor working. Note, though, that the placeholder for it is “%LDR%” (as listed when you scan sensors), not “%LUX%” as listed on the placeholders page:
https://github.com/vlast3k/vESPrino/wiki/Placeholders Also amusing myself by logging garbage like %RSSI% (received WiFi signal strength, I assume). Could be a doors-open sensor?
02-21-2017, 06:20 PM
yeah.. config tool is laggin a bit with all the features
i need to implement something so that the config tool knows what placeholders are there available and display accoridngly the problem is that the code is in HTML/JS, which i mostly write via stackoverflow so i tend to keep it to a minimum
02-26-2017, 05:36 PM
I configured the LED function to "CO2". So I assume he LED changes from green to yellow to red according to CO² values. To see the current value to color mapping I pressed the "Sweep Color Ranges" and got this output:
Code: [rgbled_test Also I noticed that after some time the LED gets completely turned off. Is this the expected behavior? If yes, is it possible to keep the LED to show permanently the CO² status? I have entered "help" into the command prompt and got a list of all comands (like "ledcolor" and "ledbgr"). Is there somewhere documentation about the command parameters and especially how to send them on my own (for example by HTTP/Websocket)?
02-27-2017, 04:28 AM
well this is all stil la bit experimental
for the sweep just watch how the led changes and then what numbers are displayed, this was the idea though with the communication over websockets it is not working as there are some caches in general it switches between green, yellow, red, lila and range is 400-3500 so roughly 400 is green 1500 yellow 2500 is red 3500 is lila ther is no documentation yet but what you can do for the led: ledcolor seq([brg]color)+ where brg is 50-99 - how strong should be the light - 99 is dimmest 1 is auto if it is missing - the previously set one is used color is a letter like this case 'r': return Cred; case 'v': return Cviolet; case 'b': return Cmblue; case 'u': return Cgreen2; case 'g': return Cgreen; case 'y': return Cyellow; case 'w': return Cwhite; case 'l': return Clila; case 'c': return Ccyan; case 'm': return Cmblue; default: return Cblack; so for example ledcolor seq1m will make autobrightness blue color ledcolor seq1rbrbrn will flash red blue few times, each letter is 333 ms at the end it will kill the light if you put ledcolor seqbd will flash blue for 333 ms and then revert to the olD color and once you start the webserver (from vESPrino tab) you can send the command to it simply by calling <host>/?cmd=ledcolor seqr for example also you can send commands over mqtt
03-07-2017, 08:43 PM
Well, I guess I am starting to get a bit annoying, sorry for that
The LED is the last topic on my list, I promise - The LED is only active for some minutes and then it turns off again. Then after some time it turns on again. Is this intended? Would it be possible to have it constantly on? - Is it possible to adjust the brightness the LED is using when it is indicating CO² values? I guess it is using auto-brightness but in normal daylight it is still not using full brightness and it should be brighter then in my opinion - it would be awesome if it would be possible to configure the thresholds the LED uses to switch colors when indicating CO² values. For example going to yellow at 1400 ppm is a bit late maybe. I used two other CO² sensors before and they go to yellow already at 900-1000 ppm. Thanks alot! |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)