-
Notifications
You must be signed in to change notification settings - Fork 14
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
feature request: gpio pwm output #1
Comments
Thanks for the ideas! I have split this issue (see #2 for Google Calendar integration). My first priority is enhanced scheduler. Most likely this will be implemented as ability to run command lines upon each alarm (I need to think how to make configuration simple and elastic). |
Hello Davis, Thank you for the reply. A friend of mine and I might get together next weekend and have a look at the code ourselves. I am not experienced with python but he is so we might be able to contribute a little. Kind regards, Hendrik Schokker
|
Great! I believe the best option would be creating a new application/script that does the GPIO stuff (e.g. by using https://pypi.python.org/pypi/RPi.GPIO). That new application/script could be run from Mopidy-AlarmClock as a command line app (it would be great if you could clone this repo and track your changes in GitHub). Regarding GPIO PWM tool as a separate application/script/project: I think implementing too specific GPIO logic in AlarmClock would be unpractical (instead allowing AlarmClock to run configurable command lines before/during alarm would be very practical and extensible). Br, |
using a guide from Adafruit: https://learn.adafruit.com/neopixels-on-raspberry-pi?view=all#software I've taken their code and made a web page to input alarm times and also control a Bluetooth lightbulb. I agree with Davis that if we can congfigure the alarm clock to run a configurable command (ex: sudo python /home/pi/path/to/script.py) then this would allow for more configuration .... like running a LED strip and then turning on my bluetooth controlled lightbulb when the alarm goes off! |
We (@FSX and I) started working on a script for controlling GPIO as described by Davis. Unfortunately we spend most of the day trying to get |
@WarcoW I don't know what exactly breaks rpi.gpio on Pi MusicBox (IMHO unfortunately Pi MusicBox has tons of technical/quality issues, however it's much better from the technical point of view (and more mature) than RuneAudio). I think its worth reporting Pi MusicBox issues on their GitHub!
|
Hi @DavisNT, Thoughts? |
@DavisNT what is the progress on implementing the pwm and google calender function? |
Hello,
Not really an issue, more of a request for addition...
First request moved to Issue #2 Google Calendar integration
Would it be difficult to also include setting a GPIO pin on the raspberry pi to rise a PWM signal slowly over half an hour. Ideally I would like to let 1 PWM pin rise from 0 to 100% (yellow "sun"light) over 15 minutes starting half an hour before the alarm, then have a second PWM pin rise from 0 to 100% (bright white light) over 15 minutes. After that it is really time to wake up so then the alarm (music) can start. If it is also possible to set an extra pin to low/high standard and flipped while pwm output is given than it is possible to use a relay to shut off AC power to the lights while they are not used. (saving power)
If all this could be included it would make for a fantastic wakeup light. :)
The text was updated successfully, but these errors were encountered: