Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/some-natalie/python-pi

Python programs for the Raspberry Pi using RPi.GPIO and a basic breadboard.
https://github.com/some-natalie/python-pi

Last synced: 11 days ago
JSON representation

Python programs for the Raspberry Pi using RPi.GPIO and a basic breadboard.

Awesome Lists containing this project

README

        

# python-pi

# Files

## 1 - Blinking LED

File: blink-led.py

Demo: [Video](http://youtu.be/VDpIjwQILoo)

Diagram: [Source file](https://github.com/natalie-/python-pi/blob/master/breadboard/1-led.fzz)

![Diagram](https://github.com/natalie-/python-pi/blob/master/breadboard/1-led.png)

Description: Blinks an LED a set number of times for a given duration.

## 2 - Button LED

File: button-led.py

Demo: [Video](http://youtu.be/SKfqJffWsVQ)

Diagram: [Source file](https://github.com/natalie-/python-pi/blob/master/breadboard/1-button-led.fzz)

![Diagram](https://github.com/natalie-/python-pi/blob/master/breadboard/1-button-led.png)

Description: LED controlled by a button. Button held, LED on. Button not pressed, LED off.

## 3 - Switch LED

File: switch-led.py

Demo: [Video](http://youtu.be/brnC-m0cb90)

Diagram: This one uses the same diagram as the button LED.

Description: LED controlled by a button acting as a switch. Press the button, the LED turns off (if it is on) or on (if it is off).

## 4 - 8 Blinking LEDs

File: 8-led.py

Demo: [Video](http://youtu.be/EhjjGvgzfOs)

Diagram: [Source file](https://github.com/natalie-/python-pi/blob/master/breadboard/8-led.fzz)

![Diagram](https://github.com/natalie-/python-pi/blob/master/breadboard/8-led.png)

Description: 8 LEDs blinking left to right.

## 5 - 8 LEDs with a GUI

Files: 8-led-gui.py, led.ui

Demo: [Video](https://www.youtube.com/watch?v=dQXv1FyIoSA)

Diagram: This one uses the same diagram as the regular 8 LEDs

Description: 8 LEDs now controlled by checkboxes in a GUI. GUI built with [pygubu](https://github.com/alejandroautalan/pygubu).

Screenshot:

![GUI](https://github.com/natalie-/python-pi/blob/master/screenshots/GUI.jpg "GUI screenshot") ![Picture of breadboard](https://github.com/natalie-/python-pi/blob/master/screenshots/breadboard.jpg "Picture of breadboard")

## 6 - One RGB LED

File: rgb-led.py

Demo: [Video](https://www.youtube.com/watch?v=CdU0b_Pm4rE)

Diagram: [Source file](https://github.com/natalie-/python-pi/blob/master/breadboard/rgb-led.fzz)

![Diagram](https://github.com/natalie-/python-pi/blob/master/breadboard/rgb-led.png)

Description: A single RGB LED that blinks red/green/blue/white 10 times, then exits.

## 7 - Random colors on one RGB LED

File: random-color.py

Demo: [Video](https://www.youtube.com/watch?v=09hB7dvITEk)

Diagram: This one uses the same diagram as the one RGB LED

Description: Random colors fading one to the next on one RGB LED.

## 8 - Random colors on one RGB LED (now with functions)

File: random-color-2.py

Demo: Same as above.

Diagram: This one uses the same diagram as the one RGB LED

Description: Random colors fading one to the next on one RGB LED, controlled by functions.

Diagrams made using [Fritzing](http://fritzing.org/download/).