Below you will find pages that utilize the taxonomy term “python”
Post
Raspberry Pi: Programming Motors with Python and pigpio
We’ve:
Unboxed and assembled a UCTronics Robot Car.. Set the car up as a Wifi client and installed JupyterHub. Connected a wireless gamepad. Replaced Wiring Pi with pigpio and read from a sensor It’s finally time to make this car move. You’re going to talk to the motors!
Using pigpio In the last post, we left off with code that looked like this:
import time import pigpio def beep(count): for i in range(count): pi.
Post
Python Test Automation
Here’s a post I wrote for TestIm a while back. It’s more of a listicle than a tutorial, but looking into Python tools I wasn’t already familiar with was fun.
A few weeks ago, we talked about automating tests. Now it’s time to take a look at six of the best Python test automation tools.
The good news is that the Python standard library already includes excellent unit testing tools. You can go a long way toward setting up robust test automation using the language’s built-in capabilities.
Post
Raspberry Pi: Programming the GPIO
So far, you’ve unboxed and assembled a UCTronics Robot Car. Then, you set it up as a Wifi client and installed JupyterHub so you could write Python code to control it via a web browser.
Just before the holidays, I dug up my old post about reading a USB game controller and refreshed it, so you can use a gamepad to control the car after I go over how to control the motors.
Post
Raspberry Pi and Gamepad Programming Part 1: Reading the Device
Last week I wrote up how to prepare the UCTRONICS robot I’ve been playing with for hacking..
This week, I’m taking a break to update an old tutorial from five years ago: how to use a gamepad to control a Raspberry Pi. This post has been around a few years, and I just found out that a bunch of images broke, so it’s time to update with a new Pi and easier-to-follow instructions.
Post
Hacking the UCTRONICS Robot Car: Prepping for Hacks
Last week I assembled a Raspberry Pi-based car kit. I bought the kit from Amazon. (Affiliate link.) The car has a live video camera, a sonic collision sensor, and a line-following sensor. You’ll need a Raspberry Pi to go with it. I recommend a 3 B+.
The car works with an Android or iOS app, and the apps are functional enough, but where’s the fun in simply relying on them?
Post
Raspberry Pi and Gamepad Programming Part 2: Controlling the GoPiGo
Welcome to part 2 of my series on working with programming the GoPiGo and a Gamepad controller with Python.
In part 1 I talked about what a gamepad “looks” like to a Raspberry Pi and how the excellent evdev package makes it easy to read and process information from it. I finished the post with a script that reads buttons on the gamepad and prints the direction it would send the GoPiGo in.