Quantcast
Browsing all 1234 articles
Browse latest View live

Python • Re: RPI Servo

Then create two servos object. This is quite simple. Next will be to figure out how your speak recognition will access them individually or together.I'm using the echo dot with an old python code...

View Article


Python • Using numpy to create a sine wave with complete cycles

I'm using numpy to create a sine wave sample. I would like to have the script truncated to the nearest full (or half) cycle. How would I calculate that, or otherwise trim the sample so that it ends at...

View Article


Python • Re: Issues building numpy wheel

Hi,I’m following the installation instructions for this project: https://github.com/dbieber/GoNoteGo/blo ... llation.mdFollowing on from previous advice this project is built for pi os buster python...

View Article

Python • Sound not working when programming using Python over SSH on...

I have a weird problem where the Sound will play when using Python over VNC using Thonny but not when using SSH and Python through VSCODE. Has anyone experienced this. Im assuming there is permission...

View Article

Python • Re: Using numpy to create a sine wave with complete cycles

If D = total duration and f = wave frequency, then 2 * f * D must be some integer k.If k is even, the sound will end on a full cycle.If k is odd, the sound will end on a half-cycle.Note that a A4 tone...

View Article


Image may be NSFW.
Clik here to view.

Python • Re: very noisy SoC temperature measurement (RPi5)

Having ascertained that a Raspberry Pi's SoC temperature reporting has noise, what are you going to do with it?I've written a daemon in C that does some filtering on the fly and spits data in a file...

View Article

Image may be NSFW.
Clik here to view.

Python • Can't run my tflite model

Can someone help me. Im stuckStatistics: Posted by Rynch — Sun Feb 11, 2024 10:36 am

View Article

Python • Re: Can't run my tflite model

Excuse me but you might help your readers by coping and pasting horror massages to the forumScreenshots are very difficult to read, impossible for me.If you give the underlying code, info might be...

View Article


Python • Raspberry pi 5 interanl pull up resistor

What command to use with raspberry pi 5 to activate internal pull up resistor between GPIO.Statistics: Posted by Zerobite — Mon Feb 12, 2024 3:05 am

View Article


Python • Re: [SOLVED for now] Issue with pygame.display.update(bx, by, bw,...

Hi,I face similar issues with an older JoyIt display (TFT 3.2) touch display.My setup is as follows: Raspberry Pi 4 with latest OS 64bit light installed. Respective drivers for the TFT installed and...

View Article

Python • Can’t control servo motor with Raspberry Pi 5

I’ve just recently bought my first Raspberry Pi and opted for a Pi 5 as it was the latest.I’ve had no luck getting gpiozero or gpiod working with Python and my MG996R servos yet.I don’t mind if it’s...

View Article

Python • Freenove ADCDevice Python Module Not Working

I bought the Freenove RFID starter kit, and followed the Python GPIOZero guide to the part where they explain ADC. Note that the ADC device they provide is the ADS7830. I downloaded the module, wired...

View Article

Python • Re: Raspberry pi 5 interanl pull up resistor

Have a look at the built in pinctrl command e.g. Code: pinctrl set 10 pu Enable GPIO10 ~50k in-pad pull up pinctrl set 10 pd Enable GPIO10 ~50k in-pad pull downor use gpiozero in python and the...

View Article


Python • Re: Is Python the best choice, instead of C or C#?

If you have experience in C# development,I should like to recommend FreePascal/Lazarus for RaspberryPi.Python is not best choise for GUI Application development.You can create a simple GUI using...

View Article

Python • Re: Freenove ADCDevice Python Module Not Working

I bought the Freenove RFID starter kit, and followed the Python GPIOZero guide to the part where they explain ADC. Note that the ADC device they provide is the ADS7830. I downloaded the module, wired...

View Article


Python • Concurrent Processing Problem

I am working on a project in which I need 3 stepper motors running at the same time at different speeds. If tried asyncio and threading without much success. From what I've read, concurrent futures is...

View Article

Python • Re: Concurrent Processing Problem

Same error like the last try:Code: exe.submit(Step(1,300,0.001,'b'))This submits the Return Value of the function Step(). First the function is called, then the result is given as Argument to...

View Article


Python • Re: ModuleNotFoundError: No module named 'cv2'ModuleNotFoundError:...

I fixed the problem using:https://www.youtube.com/watch?v=meeKv3DY9ps&t=212sThanks for all the suggestions!Statistics: Posted by Marineman — Mon Feb 19, 2024 1:34 am

View Article

Python • Importing variables from module

Hello experts,I am learning python.My question: I am trying to import string variables from separate module to avoid retyping the same strings in each module where they are used. (I am using Pydroid...

View Article

Python • Re: Importing variables from module

Excuse me but have you thoght of google searching "Importing variables from module stackoverflow" It bought me https://stackoverflow.com/questions/429 ... her-module and...

View Article
Browsing all 1234 articles
Browse latest View live