-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Implementing a keyboard cover detection depends highly on your specific model. Basically any type of switch will work, | ||
that closes the circuit when the cover is closed. For example, you can use a mechanical switch that is placed | ||
underneath the cover and will be closed by the cover. Alternatively you can use a magnetic reed switch (will be used as | ||
example). | ||
|
||
Wire one end of the switch to GPIO PIN 12 on your pi. The other end must be connected to ground. You can share the | ||
ground line used by the RGB strip. | ||
|
||
![coverdetection_pic](../Docs/pics/coverdetection_pic.jpg) | ||
|
||
In this example the reed switch is taped down onto the piano. A small neodymium magnet is mounted behind the cover and | ||
sits directly in front of the reed switch when being closed. One wire goes to the raspberry GPIO PIN 12, the other | ||
shares the ground supply of the RGB strip. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters