You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.3 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Discobert is a multimedial toilet experience device
  2. The Setup is pretty custom. It includes:
  3. * Raspberry Pi
  4. * Relay Board for switching 220V Devices
  5. * Relay #1:
  6. * Light Bulb
  7. * Relay #3:
  8. * DMX Light
  9. * Disco Ball + Motor
  10. * PIR sensor
  11. * Door open/closed Sensor
  12. * IR Receiver
  13. * USB to DMX (Anyma uDMX interface)
  14. * A random DMX Spot
  15. * A random remote
  16. ## Install
  17. Use Debian, install apt dependencies
  18. ```
  19. sudo apt install git samba mpd libttspico-utils python3-pip python3-lirc python3-rpi.gpio
  20. ```
  21. maybe also: `wiringpi espeak mpc`
  22. Clone this repo
  23. ```
  24. cd /home/pi
  25. git clone https://git.notice.at/redplanet/discobert.git
  26. cd discobert
  27. ```
  28. configure mpd
  29. ```
  30. sudo cp mpd.conf /etc/mpd.conf
  31. ```
  32. configure samba share
  33. ```
  34. sudo cp smb.conf /etc/samba/smb.conf
  35. ```
  36. install pip modules
  37. ```
  38. pip3 install -r requirements.txt
  39. ```
  40. add systemd service
  41. ```
  42. sudo cp disco.service /lib/systemd/system/disco.service
  43. sudo systemctl daemon-reload
  44. ```
  45. ### Setting up a random remote
  46. Use `irrecord` to create a lirc Config file and copy the generated file in `/etc/lirc/lircd.conf.d/your-remotes-name.lircd.conf`
  47. You can find and edit the used keycodes: `~/discobert/lircrc`
  48. ### DMX not working?
  49. download udmx-pyusb:
  50. Clone https://github.com/dhocker/udmx-pyusb
  51. ... and add user permissions for udmx device
  52. ```
  53. sudo cp 98-uDMX-usb.rules /etc/udev/rules.d
  54. ```