Tag Archives: LED

Create a Dimmable LED with a Potentiometer on the Raspberry Pi

In this video lesson, we show how to create a dimmable LED on the raspberry pi using a potentiometer. Below is the schematic of the circuit we will be using.

Dimmable LED
Pot Controlled Dimmable LED

Then we used the following code to read values through the ADC0834 analog to digital chip, and then apply a PWM signal to control the brightness of the LED.

 

Using an Arduino with Python LESSON 11: Controlling an LED from Python

In this video lesson, we show how to control an LED using python. Python sends commands to arduino, which then controls the LED. We also create a vPython visual, where the ‘Virtual’ LED mimics the behavior of the real LED. This a really cool demonstration and hope you enjoy it. I include below the code we develop in the video. On the arduino side we end up with the following:

And on the python side we have:

 

ARDUINO TUTORIAL 68: Make a Remote Controlled RGB LED with Brightness and Color Control

RGB LED Remote Control
This is our Remote Controlled RGB LED

In this lesson we take you through step-by-step instructions on creating a remotely controlled RGB LED.  This is the solution to the Homework Assignment given in Tutorial 68. It is important for you to try and complete this on your own before looking at my solutions.

We are building this with parts from our Elegoo Kit , and our actual build is using an Arduino Nano, which allows the project to be built on a single breadboard. You can get the neat jumper wires HERE.

This video steps you through our build.

Below is the code we developed in this video.