Quantcast
Browsing all 1234 articles
Browse latest View live

Python • gpiozero module not working for python3.9.11

Hi everyone. I recently installed python 3.9.11 on my system using pyenv. However when I try to run the following code : Code: from gpiozero import AngularServofrom gpiozero.tools import...

View Article


Python • Re: gpiozero module not working for python3.9.11

What system is it? Raspberry Pi OS Bookworm 64-bit with desktop on a Pi5 or something else?Statistics: Posted by neilgl — Thu Mar 21, 2024 10:27 am

View Article


Python • Re: RPi.GPIO on Pi5

Another great option, which I just came across a few days ago is rpi-lgpio, which is a drop-in replacement for RPi.GPIO except that it runs on the Pi 5.Statistics: Posted by makermelissa — Thu Mar 21,...

View Article

Python • Pygame display freezes during button press

Hello, I am new to this forum so I hope I am putting this topic in the correct category. I am currently working on a project in which an image of a drawing is captured, the background is subtracted...

View Article

Python • Re: Pygame display freezes during button press

Have you tried setting a break point then stepping through one line at a time in the debugger to see where the delay occurs?Statistics: Posted by DS256 — Fri Mar 22, 2024 10:51 am

View Article


Python • Python, SQlite and DBeaver

Hi,I'm on an RPI4 where I run a 32 Probe Temperature Control System. Also on that RPI, I run an SQLite DB, and it is my intention to install a more advanced GUI for this, other than DB Browser. I was...

View Article

Python • Raspberry Pi pill dispenser using servos 30

L'm new to py coding.So if you and help a upload the py and html file as a zip would help I'm using https://chat.openai.com/ to make code for my pill dispenserI add the html as a zipI the to button...

View Article

Python • Re: Python, SQlite and DBeaver

SQLite is just fine as a database. The resources of the Pi will likely run out long before the database reaches its maximum capacity.DBBrowser and DBBeaver are tools to help developing and maintain...

View Article


Python • Re: Raspberry Pi pill dispenser using servos 30

I'm using https://chat.openai.com/ to make code for my pill dispenserI add the html as a zipYou won't learn anything by getting your code crafted by AI. Write it yourself from scratch (like the rest...

View Article


Python • Guizero on Raspberry Pi not working

Im trying to install guizero onto a raspberry pi and it downloaded fine but when I try to run a program using it there is a syntax error in one of the files. Ive tried changing/removing the file...

View Article

Python • Re: Guizero on Raspberry Pi not working

Which model Pi?Which OS + version?Post full error message.Also command you tried to delete files + error message...Statistics: Posted by DirkS — Sat Mar 23, 2024 5:24 pm

View Article

Image may be NSFW.
Clik here to view.

Python • Installing luma for a rubiks cube solver.

We're building https://www.thingiverse.com/thing:3826740installed the software https://github.com/DrVoHo/Rubik_solver and then got several problems. First the camera. we had to change PiCamera to...

View Article

Python • Re: Installing luma for a rubiks cube solver.

If you are using Bookworm, it has changed a bit so we now need to create a virtual environment (venv) to install python packages with pip.See https://www.raspberrypi.com/documentat ... spberry-piLike...

View Article


Image may be NSFW.
Clik here to view.

Python • How do you create a color layer mask that have mid-tones

I would like to improve the layer mask that I am creating in Python. Although my mask pretty much hits the targeted color, my main problem with it, is it is doing so in binary, the pixel is either...

View Article

Python • Re: How do you create a color layer mask that have mid-tones

You'll probably get more relevant answers for that here https://forum.opencv.org/ or here https://numpy.org/community/GIMP is open source and has the same type of functionality, so maybe you can also...

View Article


Python • Trouble Adapting Pygame Code for Portrait Mode

Hello everyone,I'm currently working on a project involving a Raspberry Pi and Pygame for a touchscreen interface. I've encountered a challenge while trying to adapt my code to function properly in...

View Article

Python • Re: Raspberry Pi 5 - gpiod vs RPi.GPIO

I tried everything, even with different bookstores and trying to install everything, and the only thing that worked for me was the gpiod.https://www.tomshardware.com/how-to/con ... h-python-3one way...

View Article


Image may be NSFW.
Clik here to view.

Python • Clock/Calendar Using SH1106 128x64 Pixel I2C OLED Display

This Python script provides the following features...-A large 24-hour clock spaced to fill the entire display width-A day of the week 3-letter alias followed by zero-suppressed day number and month...

View Article

Python • Re: Clock/Calendar Using SH1106 128x64 Pixel I2C OLED Display

Code: draw.text((-2, 17), (timeH), font=FontTime, fill="white")draw.text((49, 11), (":"), font=FontTime, fill="white")draw.text((70, 17), (timeM), font=FontTime, fill="white")y is different, as you...

View Article

Python • GPIO and Buzzer activation

I'm working on a python code to make an access control by RFID and it is working very well. Now I have the final implementation with a buzzer to make a short sound when the RFID tag is detected. I...

View Article
Browsing all 1234 articles
Browse latest View live