Questions tagged [python]

Python is a general-purpose, dynamically typed, object-oriented high-level programming language. Interpreters for versions 3.x and 2.x come installed on the Raspberry Pi's most popular operating system distributions.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

How to connect a wireless barcode scanner in raspberry pi?

I would like to know how the wireless scanner connect to raspberry pi, I am a college student and I am creating inventory system for my project and I am using a visual studio for the inventory system. ...
0
votes
0answers
17 views

llvm version 11 and librosa error

Best regards i need to download librosa to raspberry pi so first of all i downloaded virtualenv and created environment and installed llvm with: sudo apt-get install llvm pip3 install llvmlite==0.37 ...
0
votes
1answer
17 views

Raspberry PI 3 mariaDB and python issue with expanding columns

I am having an issue that I don't really have programming experience to resolve. I have an application that deploys an SQL table that may have more or less columns depending on user input. I am ...
0
votes
0answers
14 views

Issue With Windows Remote Desktop & Launching Python Application XRDP

Hey guys I am using XRDP with remote desktop. I am having no issues connecting or using the cmd prompt among other things. However I am working on a pyqt5 python application. When I launch it from the ...
0
votes
0answers
10 views

Read from analog sensor through spi from ProcessPoolExecutor

I'm working on a project in which i need to record sensor (current sensor) readings every second, and store these records into JSON file, Also make some calculation on a bunch of data that has been ...
0
votes
1answer
39 views

USB GPS dongle doesn't return consecutive GSP traces

I used this USB GPS dongle to retrieve GPS traces of user's trip. Device configuration is successful. pi@raspberrypi:~ $ cgps -s ┌───────────────────────────────────────────┐┌──────────────────Seen 17/...
0
votes
0answers
18 views

Raspberry Pi 4B turns into Black Screen randomly with SSH working fine

I'm working on a project use Raspberry Pi 4B with Raspbian OS. It runs a python script to display readings from an external USB hardware everyday from morning to night. I'm pretty new to raspberry pi ...
0
votes
0answers
14 views

control Grove - RGB LED Ring/stick

Does someone have an idea how to control Grove - RGB LED Ring (20 - WS2813 Mini) or Grove - RGB LED Stick (10 - WS2813 Mini) with Raspberry Pi 4, GrovePi and Python?
0
votes
1answer
23 views

Viewing the captured content of the webcam live

How can I view the captured content of my webcam on Linux/Raspberry? I dont want to share it, only view the content live on my monitor. On windows Logitech has an official program where I can preview ...
0
votes
1answer
88 views

Camera only working with deprecated legacy option

I have a camera module connected to my Pi 3B+. I have downloaded the very latest raspberry Pi OS (called bullseye) which does not support the old. legacy camera stack. You don't even have to enable ...
0
votes
0answers
25 views

Input Number and output a number of pulses

I own a mobile home park. I have water meters that have remote displays. I find myself constantly needing to change the values of the display. It takes forever to roll the wheel by hand, so I want to ...
0
votes
1answer
32 views

Raspberry Pi, how can i turn bluetooth on and off over Python script?

i want to play either a sound, which is saved on my raspberry pi as a MP3 file or send a song from my phone over bluetooth to my Pi. So i found out, that if i run a song over bluetooth and play one ...
0
votes
0answers
12 views

Regular webcam vs Camera Module V2?

I have Raspberry v2. I would like to enlarge the screen of a Liquid-crystal display, like this: The camera would stay in a fix position recording the screen and display it on a monitor bigger. It ...
1
vote
0answers
26 views

why won't my raspberry pi python program run at boot up? [duplicate]

i have recently bought a raspberry pi 4 module b to be able to run programs 24/7. but sometimes my power/electricity can go out at which then makes the program stop working. i tested my program in the ...
0
votes
0answers
16 views

DFRobot_RGB1602 library does not work properly with DFRobot DFR0554 and Raspberry Pi Pico

Problem summary: set_cursor(0,0) brings text to (2,1) and set_cursor(0,1) brings text to (3,1), texts goes to imaginary 3rd line before 2nd line as if a 20x4 display. I modified the Python code to ...
1
vote
1answer
115 views

How can I open a connection to my Raspberry Pi over Bluetooth without having to pair?

I'm extremely new to Raspberry Pi and Bluetooth in general and have been having some trouble and confusion connecting between my computer and Pi programmatically. I'm trying to open a Bluetooth ...
1
vote
3answers
42 views

Constant 3V3 to GPIO output behavior

I am new to circuit design, and I have some questions about a circuit I'm seeing in a raspberry pi starter kit. I think my questions is elementary, but I am having trouble finding an answer due to my ...
0
votes
2answers
30 views

Keeping a Python script for PWM running and just changing duty cycle

I am currently trying to connect a laser to my 3D printer and give a TTL signal manipulated by an M106 command. The "official" way didn't work out for me so right now I am trying to control ...
0
votes
1answer
42 views

Micro Switch code implementation

I'm working on a production counter that would count the material as it would hit the switch and that would be counted as 1. The issue I am having is that the code I wrote is not doing anything when I ...
0
votes
0answers
37 views

Power requirements for water flow controller project [closed]

I am planning a project to start a pump when level in a tank goes low and measure the flow as the pump fills the tank. Conversely, when the level in the tank goes high, the pump is to be stopped. This ...
0
votes
0answers
28 views

Can i Transfer Data from one raspberry pi to another over i2c? [duplicate]

Hi, i have following Problem: I have A raspberry Pi 3B+ with a Touchscreen, which uses every Single Pin on the 40Pin GPIO header. The only thing i have is a i2c breakout on my Touchscreen. But i have ...
0
votes
1answer
72 views

How can i set up my owm serial communication between two Raspberrys?

i have following Problem: I have A raspberry Pi 3B+ with a Touchscreen, which uses every Single Pin on the 40Pin GPIO header. The only thing i have is a i2c breakout on my Touchscreen. But i have the ...
2
votes
1answer
98 views

BlueZ receive Bluetooth sensor information

Good afternoon, First of all I apologize for asking questions in this thread but this is my first time writing on StackExchange. I am doing a university work where it is necessary through a Raspberry ...
0
votes
0answers
58 views

AC current measurement with ACS712 and Python

I'm currently trying to program my ACS712 5a current sensor to my Raspberry Pi. At the moment I have hooked up my current sensor via ADC (ADS1115) to the Raspberry Pi 4. ADC seems to read the ...
0
votes
0answers
25 views

Scapy python module isn't working and other solutions won't work on raspberry pi

when I run anyu python using scapy fully updated it does this: Traceback (most recent call last): File "/home/pi/pentest/NetScan/netscan.py", line 36, in <module> from scapy.all ...
0
votes
1answer
21 views

How to handle different 'input events' in a Raspberry pi with python

I have a program for detecting motion in raspberry zero but I need to also have the capability to react when a button is pressed. But I can't. Can someone give me lights what should I do? The thing is ...
1
vote
0answers
35 views

MCP23008 Python Input Handler

How do I declare a Python callback handler method on a MCP23008 input pin? This Adafruit tutorial, which uses CircuitPython shows how to read input from the extended GPIO pin on the MCP23008, but does ...
0
votes
1answer
57 views

Micro Switch implementation in Raspberry pi

I am a beginner using a raspberry pi 1 model A+ to create a production counter that would count the material as it would hit the switch and that would be counted as 1. The issue I am having is that I ...
1
vote
1answer
32 views

Raspberry Pi HQ camera exposure time jumps at 1 second

I am trying to build a timelapsing program in python, which analyzes the picture and determins the exposure, based on which it corrects it's shutter speed using a polynomial regression. But I got ...
0
votes
1answer
34 views

Permissions issue using hard drive [closed]

I am new to using raspberry pi. I've wrote a script in python that takes images and stores them in a connected hard drive, in a directory that is created by the script. When trying to open the files ...
0
votes
2answers
53 views

Any way to get sudo privleges without opening a command line in raspian? [closed]

Right now to get python scripts to run with user privleges in thonny with typing in this command from the command line: sudo thonny I can't close the command window without it closing thonny also Is ...
0
votes
1answer
60 views

Adafruit ADS1x15 library - I2C Bus error even though I2C is enabled

I am developing a program for a client using the Adafruit ADS1x15 library to use an ADS1115 module on the Raspberry Pi. This is the relevant part of the code where the error is occurring: import RPi....
0
votes
1answer
40 views

Import problem with ADS1115 on rpi

Im currently trying to set up an ADC (ADS1115) and trying to test it so everything works. Ive used a code from github (link provided at the end) and watched several youtube videos about how to set it ...
0
votes
1answer
51 views

Raspberry Pi Python Script stops after some hours [closed]

