Skip to main content

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
4 votes
4 answers
168 views

This code checks the Israeli Home Front Command API, and when there is a new alert for specific areas it sends a request to a Django app which I am hosting in the cloud. The Django app then sends a ...
Kovy Jacob's user avatar
7 votes
3 answers
1k views

Late important updates (unified) I found, that on my Pi's Debian 12 Bookworm (arm64), there is just an older g++-12 available. ...
Vlastimil Burián's user avatar
3 votes
1 answer
327 views

I’d love some critique, pointers or any improvement to my code. My project was mainly to record a video, through a Flask Application (online), then save it and display it on the Flask Application. ...
AlexanderKS27's user avatar
5 votes
2 answers
794 views

I've a raspberry Pico W and developed a simple stopwatch program in C. I configured GPIO pin 15 as an input and enabled the internal pull-up resistor. If the state is high, I will start the timer and ...
Isakkiii's user avatar
3 votes
1 answer
151 views

Hardware: Raspberry Pi 3B+, Elecrow touchscreen, DFR0660 Barcode Scanner, ADS1115 ADC I would like any bad practices/possible failure points pointed out specifically in the ...
Isaias_EE's user avatar
1 vote
1 answer
136 views

I want to start omxplayer, check if there is the process is up, check if there is internet connection start with play a streaming, if there is not play a local loop, meanwhile try to check if the ...
pette's user avatar
  • 55
4 votes
3 answers
539 views

Python Noob building an automation irrigation system in Python for Raspberry Pi. Python has two functions in the most basic use case: on/off the LED (which will in future be a relay->pump) and ...
GlennB's user avatar
  • 93
6 votes
1 answer
316 views

I need to know if there is any way I can optimize my code so that it does not use 0.6% of my total memory - which is approx. 22.4MB. This is a really small script that runs for as long as the ...
Aditya Sahu's user avatar
8 votes
2 answers
304 views

This is an updated question with new code, taking into account your comments from last time: Car computer in python / GPS tracking I have an old car that I use for long distance driving and have coded ...
Damien Bourdonneau's user avatar
16 votes
2 answers
2k views

I have an old car that I use for long distance driving and have coded an onboard computer based on a Raspberry Pi 3 and a few other modules. It's my first project in Python and while I've already ...
Damien Bourdonneau's user avatar
1 vote
2 answers
199 views

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 ...
VBA Pete's user avatar
  • 257
2 votes
1 answer
115 views

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 ...
jasonmadesomething's user avatar
5 votes
2 answers
1k views

I have a PHP page I used to download YouTube videos, hosted on my Pi 4. The site is only going to be used on my home network (so a dot local address), but it allows me to download videos on my phone ...
TwentyCharMax's user avatar
3 votes
3 answers
99 views

I am relatively new to C language and Linux systems I would like some feedback/review. The main function of the code is to read the dhcpcd file looking for the 3 lines and then either adding/removing ...
RyxMontar's user avatar
3 votes
1 answer
3k views

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 ...
dadul96's user avatar
  • 173
14 votes
2 answers
3k views

It's still a working process. There are still things I would like to add, and if you have any critiques or ideas they would be greatly appreciated! I would like to know if my code is readable. ...
AwesomeMeAY's user avatar
2 votes
0 answers
376 views

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 from ...
Fabio Mancuso's user avatar
17 votes
4 answers
1k views

I'm writing a Python Script for a Raspberry Pi to measure different sensors. We are planning to send the Pi with that Script running to the stratosphere, so the power usage for the Pi is limited. I ...
Lexu's user avatar
  • 273
2 votes
1 answer
130 views

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 ...
DysFunction's user avatar
8 votes
1 answer
438 views

I made this little game to test if my Nokia 5110 screen can handle games. As in handle many frames per second/game loops. I am using a library made for this screen called Adafruit_Nokia_LCD These ...
Offtkp's user avatar
  • 371
3 votes
0 answers
330 views

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 ...
David's user avatar
  • 283
7 votes
2 answers
1k views

I have a Raspberry Pi 3B with a USB microphone. I have used a combination of Bash and Python scripts to detect noise levels above a certain threshold that trigger a notification on my phone. The ...
Chris's user avatar
  • 226
7 votes
1 answer
152 views

Problem I'm writing a verilog program that does the trapezoidal integration method (where a review is also welcome, wink wink). But turns out you need input for these kind of things, so in the overly ...
auden's user avatar
  • 441
6 votes
1 answer
981 views

