Questions tagged [raspberry-pi]

The Raspberry Pi is a low cost, credit card sized, ARMv6 instruction set based PC device developed by the Raspberry Pi foundation.

Filter by
Sorted by
Tagged with
3
votes
1answer
100 views

Indeterminate progress bar with Raspberry Pi

I am writing program for Raspberry Pi that will show indeterminate progress while user waiting. The program will start automatically and will be killed by another shell script. Here is what I have at ...
3
votes
1answer
237 views

One to One network file transfer code C# socket based

I have been developing a piece of software which has a central computer talk to many smaller nodes with a star network configuration. Each smaller node sends a file around 5MB in size once the central ...
3
votes
1answer
394 views

Reading analog moisture signal from Arduino over USB to RPi3 and publishing via paho MQTT

This program is meant to read a moisture sensor attached to an Arduino UNO board via USB to a Raspberry Pi3 which broadcasts it over MQTT. I am looking for any constructive criticism. ...
3
votes
1answer
975 views

Small, embedded full-stack web server

I did this project last year, under some interesting constraints: it's a thin webserver which lives in a Raspberry Pi, which is networked to an embedded system in an industrial sign which is running a ...
3
votes
0answers
219 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 ...
3
votes
0answers
568 views

Using arecord through subprocess to record in Raspberry Pi

I am using arecord through subprocess to record in raspberry pi : press joystick button to start recording and press button again to stop recording. I am really a noob in programming. ...
3
votes
0answers
757 views

RC Plane Radio using the Raspberry Pi

This python code is for a homemade 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 Python code is ...
3
votes
0answers
1k views

Serving images from a Raspberry Pi camera over HTTP

I have a Pi with a camera module that I control with Python. I created a web server with web.py that allows me to make HTTP requests to the PI to retrieve an image. There are two optional parameters ...
2
votes
1answer
913 views

Pulling time and date from the internet

I'm pulling the time and date from the internet because when the user turns the Raspberry Pi off, it loses its date and time settings and unfortunately Windows 10 IoT is very slow to correct it. I ...
2
votes
1answer
61 views

Refactoring coordinates for Minecraft Pi buildings written in Python

I'm fairly new to coding and I wrote this script in Python for a house with a roof in Minecraft Pi. I've found different ways to write the coordinates to make the code base shorter, but I'm wondering ...
2
votes
1answer
448 views

RPi script to periodically collect data from Arduino through serial port

I'm not used to Python. The script opens serial communications with an Arduino unit and send commands to and receives information from the Arduino. It is intended to run indefinitely until the system ...
2
votes
1answer
796 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/...
2
votes
1answer
61 views

d20pfsrd Discord Bot Scraper Abstraction and Deployment

I wrote a discord bot that listens for links to the d20pfsrd rulebook in discord chat, checks if they are feats or magic, and then scrapes the page, formats it, and spits it back into chat as ...
2
votes
1answer
2k views

Bash scripts and udev rules to handle USB auto mounting / unmounting

Very new to Raspberry Pi and bash, but working on a headless server that will run a streaming app from USB audio card. The plan is to take a USB card with settings file, and when inserted, the usb ...
2
votes
0answers
1k views

Snake Game for Raspberry Pi Sense HAT written in Python

Goals learn Python improve problem-solving skills improve my coding style Hardware This code runs on a Raspberry Pi 3 Model B (Raspbian OS) in combination with the Sense HAT. The 8x8 LED-Matrix on ...
2
votes
0answers
192 views

Streaming video from PiCamera to Windows using Java and Python

I'm making a robot with Raspberry. My goal is: Code a server on Rasbperry using Python that captures the image from camera and sends data via socket Code a client on PC using Java that reads data ...
2
votes
0answers
43 views

Remembering what chores to do each day with LED patterns [closed]

I am using a Raspberry Pi 3 model b to control LEDs connected on a breadboard. I want the lights to tell me what chore I have to do today: when to take out the trash, recyclables, vacuum, and clean ...
2
votes
0answers
159 views

Golang: Improving communication between workers

Came back to the software side of my night vision security camera project after taking some time to learn about electronics and I found it a bit hard to retrace the logic of my program. I have a ...
1
vote
2answers
60 views

Error handling on temperature sensor

I built an allsky camera with a temperature sensor and a heater. The heater is supposed to turn when the sensor (measure_temp()) return a temperature below 8, which ...
1
vote
1answer
3k views

Multithreaded MJPG network stream server

I'm a bit of a neophyte when it comes to C++, and so I'd like some feedback regarding a recent project. The code sits on a Raspberry Pi and streams camera data over TCP on a specified port. The ...
1
vote
2answers
994 views

Arduino microcontroller based event handler program, send sensor readings over serial bus

I am working on a project with an Arduino microcontroller and a Raspberry Pi. The code will have to do the following: If the variance calculated of the ultrasonic sensor detections exceeds 1000, a ...
1
vote
0answers
344 views

Optimising fingerprint scan compare process

I'm creating some python script in Raspberry Pi to running fingerprint scan and compare it against database. Using this library, on raspberry start this script will get all the database record for ...
1
vote
0answers
119 views

Pygame Slideshow2 that uses Curses with SSH to pause and move Pictures

I have added a few new features to Pygame Slideshow that includes using curses that works with ssh, a way to move pictures to a different directory while viewing them, a pause, and redisplay mode. A ...

1
2