Once I was connected to the RPI via SSH, I updated the OS and all of its packages to the latest versions, by running the followingÂ command.
sudo apt-get update
Note: Â This command may take a long time toÂ completeÂ depending on how out of date your system is.Â
Next I installed theÂ Raspberry Pi WebIDEÂ fromÂ adafruit.com. The Web IDEÂ allowsÂ you to create Python programs from your webbrowser directly on the Raspberry PI. The WebIDE has a few niceÂ featuresÂ like a debugger and visualizer and auto version control via bitbucket.
$ sudo easy_install -U distribute $ sudo apt-get install python-pip $ wget -O geekman-python-eeml.tar.gz https://github.com/geekman/python-eeml/tarball/master $ tar zxvf geekman-python-eeml.tar.gz $ cd geekman-python-eeml* $ sudo python setup.py install
You can also make your own.Â Hardware lesson with Gert: make your own ribbon cable connector.
Vancouver Hackspace (VHS) just happen to have a bunch of the 26 pin press connector and I was able to make a few cables.
Â Source codeÂ
Since I am usingÂ bitbucketÂ all my source code is public. I created a few learning scripts to understand how the GPIO pins work on the Raspberry PI. The first script I made was a simple blinking LED, just like the arduino blinking LED script. Next was to read theÂ current state of a switchÂ and print the results to the screen.
Next I followedÂ Send Raspberry Pi Data to COSMÂ fromÂ adafruit.com. I changed theÂ tutorialÂ to read aÂ digitalÂ pin (as theÂ RaspberryÂ PI does not have any analog pins) that I connected to a magnetic read switch for my front door.
The GPIO pins on the Raspberry PI are pretty easy to use with the python libary. Its too bad there are no analog pins. I can add AtoD converters or interface the Raspberry PI with an Arduino to add some analog pins.
More to come.