Lesson 7 LED Buzzer RGB - Water-Monitor/IoT-Portfolio-FJS GitHub Wiki

Reflection Stijn

I created a LED on a PWM and made the brightness controllable. Later I replaced the LED with a buzzer which next to the loudness (brightness previously) also a set has for frequency.

I started with the code of the LED, but it did not work. Appearently you have to use the code of the PWM and then it works, the teacher directed me in that direction after a long headache. When I was searching for the buzzer, I was confused. I found something which I thought was a buzzer but it had 3 pins instead of 2, at the end I found out it was the only buzzer I had so I tried to make it work. Unexpectedly I could just only make use of two of the 3 pins to make it work.

I made a rgb light that is controllable by brightness and with a colorpicker.

I messed for a long time with the rgb, because I did not know what I did wrong. The teacher runned another shell with a mqtt_listener and based on that I found out that I was talking to the wrong topic.

setup setup