Python • Re: cls alternative
If you're going to post python you need the forum to look after lefthand whitespace, or your python code gets scrambled.Use [code][/code] tags.That makes the difference between if code-tags == "used":...
View ArticlePython • Pigpio, wave_create returning 0
Hello,I am trying to make a smooth ramp to speed and back. I have the way to create the correct durations of the square wave.When I try to make this into a waveform, things seem to work until...
View ArticlePython • Re: Pigpio, wave_create returning 0
OK, 0 is a perfectly valid wave ID. I incorrectly read that it was an error Statistics: Posted by rallenbaggett — Fri Feb 28, 2025 12:32 pm
View ArticlePython • too slow in refreshing
I have the following code to measure light intensity using a bh1750 sensor and send it to my laptop by wifi However it refreshes the reading very slowly somewhere between 7 to 9 seconds.is there...
View ArticlePython • Re: too slow in refreshing
It looks like in the html it has: Code: <meta http-equiv="refresh" content="10">So that will make it refresh every 10 seconds - make that shorter.Statistics: Posted by neilgl — Fri Feb 28, 2025...
View ArticlePython • Symptom: SOC peripheral base address error when using tm1637 package
I am trying to follow a guide (https://thingsdaq.org/2022/10/02/7-segm ... pberry-pi/) for using a 7 segment LED display, with my raspberry pi 5 and I get this error:Code: Traceback (most recent call...
View ArticlePython • Re: Symptom: SOC peripheral base address error when using tm1637...
...After doing some googling, I saw that the raspi 5 is not supported by some packages. Is that true? Is there a workaround?I am using Raspberry Pi OS based on Debian 12 Bookwormthanks in advance.Yes....
View ArticlePython • shutting Thonny up
not a python question per se, but:Does anyone know how to shut Thonny up on Windows. I find the fact that every time it opens a window (for any notification) it goes ta-bong....! deeply deeply DEEPLY...
View ArticlePython • Re: shutting Thonny up
not a python question per se, but:Does anyone know how to shut Thonny up on Windows. I find the fact that every time it opens a window (for any notification) it goes ta-bong....! deeply deeply DEEPLY...
View ArticlePython • Re: push data to webpage
Thanks for all your comments.Ive tried both suggestions and both work for me so many thanks to neilgl and hippy. Ive not come across any performance issues, if I do I'll comment here. Thanks again...
View ArticlePython • Re: Raspberry Pi 5 with RC522 |
Same problem here. Got a New Pi 5 and RC522 rfid device expecting it to work... but GPIO seems incompatible with the Pi 5.I tried installing rpi-lgpio instead, even modifying some import statements in...
View ArticlePython • Unable to locate python3-paho-mqtt
Any ideas why a Pi located in the UK finds the python3-paho-mqtt package but a Pi located in Malaysia does not?UK:Code: pi@raspberrypi:~ $ sudo apt updateHit:1 http://deb.debian.org/debian bookworm...
View ArticlePython • Re: Unable to locate python3-paho-mqtt
I guess my confusion is why you are using APT instead of PIP since this is a Python form.Searching just for "python3-paho-mqtt" reveals IMHO traditional Python sources...
View ArticlePython • picamera2 not working in venv
I dont know what is happening here, on rpi 5 I have a program that uses deepface for that it needed picamera2 library to install but when I run it I get this error :Traceback (most recent call last):...
View ArticlePython • Re: picamera2 not working in venv
When you created your venv did you do so with the --system-site-packages command line argument?Statistics: Posted by thagrol — Tue Mar 04, 2025 12:48 am
View ArticlePython • Re: The intallation for python open cv wont work
Are you running "Bookworm" on that Pi3?What error messages did you see?Statistics: Posted by neilgl — Tue Mar 04, 2025 10:05 am
View ArticlePython • Reset gpio output when test is finished
Hello I am running some Starter Kit.As an example :Code: from machine import Pin, PWMimport timepins = [13, 12, 11]#set pwmpwm0 = PWM(Pin(pins[0]))pwm1 = PWM(Pin(pins[1]))pwm2 =...
View ArticlePython • MPC3008 input.value is 0.0004885197850512668
Hi. Two week newb here trying to add Pots and Joysticks to a project.Using an MPC3008 for Analog Voltage Reading, only getting one value on any channel:0.0004885197850512668I've found that value in a...
View ArticlePython • Syntax error: positional argument follows keyword argument pymodbus
Hi, I have installed Raspberry Pi OS (64-bit) on my 4b. I installed Python3-pymodbus-3.00-7 using the "Add/Remove Software" GUI. I am trying to build a Modbus TCP server. I copied this code into...
View ArticlePython • Re: MPC3008 input.value is 0.0004885197850512668
You should only create your MCP3008 object once, then repeatedly read its value.Code: from gpiozero import MCP3008import timepot = MCP3008(0)while True: print(pot.value) time.sleep(1)Statistics:...
View Article