How to get GPS information from gspd with python.
In this post, we will be using python programming to open communication between our computer and the Beaglebone, the interactive programming (through the sudo python command) is useful for short commands and testing, but when you need to be able to send commands quickly to control different things it can get bogged down and lag. […]
This post is a follow up to part one in the series on GPIO control found at: Tinkernow gpio control part 1. This assumes everything worked properly and your breadboard is still setup with the LED circuit. We are going to add in a switch to our circuit, wire the switch up to the Beaglebone Black, and use […]
In this post we run through the basics of controlling your beaglebone black GPIO (General Purpose I/O) pins. It is important to note that many of the pins are used by the beaglebone black for various processes at different times. This can make for a headache when trying to wire things up. Below is a table that […]
1. Getting your USB Controller input values Step 1 Get a USB Controller. I am using the SNES USB Controller (found on a different post somewhere). I also tested this code with a Logitech USB Playstation Controller, and worked just as well. Step 2 Find your USB pathway. On the command line, type /dev/input/by-id/(hit […]
Program Listing Program Break down: The following 3 commands use the import system in python. The import statement is the most common way of invoking the import machinery. The following command sets up a variable named “command”. The variable equals “iwlist wlan0 scan”. The following command uses the import commands function, and in essence writes […]
We are currently working on a pan/tilt camera project and are experimenting with a servo motor. This posting is an on going trial and error project using the Beaglebone Black microcontroller loaded with Ubuntu to run a micro servo motor. Micro servo motors are used in basic electronic projects when limited motion is necessary, while we […]
How to work with directory lists in python Program Listing Program break down This line imports the OS functions Get the list of files in a Directory. The “./” is the path to the directory to be listed Loop over all the files in the directory. Get the file extension Look for jpg files […]