This program uses RaspberryPi sound/noise sensor (peeks like claps or snaps) to ON/OFF Phillips Hue lights (connected to Hue Bridge)
- RaspberryPi (following project was performed with use of RaspberryPi Zero WH)
- Sensors:
- Sound/Noise sensor (cheapest 3 pin 5V) (example 'How to set sound/noise sensor')
- Hue Bridge and light
If your sensor is connected and RaspberryPi is set:
-
In RaspberyPi terminal type:
- pip3 install Adafruit_DHT
- pip3 install phue
-
In hand_clap_on_off.py set value of:
- pin - pin which you used to connect sensor to Raspberry Pi
- BRIDGE_IP - your heu bridge ip
- Run hand_clap_on_off.py
- Clap your hands to turn ON/OFF lights
- Phillips hue light is controlled with use of light's name. In order to change that variable go to hue_control.py.
- You may change sensitivity of the sensor using its potentiometer (hardware)