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.

I have a Python script (that works) set up and I want to run it automatically every time the Raspberry Pi is on.
I have read that I need to create a unit file and I have done so, but whenever I try ...

im useing raspberry pi 3 with ultrasonic sensor and normal usb camera . so i will connect the raspberry pi to AZURE IOT HUB so ive setted the ultrasonic sensor in a place so if any car pass that place ...

I am trying to send informations from Raspberry Pi 3 to Arduino Uno with bluetooth. I managed to connect the Arduino's bluetooth module with the Raspberry Pi.
But I have this error when I execute my ...

I have been trying to find a reliable method to play sound on my Pi Zero W, in Python. By default, Zero does not have audio output, but I have set up an I2S amp and speaker, following this guide: http:...

I want to make a python code for the raspberry pi, with the tesseract OCR engine, that it keeps reading text from the camera in realtime, saves in a variable, and sends output to Arduino. Is there a ...

I'm working on project, I want to display the input data which is image, text msg, video. Input data is send using an Android app over IP address of raspberry pi3. I want a program for data receiving ...

I'm trying to establish Bluetooth connection for a hc-05 Bluetooth module. When using the "serial library" to setup the connections, you can specify the baud rate using "serial.Serial("*******", baud ...

I accessed the hardware by connecting it to GPIO pins (TX-RX) and wrote a code that that could send instructions to that hardware and receive outputs from it successfully.
The first few lines of code ...

I installed Python 3.7 on my raspberry pi with the help of Installing Python 3.7.0 on Raspbian tutorial and wanted to use it to start my script which uses PyQt5 but its throwing a ModuleNotFoundError. ...

I'm working on a IoT project. The idea is basically: I have a notebook running a Python program that get frames from an IP camera, process it, and based on the result change a Raspberry Pi GPIO pin ...

I have to run some Matlab scripts on Raspberry Pi. As per my understanding, Matlab is quite heavy and cannot be installed on Raspberry Pi. Are there any other safe alternatives? My Matlab code does ...

My Raspberry Pi 3 b+ is reading by Modbus the values of an irradiation sensor, processing all the data, showing it in a plot and showing some warnings (if the irradiation ramp is higher than 5%).
I ...

Does Microsoft still support Python on the Windows IoT Core because most of Microsoft's resource no longer detail how to create python applications for the IoT Core? If Python is still supported, how ...

I have Ubuntu Core installed on a Raspberry Pi 3.
The purpose is to use the Pi as the brains of a robotic system I am building so executing Python code which interacts with the Pis' pins through GPIO ...

So, I have a project where I need to send and receive data from multiple devices (phones and a laptop) over a wifi network created by my raspberry pi. I have successfully created the wifi network by ...

I wrote a python program that boots with pi, do it's job, and shutdown pi when finished working.
It works fine, and when I'm connecting an lcd to the pi, I can know whether the pi finished shutting ...

I used a bubble level and Angle apps to verify that my MPU 6050 is actually rotated 90 degrees. Even so, my code tells me that the MPU 6050 is rotated ~75 degrees when it is in fact rotated around 90 ...

I am getting the camera feed from a camera on a Raspberry PI to the computer using a TCP socket to use it for openCV. It works well with minimal delay. However, sometimes the frame gets stuck(freeze) ...

I'm trying to use the module 'smbus' on python3. I've downloaded it - when I try to download smbus, it says that smbus is up to date and installed. However, when I try to use it, it says the module is ...

I have about 30 Python scripts that I have scheduled to run via cron. Usually, I can run cronjobs on a Raspberry Pi just fine but I usually also only do a handful only.
These scripts are essentially ...

I am trying to communicate to a UART device using Raspberry Pi (Raspberry Pi 3B with Raspbian stretch) Header pins with pyserial. I have followed all the steps mentioned in https://www.raspberrypi.org/...

I am using this Python program to log data from a serial device, and want to add a second document that logs hourly averages of the data. Anyone have an idea on how to add hourly averages?
#!/usr/bin/...