/Romance-machine

Code and build instructions for https://www.reddit.com/r/raspberry_pi/comments/cowqrg/romance_machine_to_be_pressed_instead_of_saying/

Primary LanguagePython

Romance machine

Code and build instructions for Romance machine

Install Raspbian on a Raspberry Pi

Buy a button and jumper wires

Connect two wires to pins 5 and 23, and to your button

Open console and enter

pip install pygame

Download the script and put it in your home folder, /home/pi/

You'll need to change the list of songs to songs that you have on your Pi.

Open console and enter

sudo nano /etc/rc.local

In /etc/rc.local you enter

python /home/pi/romance.py

before exit 0, that will make the script run on startup

Restart your Pi and press the button.