Tag Archives: LED

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

YouTube video player

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

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.

Arduino Tutorial 36: Understanding How to Use Tilt Switches in Your Projects

This Circuit Gives Visual Indicator if Board Has Been Tilted

This is a simple project that allows you to create a circuit which will give a visual indication if the breadboard has been tilted. In the upright position, the Green LED is illuminated. To the left of the board is a tilt switch. If the project is tilted, the switch will go from the closed to the open condition. This can be detected on the arduino, and then the red LED is illuminated. The video below explains how to do this simple project.

You can get the kit we are using in these lessons HERE. You should create your own code based on the instructions in the video, but if you are having trouble, I include the code developed in the video below: