Hi - I am completing a college project using blynk app with etherent shield to control lighting (On/OFF) and also lighting intensity through PWM. I am also using the app to give a live feed of temp.
Anyway, I have added the code for the LED on/off and and for temp DHT22 sensor reading but my project also works with the slider widget (PWM) for light intensity even tough i dont have the code written for this?
Does the widget control the arduino without code needed ?
Please help explain i am struggling to understand why this is…
I think it will depend on how your widget is set up, and your code. Could you please give a little more information on both. Are you using virtual pins?
Okay - so when I run my program (which does not include any cope for The slider widget/PWM) I am able to slide the LED brightness up and down on the app and it adjusts the brightness of the LED… but I have no code written to support this? So I am looking for an explanation to say why this works ? Does the Blynk app allow you control your sensors without actually adding code ? And if yes , how
BLYNK allows for direct pin manipulation as long as there is an established connection with the BLYNK app. For direct pin manipulation (including PWM control) no code is needed other than the basic stuff to establish the connection to BLYNK.
Okay this makes sense … if I was to put in code for PWM control would you know what code would entail ?
Guess that depends on what you are trying to accomplish. If it is PWM control of an LED, seems like you already got it. If you are looking to utilize some more advanced stuff than I suggest you look at the DOCS, and some of the examples in the Sketch Builder.
Virtual Pins are almost a must, and a very powerful tool. I suggest you familiarize yourself with them.