ARDUINO Tutorial 11 Implementing the IF Statement with Dimmable LED's

8 Просмотры
Размещено
M = “V2b” Here on the chart it’s 0, – V2a Here on the chart it’s 255” and then that's going to be over “vOut2 Here on the chart it’s 0 – vOut1 Here on the chart it’s 1023” All right do You see what I'm doing I'm simplifying the slope of the line using the variables that We are used too that way You understand better and it’s not just Xs and Ys! Now It is easier to calculate M and so We are then left with M which is (255 over 1023)” and multiply this by vOut)). This is now compatible with Our Arduino. We just have to change a few things, in the code and the circuit need adjusting starting to comment those lines here as they are not necessary, do not forget to update the 5 volt to 255 and You can remove or comments those lines too that’s up to You. But the main reason it’s not working it is because the pin is not a PDM one. so let’s adjust this and well send this to the Arduino and Voila!
With this out of the way Lets’ add 2 more LEDs that will lit up depending of the voltage.
I paste the sketch like So. Send it to the Arduino and We are done.

Link to Sites:

If Statement (Conditional Statement): https://www.arduino.cc/en/Tutorial/BuiltInExamples/ifStatementConditional
if - Arduino Reference: https://www.arduino.cc/reference/en/language/structure/control-structure/if/
10kTech: https://sites.google.com/view/10ktech


You guys can help me out over at PATREON: and that will keep this content coming:
https://www.patreon.com/10ktech
Link to My Most Watched Video:

Recover You r lost data With DISK DRILL even with the free Version
https://youtu.be/EzVleV9qwGs

I find the Best Calculator Ever & it is free.
https://youtu.be/aR0Sa3EsOUM

How to Change from Microsoft Edge to Google Search Instead (UPDATED)
https://youtu.be/3HDUgyUqa8k

Link to the other CYBERPUNCK 2077 Video:
https://youtu.be/kQyux55uZo4


Feel Free to leave a comment, Please, or a remark maybe even a request or question in the comment section bellow may You have any, and, If You LIKE this video, please do HIT the SUSCRIBE Button and, OR, the bell Icon.

????Your 1 Subscription to My Channel Can Make My Day ????
• PLEASE• HELP ME GET TO 1000 SUBSCRIBERS:

THANKS a MILLION for YouR time
Категория
Ардуино
Комментариев нет.