All Questions
12 questions
3
votes
0
answers
320
views
OLED display application for Raspberry Pi
Python script to output status information to a small OLED screen connected to a Raspberry Pi.
I'm relatively new at writing python so although the app works and outputs correct information it is far ...
22
votes
1
answer
608
views
Raspberry PI controllable Christmas Tree
After having the scales, thermometer and a coffeemaker connected to the internet, it is finally time for Christmas Tree to become smarter.
Hardware
6ft Christmas Tree
An addressable WS2811 LED strip (...
7
votes
1
answer
437
views
Python siren control
Below is some code I've put together to contol a siren for a fire service.
It works by webscraping a paging feed and looks for set triggers.
Is there a better way of doing my code or is this "...
14
votes
4
answers
3k
views
Reading a DHT11 to a file
Disclaimer: not a Pythonista, first actual Python programme written right here.
I'm reading a DHT11 sensor from GPIO pin 4 on my Raspberry Pi (thanks Thomas Ward for sending the RPi to me), and I want ...
4
votes
0
answers
892
views
Script that reads data over usb from Arduino to RaspberryPi, cleans it up and publishes to an MQTT broker
This is a continuation from this question:
Reading analog moisture signal from Arduino over USB to RPi3 and publishing via paho MQTT
I made the advised changes, and added a bunch of new stuff, I'd ...
5
votes
1
answer
990
views
RC Plane Radio using the Raspberry Pi
This python code is for a homemade remote-control (RC) plane radio using the Raspberry Pi and a USB joystick. It sends values over serial to DSM2/X module for RC planes and other RC vehicles. This ...
4
votes
1
answer
2k
views
Pygame Slideshow
I have written a basic slideshow program that uses pygame to manage the display screen. It cycles through all pictures files in the directory and sub-directories. There is a user configuration section ...
2
votes
1
answer
1k
views
Building thermostat state machine in Python
I used a Raspberry Pi and Adafruit LCD with buttons to build a small thermostat for my house.
This is the hardware I used to you can imagine how the button and the code work:
https://www.adafruit.com/...
5
votes
3
answers
440
views
Raspberry Pi Safe Clean Up - the decorator way
Yesterday, I've come up with the idea of using python context manager to ensure cleanup available here. This time I am using that context manager to make a ...
7
votes
1
answer
470
views
Raspberry Pi GPIO safe clean up
We are always told to call GPIO.cleanup() before we exit our Pi programs. I've seen people using try ... catch ... finally to ...
6
votes
1
answer
2k
views
Raspberry Pi LED for new emails
I'm learning how to use Python with the Raspberry Pi. I successfully followed the tutorial for how to have a Python script run on the Pi to check for new email and turn on an LED if any new messages ...
5
votes
1
answer
851
views
Ping Pong Pi - A Ping Pong score and serving manager
I have spent a few hours on this code, but think it could be improved a bit. It requires eSpeak to be installed to run the speech synthesis, but the voice can be toggled on or off using the ...