Quantcast
Browsing all 1234 articles
Browse latest View live

Python • Re: BMP280 library

I just finished a combined driver for BMP280, BMP390, BMP581, BMP585. I needed this for my personal altimeter project.You can find it here: https://github.com/bradcar/MicroPython_BMPxxxThis I2C driver...

View Article


Python • RPi 5 GPIOD problems on 4x4 button matrix

Just got my RPi 5 a little while ago and decided to try setting up a 4x4 button matrix I had from my RPi 2 I have not touched in about 7/8 years trying to get back into python. I am trying to convert...

View Article


Python • RPi 5 GPIOD problems on 4x4 button matrix [fixed]

After coming back to it a day later released I was not setting my values correctly when it was running the loop for key press.Code: import gpiodimport timechip = gpiod.Chip('gpiochip4')# Corresponding...

View Article

Python • adafruit_dht works but won't run again until i reboot

This script works from https://randomnerdtutorials.com/raspber ... 22-python/ but once you stop it, you get an error not being able to connect to GPIO4 again if you try to start the script again. How...

View Article

Python • Re: adafruit_dht works but won't run again until i reboot

It's been awhile, but I had a similar problem with a DHT22 when I first set up a weather station. I can't remember how I found the following but it may be a basis for what you need.Code:...

View Article


Python • Related to Stepper Motor control

Hi, everyone. I am a beginner in using the raspberry pi. I would like to seek for your help with the device of raspberry pi 5. I am currently using the microstepper driver to drive the stepper motor....

View Article

Python • Re: Related to Stepper Motor control

You probably don't want PULSE.on(). Based on my reading of the documentation that sets the GPIO pin fully on (i.e. no PWM waveform).Code: Pulpin = 17PULSE= PWMOutputDevice(17, initial_value = 0.5,...

View Article

Python • Python program service

I have a python program that runs just fine from Thorny. The program reads information from a BME280 sensor and outputs the information to a file.import smbus2import bme280port = 1address = 0x76bus =...

View Article


Python • Re: Python program service

What file name does your Python program have?Does it run from a terminal window with ‘python3 file.py’?Statistics: Posted by rpiMike — Tue Nov 26, 2024 3:32 pm

View Article


Image may be NSFW.
Clik here to view.

Python • Re: RRDtool & python3 code optimization

I found the solution Code: #!/bin/bashcd /home/z2/year/rrdtool=/usr/bin/rrdtoolarray=()while read line ; do array+=($line)done < <(sudo --login -u z2 python3...

View Article

Python • Infinite Loop

Hi all,I have a Raspberry Pi 3B+ and I use it to activate a .wav file when motion is detected. I want it to have an infinite loop, where it can run the "while True" part of the code again and again....

View Article

Python • Re: Infinite Loop

No offense, but you are better to ask for help on problems that you can't solve yourself. Try running the program the search for answer for any errors or incorrect behavior that occurs.Statistics:...

View Article

Image may be NSFW.
Clik here to view.

Python • Re: Working with new lirc client 0.10.1

Just wanted to thank you for this post, you sir are a gentlemen and a scholar I have used lirc on Debian Jessie and have switched to IR-keytable with evdev in python, as I had plenty of issues with...

View Article


Python • lunch venv and python scipt on startup

Hi All,I am bulding a meteo station on raspbeery pi that uses some specific library (minimal modbus, requests..etc). all those modules are installed in a virtual environment. The scripts works fine...

View Article

Python • Re: lunch venv and python scipt on startup

when running the file I have an error saying that the Modbus library is not installed.When I tried running it as bash it says that he is not able to find the script!!If you try to 'run' something and...

View Article


Python • Re: Send email from python

I give up thensomebody must know somethingcan crontab send to public email address?Statistics: Posted by kcajminer2312 — Sat Nov 30, 2024 9:28 pm

View Article

Image may be NSFW.
Clik here to view.

Python • Re: Pi 5 / RC522 / Python for RFID Reading?

works perfect is there a way to use more then 1 Reader on Pi5 with your Code?Heyy ,i have the same issue wirh it can you help me with share the solution,which clone from github you used...

View Article


Python • RFID-RC522,with PI5

Hello,im beginner in raspberry,i bought raspberry pi5 and RFID reader RC522but i tried most of the solutions on the intrenet and it wont work,and as i saw on the internet Gpio libraries isnt supported...

View Article

Python • Re: RFID-RC522,with PI5

GPIO is not needed for the rc-522. It was used to reset the reader but you don't need to reset it!Don't forget to enable the SPI.https://github.com/danjperron/MFRC522-pythonStatistics: Posted by...

View Article

Python • Toggling between two camera streams Raspberry Pi 5

Hello, I've been trying to toggle two video streams for Raspberry Pi 5 a few days now and been unsuccessful. I've found a code online that streams two cameras at once to a browser. Link:...

View Article
Browsing all 1234 articles
Browse latest View live