Quantcast
Channel: Raspberry Pi Forums
Browsing all 1225 articles
Browse latest View live

Python • Re: Detect motion with pi camera v1

This example from the excellent github picamera2 repository captures motion: https://github.com/raspberrypi/picamer ... _motion.pyStatistics: Posted by neilgl — Sat Oct 26, 2024 8:30 am

View Article


Python • Re: Auto start

It took me a while to remember something I used years ago. Kiosk mode. Have you tried that?https://www.raspberrypi.com/tutorials/h ... iosk-mode/Statistics: Posted by SurferTim — Sat Oct 26, 2024...

View Article


Python • Pygame on Raspberry Pi looks very weird

I tried running this script on my RasPi, it should create a red rect on black background:game.py:Code: import pygameimport syspygame.init()screen = pygame.display.set_mode((0, 0),...

View Article

Python • Re: Pygame on Raspberry Pi looks very weird

Try this:Code: #!/usr/bin/env python3import pygameimport sysred = (255,0,0)black = (0,0,0)test_box = pygame.Rect(10, 130, 80, 60)pygame.init()screen = pygame.display.set_mode((0, 0),...

View Article

Python • MIDI host PI with SSD1603

Hi there,I'm trying to convert an existing project (based on this) to work using newer libraries. The "connectall.rb" script is still working as expected, but I'm trying to add an oled ssd1306 to the...

View Article


Python • Help! remote GPIO not working from my Mac to raspberry pi

Hi,I recently started a project on creating a UI that has a few buttons that control a raspberry pi 4b based robot rover. Only issue is that when I follow the Remote GPIO documentation and try to run...

View Article

Python • Re: MIDI host PI with SSD1603

draw.rectangleAlways clears the entire screen.You only need to call it once.Statistics: Posted by MarkDH102 — Sun Oct 27, 2024 9:55 pm

View Article

Python • Re: Help! remote GPIO not working from my Mac to raspberry pi

Which pi are you using? pigpio does not run on a Pi5 as that uses a new GPIO chip.And which version of Raspberry Pi OS is it (Bookworm or other)?Statistics: Posted by neilgl — Sun Oct 27, 2024 10:51 pm

View Article


Python • Reading Photoresistor Values on LCD

Hello,I'm using micropython and I have gotten the code to read and display readings from a photoresistor to the thonny shell. I'm trying to figure out how to write code to have those readings display...

View Article


Python • Picamera2, unable to toggle preview while continuously recording

Hello, I am using a raspberry pi 4b with bookworm 64bit OS. I am sshed into my pi that has a pitft screen where I am displaying the preview(hence the preview size and using QT). I am trying to debug...

View Article

Python • Re: Send email from python

I was going to leave this until I get another replybut its been 5 days. just want to know if anyone knows another way of doing thisStatistics: Posted by kcajminer2312 — Mon Oct 28, 2024 6:37 pm

View Article

Python • Re: Picamera2, unable to toggle preview while continuously recording

I solved my own issue! If anyone else encounters something similar, an in-depth read of the picamera docs got me what I needed. This is my updated code:Code: from picamera2 import Picamera2,...

View Article

Python • Can't change display on case

Hello everyone.I'm going to get straight to the point and ask. I recently got a 52PI(ZP0128) case with a small oled display on the front, but I cant figure out how to change the image on it. Any...

View Article


Python • Re: Can't change display on case

Did you try asking them?support@52pi.comNeither their site not their wiki seems to be of any help.You can try this page https://wiki.52pi.com/index.php?title=M ... _Heat_sinkFind the correct model...

View Article

Python • Re: Running of program gets stuck on tensorflow code

You should verify that the model is being loaded correctly. Sometimes, issues arise from incorrect file paths or corrupted model files. Make sure the model file exists at the specified path...

View Article


Python • Re: BMP280 library

Which Python library do you use with the BMP280 temperature and pressure sensor? I found a few. Adafruit and a couple on Pypi.If I post code using this device, I would like to know which is the most...

View Article

Python • UART communication between sensor and RPI zero 2W with python

Hi,I have set up a connection between a sensor and a RPI zero 2 W with GPIO 14 and 15Here is the spec sheet of the sensor.This is the basic script I tried:Code: import...

View Article


Python • Re: UART communication between sensor and RPI zero 2W with python

Hi,I have set up a connection between a sensor and a RPI zero 2 W with GPIO 14 and 15Here is the spec sheet of the sensor.This is the basic script I tried:Code: import...

View Article

Python • Re: Controlling Relay Module - Can't turn it off

Can't help you there. The Google Drive page wants me to get access.This should be simple.Is it just a blue cube with pins on the bottom?Or is it a blue cube mounted on a circuit board?Best to post a...

View Article

Python • Re: Send email from python

I was going to leave this until I get another replybut its been 5 days. just want to know if anyone knows another way of doing thisNobody here seems to. If you searched the web and didn't find...

View Article
Browsing all 1225 articles
Browse latest View live