Using PIL and OpenCV, this guide will show you how to simulate a small full-colour display attached to the Raspberry Pi on a PC. The virtual display will then allow you to create animated or interactive content initially on the PC. Then, with a little code modification, port the Python code to the Raspberry Pi. I also include example test code with this guide. Continue reading “Simulate Animated OLED/LCD Display On PC With PIL and OpenCV”
Tag: Raspberry Pi
Using I2C Serial Bus to Connect Raspberry Pi to Arduino
At some point, I’ll be looking to extend my Raspberry Pi robot, and one of the ways to do that is to use I2C (Inter-Integrated Circuit) serial devices. So, in this feature, I look at how to access an Arduino board from the Raspberry Pi using this serial bus. I also include both Raspberry Pi and Arduino code to demonstrate the use of the serial interface. Continue reading “Using I2C Serial Bus to Connect Raspberry Pi to Arduino”
Create OLED or LCD Display Content with Pillow – Graphics and Fonts
Featuring the SSD1331 display and the Python Pillow library, I create and test content on the PC before porting to the Raspberry Pi with the attached OLED screen. Also, I include Truetype FreeFont and graphic images as part of the setup and demonstration. Additionally, I include plenty of example Python code. Continue reading “Create OLED or LCD Display Content with Pillow – Graphics and Fonts”
OLED Display Library Setup for the Raspberry Pi featuring SSD1331
Thanks to an impressive Python library, we can connect various types of OLED displays to the Raspberry Pi such as the SSD1331 colour display. So to get this vivid, high-contrast 16-bit colour display up and running, I take a look at how to set up this library from Continue reading “OLED Display Library Setup for the Raspberry Pi featuring SSD1331”
. Additionally, I also show how to install and run the many examples available.Ultrasonic HC-SR04 Sensor Python Library for Raspberry Pi GPIO
This guide takes you through the steps to install and set up the new HC-SR04 distance measuring sensor Python Library. First, we connect the ultrasonic module to the Raspberry Pi GPIO pins. Then, we use pip to install the Python module. Followed by, a walkthrough of the ultrasonic Python module features. Continue reading “Ultrasonic HC-SR04 Sensor Python Library for Raspberry Pi GPIO”
Motor Driver for Raspberry Pi Robot using TB6612FNG
In this feature, I take another look at the TB6612FNG motor driver, but this time, with the Raspberry Pi instead of the Arduino. The H-Bridge module is the chosen robot driver for my Pi Wars entry effort. View this post for circuit examples and Python test code to get started with your own Robot Project. Continue reading “Motor Driver for Raspberry Pi Robot using TB6612FNG”
Pi Wars 4.0 Update – Raspberry Pi Robotics Challenge
With less than ten weeks to go for The Pi Wars 4.0 competition day, there is still much to do. I imagine it’s going to be panic time for many of the competitors. I’m still a reserve competitor, but I have already seen indications of entrants dropping out, so there is still hope for me yet. The Raspberry Pi robot vehicle software is the most challenging task to complete in my entry effort, and I believe this will be the same for many other teams as well. Continue reading “Pi Wars 4.0 Update – Raspberry Pi Robotics Challenge”
Pi Camera Video Capture with OpenCV and Python Multithreading
In this article, I install the Raspberry Pi Camera which I will be using to add camera vision to a robot. Also, to maximise the performance of OpenCV and Camera, I will be using a utility to add multithreading to the Python applications. Furthermore, I include Python demo code which also supports USB webcams. Continue reading “Pi Camera Video Capture with OpenCV and Python Multithreading”
360 Degree Mod for Servo Continuous Rotation – Guide
In this feature, I am going to do a 360 degree mod on a micro servo motor for continuous rotation. I go through the modding step by step with clear pictures of the conversion process. Also, Python code will be included to drive the servo 360 degrees from the Raspberry Pi. Continue reading “360 Degree Mod for Servo Continuous Rotation – Guide”
Micro Servo 9g – Raspberry Pi Servo Motor Python Code Test
In preparation for a future project, I’m taking a close look at the Micro Servo 9g I bought from Ebay some time ago. So, to build the servo motor into a project, I require electrical specifications, wiring diagram, drawings with dimensions, 3D CAD model, and also test code for Arduino and Raspberry Pi. Continue reading “Micro Servo 9g – Raspberry Pi Servo Motor Python Code Test”