Play the Room - Sensorycc/YUXI-Mixed-Reality-Hardware-Toolkit GitHub Wiki
Students create cap touch and cardboard switches to sense guest interactions in the room and turn them into music.
Each student gets and RPI with a cap touch hat that is already setup to publish on Spacebrew. On Spacebrew students connect their inputs to various outputs. (open question what are the outputs, what is the sound system josh has used.)
Professors would need to set up the RPI with an OS, a connection to the internet, Spacebrew, and Python code for download
#Install Noobs Adaruit has a good turorial of how to set up Noobs as your OS on the Raspberry Pi Set up noobs Once you download and copy Noobs onto an SD you need to run it once with a keyboard an mouse attached for it to configure and download the rest of the OS #connect to RPI with serial adapter follow this tutorial on adafruit if you are using a mac i recommend that you go ahead and install both drivers at the same time since it is not easy to tell which one you need. Also if you are on a mac NOTE: Mac OS High Sierra 10.13 introduces a new feature that requires user approval before loading new third-party kernel extensions. Go to System Preferences - Security & Privacy and click Allow. connect via pins. #configure or internet and ssh configure wifi via sudo raspi-config test wifi with ping 8.8.8.8 this will open a text menu that will allow you to configure a number of settings configure to allow ssh via sudo raspi-config ifconfig to get the ip address of your RPI on the local network #ssh to your pi ssh into pi via ssh [email protected]
Clone YUXI Repo onto PI pick a spacebrew server-- default will be run Play the room.
add Py the Room to Yuxi repo add note about installing both drivers for USB serial cable on OSX They do not interfere and no clear way to know which you need.
https://developer.apple.com/library/content/technotes/tn2459/_index.html
Raspberry Pi 3 Model B+ with power cable Micro SD Card Capacitive Touch HAT for Raspberry Pi https://www.adafruit.com/product/2340 USB Serial Cable or Raspberry Pi. https://www.adafruit.com/product/954 Aligator Clips
working on the RPI On a mac and want a magical new workflow?
Login to your raspberry pi and run these lines…
sudo apt-get update
sudo apt-get install netatalk
Use the same password On your mac go to the finder Command-K afp://192.168.1.1 (your IP address goes there) brunchstorm [23 days ago] IP address for the Pi
brunchstorm [23 days ago] Use pi and raspberry to login
##Set Up Wifi
write a wpa_supplicant.conf on in the boot directory of the SD file. RPI will move it to ETC when it runs.
Example described here https://howchoo.com/g/ndy1zte2yjn/how-to-set-up-wifi-on-your-raspberry-pi-without-ethernet
country=US
network={
ssid="<<your ssid >>"
psk="<< your passworkd.."
key_mgmt=WPA-PSK
}
to Do: DONE 1:write Python to take what is touched and published it.. DONE A. editing adafruti example SKIPED B. doing it the dumb way
DONE 2. Add example to YUXI repo
DONE 3. Make it autoboot via SD card. find tutorial https://www.dexterindustries.com/howto/auto-run-python-programs-on-the-raspberry-pi/ https://raspberrypi.stackexchange.com/questions/28199/raspberry-pi-starting-programs-automatically-on-startup https://www.stuffaboutcode.com/2012/06/raspberry-pi-run-program-at-start-up.html
this took a long time. in the end I had to switch to this solution this tutorial.. https://www.raspberrypi-spy.co.uk/2015/10/how-to-autorun-a-python-script-on-boot-using-systemd/
with this file as the .service script
################ [Unit] Description=My Script Service After=multi-user.target
[Service] User=pi Password=raspberry Type=idle ExecStart=/usr/bin/python /home/pi/YUXI-Mixed-Reality-Hardware-Toolkit/Python/YUXI_PlayTheRoom.py
[Install] WantedBy=multi-user.target ##############
- test copying versions of SD cards
this was not easy either but worked with the command line.. it took about 3 hours to write the file to the SD card.. if we had to do it in bulk we should get a SD duplicator from Amazon.
- open issues around SSH etc..we coudl do it with Mac Adresses if we can see the router. this i did figure out and I wrote it as part of the touch hat start up script. it writes the mac address and the local ip address in spacebrew admin panel so we coudl plug in and know which are witch since the mac adress does not change and then students would know what IP to use to login
//open question.. does spacebrew tell you the local ip address? what if I set up a local server does it?
6: Design hathathat.. this i am not sure if it is going to work as I want it.. i think grounding the cap sensor does not do what i think it does.. I need to test this more. a. get existing cap hat fritzing or eagle. b. edit it.. b1. 2 standoff b2. pins for 5,3 and ground b3. aligator clip pin.. see how many fit c. scope out pcb suppliers d. order parts.. maybe 20 rather fast
so i tested driving the cap sensors to ground.. and it does not work that reliably.. so i think i should consider repllicating the closing a circuit approach of the makey makey.. as a small board on top....
also i would like to add an LED.
steps.. protoype it. then move to eagle?
https://easyeda.com/GerryChen/Makey_Makey_Standard_Kit_Open_hardware-PN5nhyQ8q
https://www.instructables.com/id/Creating-Your-Own-DJ-Soundboard-With-the-BeagleBon/
megOHM..
20Mohm
https://www.hackster.io/hardikrathod/push-button-with-raspberry-pi-6b6928