My program intends to capture video streams (in mjpeg) with OpenCV and upload the captured frames into Google Cloud Storage for later processing. I am expecting to capture ~15-20 frames per second and ...
Rex Low's user avatar
  • 161
12 votes
3 answers
1k views

I am new to programming, python and raspberry-pi, but I am keen to learn more. After doing a few basic tutorials I though it might be best to give it a shot and just come up with a task in which I ...
zomb23's user avatar
  • 123
7 votes
2 answers
181 views

I already improved my program with the suggestions of @Mast. As requested by him I re-upload the code in English so we can check it out together. But before I'll explain a little bit what this ...
Lorenz Bonat's user avatar
3 votes
1 answer
521 views

I am currently working on a python program with appJar. This program is made for Raspberry, as I wanted to create a program that is portable. I wanted to insert a virtual keyboard into it, by using ...
Lorenz Bonat's user avatar
11 votes
1 answer
136 views

My project consists of a Raspberry Pi 2B V1.1 connected to a number of push-buttons via GPIO pins. The goal is to create a panel of buttons, allowing the user to make a selection of one or more items ...
Orphevs's user avatar
  • 231
7 votes
1 answer
343 views

In "most" (my experience) older UK houses, Central Heating and Hot Water both come a gas boiler. They are controlled by a programmer, to come on at different times, which is effectively just three ...
fishkake's user avatar
  • 123
22 votes
1 answer
626 views

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 (...
alecxe's user avatar
  • 17.5k
2 votes
0 answers
233 views

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 ...
user3017869's user avatar
47 votes
6 answers
7k views

I've been trying to show my 6-year old daughter a way to build and create a simple toy car. We've got a 4-motor chassis kit, Raspberry PI and a motozero shield that can operate these 4 motors. We've ...
alecxe's user avatar
  • 17.5k
3 votes
1 answer
205 views

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 ...
Iaroslav Karandashev's user avatar
3 votes
0 answers
739 views

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. ...
Cun Li's user avatar
  • 131
6 votes
3 answers
670 views

I was not happy with original code for Ultrasonic sensor and decided to write my own implementation. I managed to do this, but it still looks weird. Could you help me to improve it? ...
Iaroslav Karandashev's user avatar
7 votes
1 answer
389 views

I have been working on this Raspberry Pi project for a while. It uses the Poloniex API to get prices of crypto coins and it shows the prices on multiple OLED displays. The displays use different i2c ...
BoKKeR's user avatar
  • 135
3 votes
1 answer
579 views

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 ...
user3797758's user avatar
7 votes
1 answer
852 views

I'm doing a motion detection program where it snaps an image when it detects movement and snaps an image of the person's face if in view while this is all recorded and sends it all to Dropbox. It's ...
Marciano Ng's user avatar
16 votes
1 answer
7k views

I'm currently working on a robotics application where a video feed is being displayed from a Raspberry Pi 3. I've been working on a way to stream the video directly into JavaFX (the rest of the UI is ...
flakes's user avatar
  • 1,945
2 votes
1 answer
2k views

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 ...
user1234433222's user avatar
4 votes
1 answer
107 views

I wrote a camera streaming app for pizero. Since the pizero is too weak to do any video encoding I am using it to just capture usb webcam frames (mjpeg format) and forward them over udp to a ...
user3017869's user avatar
7 votes
1 answer
464 views

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 "...
shaggs's user avatar
  • 173
14 votes
4 answers
3k views

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 ...
Der Kommissar's user avatar
4 votes
0 answers
902 views

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 ...
Dinocv's user avatar
  • 381
5 votes
1 answer
1k views

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 ...
ethan Johnston's user avatar
4 votes
1 answer
455 views

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. ...
Dinocv's user avatar
  • 381
4 votes
1 answer
2k views

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 ...
bstipe's user avatar
  • 177
4 votes
2 answers
735 views

I wrote a bash script for the Raspberry Pi 3 (Raspbian) which has the main task of setting up a LAN to WLAN router. In addition it makes some things nicer for the intended users who have Windows ...
Thomas Weller's user avatar
4 votes
1 answer
948 views

Revised from: Bash scripts and udev rules to handle USB auto mounting / unmounting Tested: Uses USB insert/remove to control a headless Raspberry Pi 3 with Raspian Jessie Lite Changes: Implement ...
dbmitch's user avatar
  • 295
2 votes
1 answer
3k views

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 ...
dbmitch's user avatar
  • 295