You may not understand what I do… but it is still awesome.

Uncategorized

Building and Installing Python 3.4 from source

This tutorial asssumes basic knowledge of the raspberry pi’s (or linux) terminal. Since Raspberry Pis currently come with a slightly outdated version of Python 3, you may want to update it to a more recent version. The following instructions should work for any version of python – Python 3.4 is used here as an example. […]

Linux Command Line Reference

Linux Terminal Reference Sheet Command Function ls List the contents of the current directory cd orange Change the current directory to the sub-folder orange cd .. Change the current directory to the parent folder cd ~ Change the current directory to your home folder rm banana.txt Delete the file banana.txt rmdir pineapple Delete the directory pineapple, but only […]

How to get a raspberry Pi to set up a wireless ad-hoc network, but only if it is not already connected

This tutorial post will show you how to get a raspberry pi to set up a wireless ad-hoc network, but only if it not already connected. The wireless hotspot will also Dynamically assign IP Addresses to clients that connect. Things that you should already have A Raspberry Pi + SD Card (already set up) A […]

Python code for servoblaster

Assuming you have servoblaster working now, here is some starter code that can be used to send echo commands to the console from subprocess import call from time import sleep def stop(time): print(“stopleft”) call (["echo 0=150 > /dev/servoblaster"], shell=True) print(“stopright”) call (["echo 1=150 > /dev/servoblaster"], shell=True) sleep(time) def call_command(servo,pulsewidth): call(["echo "+str(servo)+"="+str(pulsewidth)+" > /dev/servoblaster"], shell=True) def […]

Controlling Servos Using the Pi

Googled this topic quite thoroughly, and the bottom line is: it looks like it can’t be done effectively without additional hardware. Code already exists to set up a serial connection over usb on the Pi to an arduino. Then use the arduino to control the servos and the pi to send the commands and run the code. […]