MQTT Wifi Controlled Light Saber Bow for Violin/Viola
Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.
Zapisane na tym urządzeniu.
MQTT Wifi Controlled Light Saber Bow for Violin/Viola other instruments
- Ocena
- 0 / 5
- Polubienia
- 4
- Pobrania
- 10
- Wydruki
- 0
- Wyświetlenia
- 126
- Oceny
- 0
Aktualizacja u źródła:
Informacje o modelu
- Źródło
- Printables
- Kategoria
- Music
- Licencja
- Creative Commons — Attribution — Noncommercial — Share Alike
I made the Modular Fiddle 4 String V4 with MQTT controllable LED Lights and wanted a matching bow. This fits a WemosD1 Mini and a 500mAHr battery. The battery lasts about 1hr using the Rainbow effect at brightness 128 (1/2 power which is plenty bright). The Wemos has inbuilt Wifi and I wrote some simple MQTT code so each device has a separate address and each can be controlled separately using a phone or laptop. The idea so the whole orchestra can be lit up in a synchronised light show.
Hopefully the pictures show enough how it comes together. I used 2.5mm self tapping screws to hold the switch in place and 3mmx6mm screws and nuts to hold it together. A screenshot of the switch dimensions is attached. These can be purchased from Ali express very cheaply. (Search for "Toggle Switch Single") The battery is a 500mAh 801350 Li Po. Hold the electronics on the bow using a rubber band and cable tie the LED strip to the bow.
I used WS2812 5V IP65 LED strips at 60 LED/m. These come in nice soft epoxy covered material. Don't get IP67 which come in a sleeve and is either too big for a bow or too sharp if you remove from sleeve.
I used FastLED https://fastled.io and got AI to help write the code. I ran Mosquitto MQTT client on my laptop and a dedicated Wifi hotspot that all the devices to subscribe to. I've uploaded my Arduino code. You will have to change the Wifi SSID, password and your laptop IP. Also change the Device ID for each device and change the number of LED's to how many in your strip. About 62cm of LED's fit a standard Violin Bow which is 38LED's if using 60LED's per meter.
To get MQTT running on your laptop if you not sure how to do I would suggest uploading this code to AI (I used Grok) and ask it how to instal and get it working. I used MQTT Panel to change all the effects from my phone. In the code there is an adjustment for brightness.
Commands that can be sent from your laptop/phone. Might look like gibberish to a newbie but just paste it into any AI and it will make short work of what to do.
Start Up the Mosquitto server
mosquitto -c /opt/homebrew/etc/mosquitto/mosquitto.conf -v
Monitor the traffic on MQTT
mosquitto_sub -h 192.168.8.176 -p 1883 -t "orchestra/all" -v
Send commands to each strip from laptop or MQTT Panel on your phone look like this.
mosquitto_pub -h 10.1.1.14 -p 1883 -t "orchestra/all" -m "rainbow" (set all devices to show Rainbow effect)
mosquitto_pub -h 10.1.1.14 -p 1883 -t "orchestra/all" -m "off" (set all devices to off)
mosquitto_pub -h 10.1.1.14 -p 1883 -t "orchestra/1" -m "fire" (Set device ID 1 to Fire)