dag bb4e48038b Master | 5 lat temu | |
---|---|---|
mod | 5 lat temu | |
LICENSE.txt | 5 lat temu | |
README.md | 5 lat temu | |
ueberschrift.png | 5 lat temu | |
vgem.py | 5 lat temu | |
wiring_Steckplatine.png | 5 lat temu | |
wiring_sceem.png | 5 lat temu |
Using the adafruit MPR121 capacitiv touch sensor and a RaspberryPi to teach some vegetables how to speak.
You need to wire the MPR121 and the LED's as described in the pictures below. For the LED's we use GPIO 17, 22 and 27, but you can change this easily in the python code on the 'switch' module.
First you need to install Raspbian Stretch by following this installation guide.
# sudo raspi-config (5. Interfacing Options)
# sudo apt update && sudo apt dist-upgrade
# sudo apt install python3 python3-pip git python3-gpiozero python3-pygame
# sudo pip3 install adafruit-circuitpython-mpr121
# sudo apt install spyder3
The basic functionality of the MPR121 is described here.
# git clone https://git.alfi.li/2much/vgem.git
# python3 vgem.py
--------------------------------------------------------------------------
This file is part of Verrücktes Gemüse.
Verrücktes Gemüse is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Verrücktes Gemüse is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
--------------------------------------------------------------------------