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

Setting up your pi to accept remote desktop connections (and how to connect to it)

Note: rdp is used as an abbreviation for “remote desktop connection” in this article. Step 1 Open a terminal window if you are in the GUI. Type in the following: sudo apt-get install xrdp Now restart your pi. Step 2 SSH into your pi and type startx. Now disconnect from the SSH session. This will […]

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 […]

Portable python 2.7.3.2!

Hello! There is a new version of portable python available, so I have made an install. Unzip the zip to a new folder on your flash drive or wherever you want to install it to. Below are the main extra modules and programs that are included: Programs Python 2.7.3.2 – The main Python interpreter PyScripter […]

How to use easygui (part 3/3)

openfile

In this mini series of posts, I have explained how you can create dialogue boxes and popup windows to display text and get information from the user. If you haven’t read the previous tutorials, I recommend that you go back and read them, as this tutorial follows on from the previous two. In this final […]

How to use easygui (part 2/3)

inputbox

Hello and Welcome to the second post in this series! In this post I attempt to explain some more complex things that you can do with easyGUI. Again, this tutorial should work regardless of the version of python that you are using. The only difference is that in this tutorial I use the python 3 […]

, ,

How to use easygui (part 1/3)

yesno box

Hello! This is my first post, and it is going to be about gui programming in python. I am looking into tkinter – the “standard” gui programming tool that comes with python, but it is rather complex so I looked for a simpler way of doing things to start off with. The python package that […]

, ,

Servoblaster: Installation

Firstly you need firmware updated to 3.2.27 I posted about this here http://www.novitiate.co.uk/?p=8 Install Git sudo apt-get install git Then use Git to clone the files git clone git://github.com/richardghirst/PiBits.git Move to the folder cd PiBits//ServoBlaster Load servoblaster sudo insmod ./servoblaster.ko Now do this command to find what number you nee for the following command (its […]

Remote Desktop for the Pi

Many people use TeamViewer, as it is easy and globally used. This only works on conventional processors and is very fiddly to get working on a pi. The alternative is to connect to your pi, as if you were using ssh. Then virtualise a version of x server to allow you to see the exactly […]

Flashing lights (GPIO/Python challenge)

Last week many of you got an LED flashing from the GPIOs using Python. You started with the code from time import sleep #To use the command sleep from the module time import RPi.GPIO as GPIO #To use commands the GPIO control module GPIO.setmode(GPIO.BOARD) #To make the numbering of the GPIOs better GPIO.setup(7, GPIO.OUT) #To […]

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. […]

Previous Posts Next posts