您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

5 年前
5 年前
5 年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. ## Install
  18. Use Debian, install apt dependencies
  19. ```
  20. sudo apt install git samba mpd libttspico-utils python3-pip python3-lirc python3-rpi.gpio nginx
  21. ```
  22. maybe also: `wiringpi espeak mpc`
  23. Clone this repo
  24. ```
  25. cd /home/pi
  26. git clone https://git.notice.at/redplanet/discobert.git
  27. cd discobert
  28. ```
  29. configure mpd
  30. ```
  31. sudo cp mpd.conf /etc/mpd.conf
  32. ```
  33. configure samba share
  34. ```
  35. sudo cp smb.conf /etc/samba/smb.conf
  36. ```
  37. install pip modules
  38. ```
  39. pip3 install -r requirements.txt
  40. ```
  41. add systemd service
  42. ```
  43. sudo cp disco.service /lib/systemd/system/disco.service
  44. sudo systemctl daemon-reload
  45. ```
  46. ### Setting up a random remote
  47. Use `irrecord` to create a lirc Config file and copy the generated file in `/etc/lirc/lircd.conf.d/your-remotes-name.lircd.conf`
  48. You can find and edit the used keycodes: `~/discobert/lircrc`
  49. ### DMX not working?
  50. download udmx-pyusb:
  51. Clone https://github.com/dhocker/udmx-pyusb
  52. ... and add user permissions for udmx device
  53. ```
  54. sudo cp 98-uDMX-usb.rules /etc/udev/rules.d
  55. ```