Hello Blynk Users.
I know many hate to actually READ … but please at least read through this initial post before commenting… Thank you
Index to date:
-
2 - Using zeRGBa and Slider Widgets to control virtual and physical RGB LED
-
3 - Dirt simple Zero Centered Negative/Positive data display
-
4 - Slow & Variable Servo Sweep Without ‘delay()’ (Yay Timers!)
-
6 - Matrix of LARGE Randomly Flashing & Coloured Virtual RGB “Super LEDs” (AKA Buttons)
-
7 - !! NodeJS !! - Pan & Tilt Servo control with Joystick for Raspberry Pi using NodeJS
-
10 - Basic sketch layout The terms, whys and hows explained… a little…
-
14 - ESP32 - Alternate way to control PWM pins for Servo and/or LEDs
-
15 - Dual Blynk Sliders for High Range High Precision values
-
17 - Dual Temperature Sensors running on ESP-01 (DHT and DS18B20)
-
19 - Modified Text Input Widget performance - Now with 100% more line feed
-
26 - Adjustable pulsing LED that fades in and out with Timers
-
28 - Dual LED Fade/Flasher for both Virtual and Physical LEDs
-
29 - Triple Synced Virtual and Physical Buttons using ESP32 hardware Interrupts
Over the last year+ I have been learning to program with Arduino and Blynk. Often I would see a question that I didn’t know the answer for, so I would teach myself how to solve the question, then supply the (hopefully correct) answer… But as time goes on, I have found myself repeating myself repeatedly again and again
So, I am starting an experimental “easy reference” topic for the sole purpose of pasting some commonly asked for, and some not asked for, code examples that I have been and will be developing, compiling from others, and/or straight up plagiarizing .
I hope that if this turns out successfully, some of the examples can make it into the Sketch Builder… before it too gets replaced by a semi-automatic coding bot
In order to keep this topic easy to reference and use, and from becoming a post fest of “help me” and “don’t work” comments, I would prefer if anyone has “how to” questions about a particular piece of code… That they create a NEW topic for themselves, along with reference to this topics relevant posting of the code in question.
As an experiment, I am going to try to keep each post labeled and solely about a particular piece of code or process. And thus constantly edited and updated so as not to require constant back and forth multi-post content about it. We will see how that works Thus this topic will be constantly updated as time goes on… so I hope no one minds if it keeps showing up at the top
Some will be FULL sketches, some will be just code snippets. You may need at least a basic understanding of how things work with Arduino and Blynk in order to use some of these examples.
If and when applicable I will try to include a QR code for each example… I don’t know if I will be able to include Energy requirements (I hate manual math ) but I will try to rough calculate that for the large ones at least.
I will be coding most full sketches using a Wemos D1 Mini, generally preset for Local Server since that is what I use, but easy enough to adjust for Cloud Server.
HEADS UP… You MUST RESET AFTER FLASHING VIA USB even if the device is just sitting on your workbench… otherwise strange things/crashes can happen
I am also using Arduino pin-out numbering (NOT the Silkscreen labeling on the board)… Refer to the following diagram for that.
However, I hope to start including some NodeJS scripts for the RPi that I am working on… Over here
Final NOTE: I may remove some comments if they are deemed too cluttering for this topics ultimate purpose… e.g. “Help mees”, posted code/images of your own (please PM that), etc. Please don’t take it personal… in most cases I will try to PM you if I see an alternate way of your sharing what you feel needs to be shared here