Verrücktes Gemüse BeatBox

dag 6dbf34c449 Master il y a 5 ans
mod bb4e48038b Master il y a 5 ans
LICENSE.txt bb4e48038b Master il y a 5 ans
README.md 6dbf34c449 Master il y a 5 ans
ueberschrift.png bb4e48038b Master il y a 5 ans
vgem.py bb4e48038b Master il y a 5 ans
wiring_Steckplatine.png bb4e48038b Master il y a 5 ans
wiring_sceem.png bb4e48038b Master il y a 5 ans

README.md

picture Using the adafruit MPR121 capacitiv touch sensor and a RaspberryPi to teach some vegetables how to speak.

Requirements

Hardware

  • RaspberryPi
  • adafruit MPR121 capacitiv touch sensor
  • bredboard
  • jumperwire
  • 330Ω resistors

Wiring

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.

Installation

First you need to install Raspbian Stretch by following this installation guide.

Configure the RaspberryPi

Activate i2c, ssh and vnc

    # sudo raspi-config   (5. Interfacing Options)

Install software and dependencies

Upgrade packages

    # sudo apt update && sudo apt dist-upgrade

Install python3 environment, git and library for gpiozero and pygame

    # sudo apt install python3 python3-pip git python3-gpiozero python3-pygame

Install MPR121 Library

    # sudo pip3 install adafruit-circuitpython-mpr121

Install Spyder3 (if you like to develop directly on the RaspberryPi's desktop)

    # sudo apt install spyder3

Start testing

The basic functionality of the MPR121 is described here.

Clone vgem folder

    # git clone https://git.alfi.li/2much/vgem.git

Run vgem.py on console or in Spider3

    # python3 vgem.py

Wiring pictures

picture

picture


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/.