Uploaded February 2024 | Updated September 2026, 2 weeks ago
In this video, Jim demonstrates a gamepad being used to wirelessly control a simulated drone via two ESP32 development boards.
Jim introduces the setup, consisting of a gamepad paired with one of the boards acting as a controller, which communicates with another board simulating a drone.
Jim shows the process of resetting the boards, pairing the gamepad, and then using various buttons and joysticks on the gamepad to control the simulated drone's actions, such as taking off, moving up, down, left, right, and changing altitude. The LEDs on the simulator board indicate the drone's movements in response to the gamepad inputs.
Jim mentions that this setup will be built as part of a course, and concludes by successfully landing the simulated drone, indicated by the lights turning off.
This is an example lecture from our course "ESP32 by Example".
Dr. Solderitsch brings his extensive expertise as a university professor, systems architect, and a seasoned researcher in cybersecurity and cyber-physical systems to this course.
"ESP32 by Example" is the result of adapting a university-level course on Security in the Internet of Things, originally offered at Villanova University, for a wider online audience. The course is designed to provide learners with a deep understanding of the ESP32 microcontroller, including its Wi-Fi and Bluetooth capabilities, through a structured series of practical examples and projects.
Learn more about this course at techexplorations.com/so/esp32-education-kit-dr-solderitsch
Enjoy!
In this video, Jim demonstrates a gamepad being used to wirelessly control a simulated drone via two ESP32 development boards.
Jim introduces the setup, consisting of a gamepad paired with one of the boards acting as a controller, which communicates with another board simulating a drone.
Jim shows the process of resetting the boards, pairing the gamepad, and then using various buttons and joysticks on the gamepad to control the simulated drone's actions, such as taking off, moving up, down, left, right, and changing altitude. The LEDs on the simulator board indicate the drone's movements in response to the gamepad inputs.
Jim mentions that this setup will be built as part of a course, and concludes by successfully landing the simulated drone, indicated by the lights turning off.
This is an example lecture from our course "ESP32 by Example".
Dr. Solderitsch brings his extensive expertise as a university professor, systems architect, and a seasoned researcher in cybersecurity and cyber-physical systems to this course.
"ESP32 by Example" is the result of adapting a university-level course on Security in the Internet of Things, originally offered at Villanova University, for a wider online audience. The course is designed to provide learners with a deep understanding of the ESP32 microcontroller, including its Wi-Fi and Bluetooth capabilities, through a structured series of practical examples and projects.
Learn more about this course at techexplorations.com/so/esp32-education-kit-dr-solderitsch
Enjoy!
![[150] Arduino Getting Started: Analog output and fading LED
In this video, we delve into using Pulse Width Modulation (PWM) to control the brightness of an external LED connected to Digital Pin 11 of an Arduino Uno. This tutorial builds on our previous LED blink project, using the same circuit setup to demonstrate how PWM can simulate analog output for varied device control, including LEDs and motors. By varying the duty cycle of the PWM signal, we achieve a smooth fade-in and fade-out effect on the LED, showcasing the versatility and practical applications of PWM.
This series is possible thanks to the kind support of Sunfounder, an online store that sells high-quality hardware and kits for Makers. Visit Sunfounder at https://sunfounder.com.
In this series, I use the SunFounder 3 in 1 Ultimate Starter Kit with Original Arduino Uno R4 Minima, including high-quality sensors, actuators, power supplies, and Original Arduino Uno R4 Minima for diverse projects and skill-building. Get it (affiliate link): https://www.sunfounder.com/collections/arduino-kits/products/sunfounder-3-in-1-ultimate-starter-kit-with-original-arduino-uno-r4-minima?ref=bXS65iah
đź•’ Timestamps:
00:00 - Introduction to controlling LED brightness with PWM.
00:05 - Explanation of PWM and its role in simulating analog outputs.
00:20 - Overview of PWM applications for LEDs and motors.
00:36 - Reminder that no changes are needed to the circuit setup from the previous LED blink tutorial.
00:47 - Quick invitation to newcomers to watch the previous LED blink video for setup instructions.
01:02 - Introduction to the coding phase for implementing PWM.
01:17 - Starting the Arduino programming for fading effects.
01:31 - Detailed coding instructions for increasing and decreasing LED brightness using PWM.
02:07 - Configuration of digital pin 11 as an output pin.
02:21 - Code walkthrough for the continuous fade-in and fade-out effects.
02:35 - Explanation of the PWM brightness control loop.
03:25 - Description of the code that gradually decreases the LEDs brightness.
03:56 - Final steps to upload the code and observe the LED in action.
04:09 - Discussion on the practical implications and possibilities of using PWM.
04:20 - Call to action: like, subscribe, and comment for more Arduino tutorials.
04:30 - Closing remarks and encouragement to continue exploring Arduino projects.
For additional insights and upcoming projects, make sure to subscribe and follow our channel. Happy making! [150] Arduino Getting Started: Analog output and fading LED](https://i.ytimg.com/vi/lXvHp4AAIrM/mqdefault.jpg)




![[170] Arduino Getting Started: Analog input potentiometer example
In this tutorial, we demonstrate how to use a potentiometer as an analog input to control the brightness of an LED using an Arduino. We cover the code in detail, showing how to read the potentiometers value, map it to control an LED, and print the value to the serial monitor.
đź•’ Timestamps
00:00 - 00:05: Introduction
00:05 - 00:35: Declaring Variables
00:35 - 00:47: Setup Function
00:47 - 01:07: Reading Potentiometer Value
01:07 - 01:23: Mapping Value for LED Brightness
01:23 - 01:36: Setting LED Brightness
01:36 - 01:55: Sending Value to Serial Monitor
01:55 - 02:08: Adding Delay
02:08 - 02:22: Demonstration Recap
02:22 - 02:34: Upload and Test
02:34 - 02:57: Application and Uses
02:57 - 03:05: Conclusion
This series is possible thanks to the kind support of Sunfounder, an online store that sells high-quality hardware and kits for Makers. Visit Sunfounder at https://sunfounder.com.
In this series, I use the SunFounder 3 in 1 Ultimate Starter Kit with Original Arduino Uno R4 Minima, including high-quality sensors, actuators, power supplies, and Original Arduino Uno R4 Minima for diverse projects and skill-building. Get it (affiliate link): https://www.sunfounder.com/collections/arduino-kits/products/sunfounder-3-in-1-ultimate-starter-kit-with-original-arduino-uno-r4-minima?ref=bXS65iah
đź“– Main Learning Objectives
Understand how to declare and initialize variables for Arduino projects.
Learn to set up and configure pins for input and output.
Read analog values from a potentiometer using analogRead.
Map analog values to a different range suitable for controlling outputs.
Control LED brightness using analogWrite.
Send data to the serial monitor for debugging and monitoring.
Implement a delay to improve the readability of the serial output.
Invitation to Subscribe
If you found this tutorial helpful, please give it a thumbs up and subscribe to our channel for more Arduino tutorials. Your support motivates us to keep crafting content that fuels your maker journey. Until next time, keep experimenting and exploring. [170] Arduino Getting Started: Analog input potentiometer example](https://i.ytimg.com/vi/mzv6Yj0Lfu4/mqdefault.jpg)




