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

Image may be NSFW.
Clik here to view.

Python • Using Python with PARI/GP

I use Python with rpicam-apps/utils/timestamp.py in my GS camera GScrop script:https://gist.github.com/Hermann-SW/e604 ... 4e0e9f6b9cAlso Python is part in both of my multi language repos...

View Article


Python • Displaying Custom Loop MP4 Video from Pi Zero 2 W to Waveshare LCD

Hi all,New Raspberry Pi user looking to dive into this world for a specific prop project. I've purchased the Pi Zero 2 W, and a Waveshare 1.3in LCD screen. I have a custom MP4 video I've uploaded to...

View Article


Python • Re: Displaying Custom Loop MP4 Video from Pi Zero 2 W to Waveshare LCD

I think there are two possible approaches.Let Linux contol the Waveshare LCD if there is a kernel module available. Then you could play the video on your LCD without much programming work.Doing...

View Article

Image may be NSFW.
Clik here to view.

Python • Re: PID controller help

It took me a while to figure it out.Maybe this will help. Put this print statement as the very last line of your code where my example prints "All finished"..Code: print("Releasing all program, data...

View Article

Python • Re: Send email from python

to setup an account you need a non public email so no @outlook @hotmail @gmailso either I need a work around or a different solutionStatistics: Posted by kcajminer2312 — Fri Nov 01, 2024 6:23 pm

View Article


Python • Re: BMP280 library

Sounds like the BMP280 library won't work with BMP390, or am I misreading?Anyone found a good library for the BMP390? Like the previous poster, I do not want to go with Adafruit and install all the...

View Article

Python • PIR false positive when sending mail

HiI wan't to use the RPI as security camera. When detecting a motion on PIR module it should take a picture/video and send it through email.I attached a RPICamerav3 on a RPI5 with 4gbram and I'm using...

View Article

Python • Re: PIR false positive when sending mail

The code where you read the PIR and make the decision to send the email is not there. Sending emails take a fairly long time. Check if you have a flag (variable) with the state of the PIR that stays...

View Article


Python • help please. joystick control end button pytone code

Hello, I installed a resperi 5 and 7 inch navigation tablet for my motorcycle. I want to control it with the joystick next to the device. I want to use 1 joyistic and 3 buttons. I want to control the...

View Article


Python • Re: help please. joystick control end button pytone code

What type joystick? Analog or usb?A link to the joystick would help.Statistics: Posted by SurferTim — Sun Nov 03, 2024 3:45 pm

View Article

Python • Raspberry PI 5 GPIO in Virtual Environment

I want to use buttons with a raspberry pi 5 in a virtual environment. gpiozero works normally but not in the venv. Is there any library I could install to solve this issue?Statistics: Posted by...

View Article

Python • Re: Raspberry PI 5 GPIO in Virtual Environment

Did you create the venv with system packages or not?Statistics: Posted by neilgl — Mon Nov 04, 2024 8:53 pm

View Article

Python • How would I go about this

I wan’t to make a python program that will boot at start (likely using .bashrc) and check for if you are connected to the internet, if you aren’t, it will put you into a internet connection graphical...

View Article


Python • Re: How would I go about this

Go about it by getting your python script working (as user pi) then use the excellent startup guide here viewtopic.php?t=314455 to start it at boot time.Statistics: Posted by neilgl — Tue Nov 05, 2024...

View Article

Image may be NSFW.
Clik here to view.

Python • Suggestion for two hotkeys

So I thought that the programming would be the hardest part of my project. Boy, was I wrong! I have written a program (Python/Kivy) which displays information, and the idea is to view this in a window...

View Article


Python • MicroPython: How to wake Pi Pico / Pico W / Pico 2 from sleep using...

A lot of people use sleep modes for finite amount of times, waking up after X seconds.I would like to indefinitely make the microcontroller go to sleep until any of 4 GPIO buttons is pressed.I can't...

View Article

Python • Re: MicroPython: How to wake Pi Pico / Pico W / Pico 2 from sleep...

Look here. I found this looking for something else.https://docs.micropython.org/en/latest/ ... e.Pin.htmlThis under the "Methods" section.Code: Pin.irq(handler=None, trigger=Pin.IRQ_FALLING |...

View Article


Python • Pythin internet config graphical interface on start

I wan’t to make a python program that will boot at start (likely using .bashrc) and check for if you are connected to the internet, if you aren’t, it will put you into a internet connection graphical...

View Article

Python • Re: BMP280 library

Thanks to some pointers from those on this thread, I got my bmp390 sensor working on micropython and you can see it here:https://github.com/bradcar/digital-alti ... -sensor.pyI used the 2022 library...

View Article

Python • Websockets = :-(

I have websockets installed on my raspberry pi but I am unable to establish a connection.pip show websocket-clientCode: pi@popcamera:~ $ pip show websocket-clientName: websocket-clientVersion:...

View Article
Browsing all 1225 articles
Browse latest View live