Python • Re: GPIO and Buzzer activation
Sounds like your buzzer module is “active low” - it makes a sound when the I/O pin is low (0V).So change your python HIGH and LOW to LOW and HIGH.Statistics: Posted by neilgl — Wed Mar 27, 2024 10:28 pm
View ArticlePython • Re: gpiod documentation
Is there any documentation for the GPIOD library.I have found a few examples on line, such as the Toms Hardware python script that turns the LED on and off.But, what I am looking for is a full list of...
View ArticlePython • Re: why is logging not correct, but print is?
From a terminal window use the following to check the running python processes:Code: ps -aef | grep pythonDid you reboot after changing your code? Programs may still be running.Statistics: Posted by...
View ArticlePython • Converting w1thermsensor outputs to variables
Code: from w1thermsensor import W1ThermSensorimport timewhile True: localtime = time.asctime( time.localtime(time.time())) print(localtime) for sensor in W1ThermSensor.get_available_sensors():...
View ArticlePython • Re: Converting w1thermsensor outputs to variables
However, I would like to be able to plot the results and have more control over the output, which sometimes prints out with multiple Decimal places.I write my results to an SQLite DB then plot using...
View ArticlePython • Re: Bookworm & Python library hell
In my case I downgraded to Debian 32 bit version, which solved matching python 3.9 version for appropriate tensorflow lite as well. Anyway if anyone interested.Statistics: Posted by bmadhekar — Sat...
View ArticlePython • control 30 servo pill deepener
I got the code work now. butt would like to add ad plug and play board to control 30 servo pill deepener?Statistics: Posted by bob5731 — Sun Mar 31, 2024 5:13 pm
View ArticlePython • Re: control 30 servo pill deepener
No, I'm not going to download your zip file.Create a GitHub account and put your code there. It will help you manage it, and will make it easy for people to see it and suggest changes.Statistics:...
View ArticlePython • Re: Script To Toggle Display Using a Physical Switch
Ah, thank you. I'll try that again:Code: import RPi.GPIO as GPIOimport subprocessimport time# Set up GPIO using BCM numberingGPIO.setmode(GPIO.BCM)# Set up GPIO pin for the switchswitch_pin =...
View ArticlePython • Re: pynput positions work in Thonny but not in Terminal python
Hi,Did you ever get to the bottom of this?I am trying to use pynput in a virtual environment. v'e installed pynput in the venv and using add remove programs.Works as expected in Thonny, but in...
View ArticlePython • Reading GPS
Hi, I'm trying to read the output of a GPS module connected to a RPi B+ via TX and RX (gpio14 and gpio15). What command should I use? I should mention I'm using Python2 and/or Python3. Statistics:...
View ArticlePython • Re: Reading GPS
Let's have a look shall we...https://raspberrypi.stackexchange.com/q ... berry-pi-bStatistics: Posted by ame — Tue Apr 02, 2024 2:31 am
View ArticlePython • PI5, Bookworm and GPIO control
HI GuysVery new to messing about with Python and GPIO - so please go gentle on me. I'm primarily a mechanical guy and struggle with software and electronics especially how the Pi GPIO's work and the...
View ArticlePython • Re: PI5, Bookworm and GPIO control
Python is totally fine for this level of control, though you could also just use the command line tools in the gpiod package if that is all you are doing.Thank you - I hadnt / didnt realise this could...
View ArticlePython • Simple stepper motor driver with acceleration setting for Rpi5
Is there a simple stepper motor driver library that has the possibility to set the acceleration of the stepper motor en with the use of a stepper driver with a direction pin and step pin. Preferably...
View ArticlePython • Re: How do I call a function if there is an error?
Using Python exceptions, 'try-except-finally' wrapper code, is what you need. Where to put those, what to wrap, what to do and how to handle program continuation, will very much depend on the...
View ArticlePython • Re: gpiozero module not working for python3.9.11
Any ideas on why the pins don't work without sudo ?I'm also running into another issue when using sudo being that running the object detection code using sudo fails to find modules like tflite-runtime...
View ArticlePython • Re: EOFError from input( )
A more recent update. I came across this post and it did exactly what I was looking for. This person used threading instead of multiprocessing to handle serial read and write separately and it worked...
View ArticlePython • Dual monitor on Pi 5
Hi,I'm completely new to RPi and have limited coding knowledge but was looking to build the following:-Using a Pi 5 a 7 inch HDMI touch monitor and a HDMI FHD monitor. I was hoping to use the 7 inch...
View ArticlePython • Re: Dual monitor on Pi 5
I think you can define the two screens to be parts of a larger desktop and position windows x,y to show where you want them,This topic may be usefulviewtopic.php?t=356767Statistics: Posted by PiGraham...
View Article