Category Archives: Uncategorized

Library for I2C Connection of the LCD1602 to the Raspberry PI

This lesson shows how to connect an LCD1602 to a Raspberry Pi using only 4 wires by I2C. You will need to copy the code below, and create a program called, and save it in the same folder your main python programs are in.


Raspberry Pi LESSON 13: Set Color of RGB LED with Push Buttons

In this video lesson we show how you can use pushbuttons and PWM (Pulse Width Modulation) to mix colors and create any color you want in an RGB LED. We are using the most excellent Sunfounder Ultimate Raspberry Pi kit, which you can snag HERE.

You will need to start by connecting up the following circuit. You will find all the components you need in the Sunfounder kit.

RGB LED on Raspberry PI
Circuit Diagram for connecting an RGB LED to a Raspberry PI

You can click on the circuit diagram for a bigger view. In the video above, we explain in detail the coding but for your convenience, we include the finished code below:



Using an Arduino with Python LESSON 17: Controlling Paddle Position with a Joy Stick

In this video lesson we show how to control the position of a game paddle in Python using data from a joystick controlled by Arduino. the data is passed from Arduino to Python, and then the position of the game paddle is dynamically adjusted in real time. On the arduino side, this is the code which we developed:

And on the Python side, this is the code which we used:


Using an Arduino with Python LESSON 16: Connecting and Using a Joystick with Arduino


In this video lesson we are working towards creating a 3D version of the classic Pong arcade game. In this session, we show how to read data from the joystick using the arduino.

The arduino code developed in this video is included for your convenience below:


Also, this is the vPython 3D simulation we have developed thus far:


Using an Arduino with Python LESSON 7: Measuring Temperature and Humidity With the DHT11

In this video lesson we show you how to wire up the most excellent DHT11 Temperature and Humidity Sensor. The video above takes you through the build and coding. Below, for your convenience is the code developed in the video