Drive LED eyes by GPIO instead 3.3V and relay #36
Labels
No labels
UserStory
bug
duplicate
enhancement
help wanted
hw task
invalid
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mattzz/halloween#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The weremonkey's eyes are switched via relay which is not a good option for exhibits which do otherwise not need a relay - namely the Eyes-in-the-dark and the demon. Plus, it uses up a relay port which might be used for something else.
It would be good to define another solution for LED lights which is then used for all exhibits that have LED eyes. Which standard GPIO pin should we use?
Note: The GPIO option is not suitable for exhibits that use 12V powered LED lights like the Monster-in-the-box which will always require a relay.
Just add a any available GPIO to config.py, e.g. pins 11, 13, 15, 17, 19. As we are not using SPI, I2C etc. you can use all pins, even pin 8 & 10 of the UART (however, I would not do that because the UART can really be a life saver...).
For Halloween conventions I would suggest to stick to 1-4 for the standard relay and ports 5&6 are eyes etc.
We have to watch current consumption.
From the docs:
and
So I would stick to 5-10mA for two LEDs each. You have to use two ports for two LEDs because the forward voltage of an LED is ~2V.