Verrücktes Gemüse BeatBox

dag 2f6453f896 First commit лет назад: 5
mod 2f6453f896 First commit лет назад: 5
README.md 2f6453f896 First commit лет назад: 5
vgem.py 2f6453f896 First commit лет назад: 5
wiring.png 2f6453f896 First commit лет назад: 5
wiring_sceem.png 2f6453f896 First commit лет назад: 5

README.md

vgem

Using the adafruit MPR121 capacitiv touch sensor and a RaspberryPi to teach some vegetables to speek.

Requirements

Hardware

Wiring

You need to wire the MPR121 and the LED's as desciped in the wiring.png and wiring_sceem.png file which you can also see below this text. 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 these 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 GUI)

    # sudo apt install spyder3

Start testing

The basic funktionality of the MPR121 is descriped here.

Download vgem folder (you need to get an account from Tomás C.)

    # git clone https://git.foxhole.li/moetom/vgem.git

Run vgem.py on console or in Spider3

    # python3 vgem.py

Wiring pictures

picture

picture