-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brightness sensor #139
Comments
Of course please share :-) /Kim |
@SvenFackert take a look here: I have a brightness sensor until day one of my clock. |
Ah.. I see. There has already been a list of requirements for an integration of a brightness sensor: #27 (comment) My solution doesn't meet those requirements yet. Also it is somehow dependent on the type of sensor I am using. I suggest that we maybe create an independent auto_brightness interface, which is responsible for providing an API to enable/disable automatic brightness (as well as settings in the config file). Furthermore we could move the sensor specific readings/code to separate files which should all provide an interface for reading the current lumen value or sth. like that? |
Sounds good, @SvenFackert. Let's detail on that a little further. Maybe start over with sharing your implementation (e.g. via a fork + branch in your own repo).. Best, |
Hi guys! @bk1285 your WordClock software still is amazing, I am loving it. My own clock is running without a flaw since approx. 1 year. Help would be greatly appreciated! Sensor is this one: https://cmosgr.wordpress.com/2013/09/02/bh1750fvi-gy-302-light-sensor-module/ Cheers. |
That should no be different to my implementation. But you need a python library for that. Your example is C++. For changes in wordclock software take a look here:
Step by Step:
|
To answer your question regarding my python knowledge: "I am a small beginner" and even that seems exaggerated.
I assume that by "Make the import of your Sensor Library (Line 117)" you mean to import the "bh1750.py" script from the first link? Because I do not understand completely how to achieve this...simply by replacing Unfortunately I do not understand the last two points regarding line 144 and 156-159. |
Okay without Python knowledge this could be hard. A second approach you can try is just to replace the I2C Values. For Your Sensor (i think):
For more details and perhaps comparison between the python scripts take a look here: https://github.com/adafruit/Adafruit_Python_GPIO/blob/master/Adafruit_GPIO/I2C.py Feel free to ask further questions if you need information |
Hey folks,
I've been building a few of these WordClocks now and am very grateful for the really awesome work that everyone contributed here. Especially the documentation on how to build the clock is very exhaustive and easy to understand (even for ppl without any experience in hardware).
What I was missing up to now was the support for a brightness sensor that automatically dims the clock according to the environmental brightness, so I've been building one by myself from just a photoresistor, capacitor and a few lines of code that counts the time until the capacitor is charged and then adjusts the brightness of the word clock.
I was wondering if you guys are interested in 1) a documentation on how to build the sensor and 2) the code for it.
Kind regards,
Sven
The text was updated successfully, but these errors were encountered: