In this project, we will learn how to develop projects using the WebIDE from Adafruit Industries. We will flash an SD card with the Raspbian OS, install the Occidentalis tool (https://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro/occidentalis-v0-dot-3), set up the web-based development tool, and test the setup using an example.
Occidentalis was initially available as a Raspbian OS image by Adafruit Industries. It comprised of the toolset that enabled to get started with project development using the Raspberry Pi. The OS image was deprecated and released after we finished writing the book. We have taken our best effort to update the book. Please refer to this book's website for more information.
In this project, we will discuss installing a tool, Occidentalis, and a WebIDE that enables programming in the Python language on the Raspberry Pi. We will also discuss one example from the Adafruit repository and another example of driving an RGB LED.
The following table lists the bill of materials used in this project. These are just examples, and alternative products that have a similar specification may also be used.
Item |
Estimated Cost |
---|---|
Raspberry Pi Model B |
35 USD |
Adafruit Cobbler (https://www.adafruit.com/product/914) |
7 USD |
Adafruit 7-segment LED Backpack (https://www.adafruit.com/product/879) |
10 USD |
13 USD |
The Adafruit WebIDE in combination with the Occidentalis operating system enables development in the Python language on a Raspberry Pi using just a web browser. It also enables access to sample projects developed by Adafruit via Bitbucket, a source control tool. (If you are not familiar with source control tools such as Bitbucket, Git, and so on, the examples in this project are a great way to get started!) The Adafruit WebIDE is a tool developed for hobbyists and comes with examples for techniques such as pulse-width modulation (used in lighting system control) and I2C communication, and also provides examples for controlling products from Adafruit.
Pulse-width modulation is a technique used widely in motor control, lighting systems, and so on. It is a technique where the average voltage applied to a device is varied by changing the width of the pulse. There are several tutorials on pulse-width modulation (https://learn.sparkfun.com/tutorials/pulse-width-modulation) available all over the Web.
I2C communication (https://learn.sparkfun.com/tutorials/i2c) is a form of serial communication interface used to connect multiple slave devices (usually sensors) with a master device (Raspberry Pi or a microcontroller) through a common interface.
18.191.13.255