i've read that it is a common issue, that some python scripts stops after about 3 hours. i have the same problem with mine. it is a script, that ligths up a LED strip like a fire. Unfortunately i'm ...
0
votes
0answers
35 views

Using python socket with raspberrypi.local as ip

I have a raspberrypi zero 1.3 and am connecting to it by enabling local ssh as instructed here and using raspberrypi.local as the ip to connect with using putty and winscp. I would like to connect to ...
0
votes
0answers
37 views

How to setup GPIO on a Flask production server?

I am coding a web application with Flask and I come across with a problem where I cannot setup my gpios on my public production server. It throw an error 500 Internal server error. I've realized ...
1
vote
0answers
39 views

Brushless Motor not spinning when controlling with PWM and ESC

I'm currently working on a drone which is controlled by a Raspberry Pi. I try to controll the motors by using PWM on the connected ESCs, which is described in many guides and forums. For that I use ...
0
votes
1answer
28 views

Mqtt driven python servers not working when launched by crontab -e / @reboot

I have programmed in Python several mqtt driven servers on a Raspberry Pi W (with Buster) to execute a set of commands when receiving a given set of mqtt messages from the mqtt broker (after ...
1
vote
0answers
18 views

How to combine ssmtp with License Plate Recognition on Python and Sudo Nano

I need help with combining ssmtp on both python and Sudo nano for my Raspberry Pi 4 Model B, as I have setup the ssmtp for Raspberry Pi with the codes below: sudo apt-get install ssmtp sudo nano /etc/...
0
votes
0answers
32 views

Need help overlaying an application window over camera screen

I made a python code where it will launch the pi camera and I can use buttons to record a video for 30 seconds or take pictures. In this python code, I mixed in another python script where I can ...
0
votes
1answer
46 views

Installing openCV: Bash cmake command not found

I get an error return from typing the codes below: cmake -D CMAKE_BUILD_TYPE=RELEASE \ > -D CMAKE_INSTALL_PREFIX=/usr/local \ > -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ > -D ...
0
votes
1answer
37 views

License Plate Recognition System: Error writing /etc/ssmtp/ssmtp.conf smpt: No such file or directory

I faced an error which is Error writing /etc/ssmtp/ssmtp.conf smpt: No such file or directory, when typing root=postman mailhub=smpt.gmail.com:587 AuthUser=youremail@gmail.com AuthPass=...
0
votes
0answers
23 views

License Plate recognition System pip install pytesseract error

I have an error when entering the pip install pytesseract command, here is the tutorial of the project that I am working on: https://iotdesignpro.com/projects/real-time-license-plate-recognition-using-...
-2
votes
1answer
35 views

License Plate Recognition System dpkg: error need an action option

I faced an error which is dpkg: error need an action option, when typing sudo dpkg - -configure –a into the raspberry pi based on this tutorial https://iotdesignpro.com/projects/real-time-license-...
0
votes
0answers
19 views

How to code for a raspberry Pi in windows? [duplicate]

I know this question has been asked before, but I couldnt find any way for pycharm... I want to code on my windows pc with librarys which are only available for the raspberry pi and deploy it ...
0
votes
2answers
19 views

Python script runs in rc.local, but won't save file, Works from command line

I have a python script that saves values from a MPU6050 sensor to a csv, and then zips the file. When I run it from Thonny or direct from the command line, it works. When I run from rc.local at ...
1
vote
0answers
78 views

Communication between Pico and PC over USB with Circuit Python

How do i send text/json or bytes data over USB cable from my PC to Raspberry Pi Pico using Circuit Python. I tried to do that using a text file and then editing it from PC but it was taking over 1 ...
-2
votes
1answer
35 views

GPIO Runtime Error with cron script at reboot

On my Pi I am using cron to run a shell script, which in turn runs a python script on startup using the @reboot flag. This python script sets up a GPIO pin to listen for a button push, and for some ...
0
votes
0answers
30 views

RPi Zero W Python Threading.Timer Problem in crontab

t = threading.Timer(20, function=callback_func, args=[]) t.start() The above code is designed to call the callback function after 20 seconds and the callback function sets a global variable. This ...
1
vote
0answers
32 views

How to make analog servo power off with code?

I'm writing a sample code for my pi zero w and I have an analog servo motor (FS9225M) What I'm trying to do is make it work for a few spins then deactivate it so that I can move it manually with my ...

1
2 3 4 5
61