25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.6 KiB

5 년 전
5 년 전
5 년 전
5 년 전
5 년 전
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Discobert is a multimedial toilet experience device
  2. The Setup is pretty custom. It includes:
  3. * Raspberry Pi 3b+
  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. * some speakers
  17. ![Discobert Work in Progress](project-images/work-in-progress.jpg)
  18. ![Discobert Work in Progress](project-images/final.jpg)
  19. ## Install
  20. Use Debian, install apt dependencies
  21. ```
  22. sudo apt install git samba mpd libttspico-utils python3-pip python3-rpi.gpio nginx lirc mpd
  23. ```
  24. maybe also: `wiringpi espeak mpc`
  25. wiringpi:
  26. http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/
  27. Clone this repo
  28. ```
  29. cd /home/pi
  30. git clone https://git.notice.at/redplanet/discobert.git
  31. cd discobert
  32. ```
  33. configure mpd
  34. ```
  35. sudo cp mpd.conf /etc/mpd.conf
  36. ```
  37. configure samba share
  38. ```
  39. sudo cp smb.conf /etc/samba/smb.conf
  40. ```
  41. install pip modules
  42. ```
  43. pip3 install -r requirements.txt
  44. ```
  45. add systemd service
  46. ```
  47. sudo cp disco.service /lib/systemd/system/disco.service
  48. sudo systemctl daemon-reload
  49. ```
  50. ### Setting up a random remote
  51. Use `irrecord` to create a lirc Config file and copy the generated file in
  52. `/etc/lirc/lircd.conf.d/your-remotes-name.lircd.conf`
  53. You can find and edit the used keycodes: `~/discobert/lircrc`
  54. My remote:
  55. `sudo cp Sony-RM-V33E.lircd.conf /etc/lirc/lircd.conf.d/`
  56. ### DMX not working?
  57. download udmx-pyusb:
  58. Clone https://github.com/dhocker/udmx-pyusb
  59. ... and add user permissions for udmx device
  60. ```
  61. sudo cp 98-uDMX-usb.rules /etc/udev/rules.d
  62. ```