官术网_书友最值得收藏!

Mission briefing

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.

Why is it awesome?

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.

Note

The Adafruit WebIDE is now a beta release and it may not work successfully across different platforms. The Adafruit learning system has indicated that this development tool was directed towards advanced hobbyists. We have taken our best efforts to explain it as simply as possible.

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.

Your Hotshot objectives

In this project, we will discuss the following features:

  • Bootstrapping your Raspberry Pi by installing Occidentalis
  • Setup of remote login into the Raspberry Pi
  • Installation of the Raspberry Pi WebIDE
  • Python development on the WebIDE
  • Test and debugging examples using the WebIDE

    Note

    This project should not be considered as an attempt to promote Adafruit Industries or their products developed for their platform. This project merely demonstrates simplification of development on the Raspberry Pi using a tool from Adafruit Industries.

Mission checklist

In order to get started, the first step is to install the Occidentalis distro, which is a derivative of the Raspbian operating system.

The things required to get started are as follows:

  • A 4 GB SD card flashed with the Raspbian OS
  • An Occidentalis image.
  • An Ethernet cable
主站蜘蛛池模板: 莱州市| 黄浦区| 青铜峡市| 塘沽区| 永福县| 察哈| 嘉兴市| 阿合奇县| 乌兰浩特市| 仁怀市| 务川| 农安县| 灵璧县| 长顺县| 山阴县| 天镇县| 天台县| 宁安市| 当涂县| 宝坻区| 平原县| 海宁市| 邢台市| 共和县| 洞口县| 佳木斯市| 民和| 英德市| 榕江县| 石棉县| 会理县| 金湖县| 英吉沙县| 青州市| 称多县| 福州市| 沁源县| 龙山县| 阳曲县| 盐边县| 社会|