Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs.

learn more… | top users | synonyms

0
votes
1answer
37 views

Light frameworks to build a gui on the raspberry pi [on hold]

In my internship ,i am asked to make a graphical user interface on the raspberry pi in order to supervise some elements. Can you tell me about the frameworks availabe for python that are suited for ...
0
votes
0answers
17 views

Fast capture and 2D image stacking as 3D numpy array with Python and Raspberry Pi

I'm working on a Raspberry Pi project in which I need to take about 30 images per second (no movie) and stack each 2D image to a 3D array using numpy array, without saving each 2D capture as a file ...
1
vote
0answers
6 views

How do I program Python so that it outputs to all terminals in Linux [migrated]

I am programming a python program for the raspberry pi. Is there a way for me so that when the raspberry pi outputs text, it will show up on all terminals that are currently remotely logged in via ...
0
votes
0answers
22 views

PyGame GUI or X server [on hold]

Witch one would be faster, choosing some PyGame GUI package (http://www.pygame.org/wiki/gui) or using that guys solution -> Run a GUI without the desktop with WxPython application as the one started ...
0
votes
1answer
13 views

Access the display from a python app running as a service

Problem: The code below can't access the display when running as a service. I have my raspi hooked up to a touch screen monitor in the kitchen and I've attached a Passive Infrared sensor to the ...
1
vote
1answer
49 views

WiringPi: using interrupts with Python

I want my RaspberryPi to perform some actions when the light in a room is switched on or off. To do so, I connected a photocell to the GPIO pins. Previously, I used some python 3 program that queried ...
1
vote
2answers
14 views

Issue with python subprocess

I'm having some trouble with some code I'm working on. It should be obvious as to what it does in the code. Here is the python code I have: import RPi.GPIO as gpio import subprocess ...
1
vote
2answers
62 views

Script works on laptop, but not on PI

I have a streaming server / motion detection script that works on my laptop, but when I move it to my PI it gives the following error when i try and access the stream: my laptop ip address - - ...
1
vote
0answers
31 views

Can we use usb webcam with picamera?

Is it possible to use a usb webcam instead of raspberry pi camera module for picamera? If yes how?
0
votes
0answers
9 views

Using GPIO pins as switch [closed]

I just bought a 12VDC solenoid style lock, and I have it wired to a breadboard with a switch, but I wanted to know how I would wire it to my Pi to use the Pi as a switch with Python. Are there any ...
0
votes
1answer
15 views

send gpio commands from rpi python script to another rpi

it is possible to control the Gpio of a raspberry pi connected by WiFi by another raspberry pi by a python script? I need to Connect\disconect some electric loads of my house switchboard, controled by ...
2
votes
1answer
83 views

Importing RPi.GPIO

I am just writing some code for a Raspberry Pi robotics project. Since I don't have a Pi set up as a workstation, I am using a Google Drive notepad to do write it in, which recognises Python syntax ...
1
vote
1answer
42 views

Switching between TV's displaying OSMC on Raspberry Pi through Mobile Apllication

Description : I am trying to make a remote controller for OSMC(Kodi) media player installed on Raspberry pi. Rpi will connected to mobile app through wifi. On the other hand Rpi is connected to switch ...
1
vote
1answer
33 views

raspberry pi 2 raspicam auto start problem

I write a python program opencv and python. also I'm using raspicam and I want using my python program without keyboard and mouse. Of course auto run mode. I tried two ways like below and I can't find ...
0
votes
1answer
26 views

MCP3008 returns sinusoidal values

Alright, I have to start off with the fact I'm a n00b. So there's a good chance I'm screwing something up. I've got an MCP3008 10-bit ADC hooked up to my Raspberry Pi B+ via a Cobbler. Here are the ...
0
votes
1answer
34 views

How to use E18-D50NK on a Raspberry Pi?

I have one question . I want to try out a sensor called E18-D50NK, which is a infrared proximity sensor, for obstacle avoidance. More details and information about this sensor can be found here : ...
2
votes
1answer
26 views

OpenCV cv2.VideoCapture(0) is not working well with webcam

I am trying to use a USB webcam for a computer vision project that outputs the diminations of moving object. I installed openCV and tried my python code which it worked perfect on my PC, but when I ...
1
vote
1answer
54 views

How to send data using raspberry pi's 3.5mm audio jack?

Does any one know of any projects that are doing this? Whether or not it's even possible? EDIT: I want to send the data from RPi to the device connected on other end. My primary goal is to control ...
2
votes
2answers
77 views

Why are some GPIO pins HIGH when the Raspbeery Pi boots up

I have an easy circuit wired up, with a LED connected to pin 18 on the BOARD reference. I run a simple program to put pin 18 to HIGH, which turns the LED on, and then a couple of seconds later, I set ...
0
votes
1answer
39 views

Need help creating a python script to access an HTU21D

I have a Raspberry PI 2 and I am having a hard time getting any scripts that work to read the HTU21D-F. This the errors I am getting. Traceback (most recent call last): File ...
0
votes
0answers
33 views

how to kill a python programs using another python program on raspberry? [closed]

i am using 2 python programs with rc.local for my raspberry, first program is my main program and the other is the second program. The second program is shutdown the raspberry, but when i do the ...
0
votes
1answer
47 views

Raspberry pi with python speech_recognition having error

I have a raspberry pi model B, running speech_recognition 4.1 and pyaudio 0.2.8, and I am using a Logitech usb mincrophone. When I try and start speech recognition using with sr.Microphone() as ...
0
votes
1answer
35 views

Error when running pyaudio test file

I am using a raspberry pi model B with a Logitech USB Microphone, and I have python version 2.7.3 and a new install of pyaudio version 0.2.8. When I try and run the record.py file located in the test ...
2
votes
3answers
109 views

Is my code too intensive on the cpu?

I am currently building a remote controlled car with the RPi model A+. I am using pygame to run a continuous loop to check the states of the desired keys on the keyboard(w,a,s,d) and based on that run ...
0
votes
1answer
52 views

How to query GPIO's value?

I am using raspberry pi B+ board. I have joined up an infrared sensor to GPIO 12. I want to use python to query this value, but I am getting "none" instead of a value. This is the code I am using: ...
0
votes
0answers
14 views

Kivy on_touch_* is always (400,240)

I am using the Adafruit AR1100 touchscreen. whenever I launch my kivy app (or any of the kivy demo apps) it always returns (400,240) as the (x,y) coordinates of all mouse events even though if I run ...
0
votes
1answer
73 views

Safe shutdown button not working

I used the method described here and here , which is a python script based on interrupts, to enable safe shutdown via push-button press. These are the steps in short: 1- sudo nano test.py 2- and ...
0
votes
1answer
11 views

OS is hanging after a cat of a file (DS18B20 probe) — How can Python break out of the hang?

A python script on my RPi reads the temperature from a DS18B20 probe located at /sys/bus/w1/devices/<probe id>/w1_slave. Right now the program is hanging at the line to read the file: with ...
0
votes
0answers
10 views

Can I use a Display-o-tron and a ENER314 Raspberry Pi RF-Transmitter board on the same pins at the same time? [duplicate]

I have both boards and I want to write a program to display info on the display-o-tron and control the Pimote Raspberry Pi RF-Transmitter board. links to both boards here ...
0
votes
0answers
50 views

2 scripts need every frame from NOIR camera board at same time

I have two opencv2/Python scripts running at the same time on the same Raspberry PI. A streaming server script based on this, that outputs a live camera feed to the web a motion detection script, ...
1
vote
1answer
24 views

System cron jobs are not running

I am giving using the following command in my /etc/crontab 38 05 * * * root /opt/liab-ap/purge.py -psupport --config /opt/liab-ap/liab-ap.cfg "/data/liab-ap/$(date --date '365 days ago' '+%Y%m')" ...
0
votes
1answer
42 views

How to install python 3.4 on pidora [closed]

I recently changed to pidora as my pi operating system. Then I lost the WiFi adapter and my router is downstairs. I downloaded and extracted the python download from python.org but the instructions ...
1
vote
0answers
69 views

Controlling a fan on a relay with python

I have a Raspberry pi Model B revision 2 and I've set up a mini 5v fan on a relay switch which i want to control with python now. I will be running a crontab every hour to check the temperature of the ...
2
votes
1answer
78 views

Raspberry Model B rev2 - fan controlled by relay [duplicate]

Following up from this thread : Raspberry pi Model B - Control a mini fan I found a relay switch that I had laying around... so I thought since I can control the relay with python, then why not ...
1
vote
0answers
8 views

get playing wav audio level as output [migrated]

I want to make a speaking mouth which moves or emits light or something when a playing wav file emits sound. So I need to detect when a wav file is speaking or when it is in a silence between words. ...
1
vote
0answers
34 views

Asynchronous Socket Server and UART integration problem [closed]

I'm developing a raspberry pi socket server that when receiving the data it sends it to UART and when receiving a data from UART it sends to the server via sockets using python . It's like Raspy ...
0
votes
0answers
30 views

ImportError: no module named zbar

I'm trying to use both ZBar and OpenCV to read QR codes from the Pi. Right now, the way I am attempting to run my program from the console is as follows: ~ $ source ~/.profile ~ $ workon cv ~ $ ...
0
votes
1answer
63 views

Off logic with Pi and Picamera using GPIO

Just trying to customize some Picamera functionality though this is my first time coding in Python. Basically I am using the GPIO with a button switch to essentially turn just the preview on and off. ...
0
votes
1answer
18 views

Cant get RASPI pin to toggle

Hi I am testing my new raspi pins . with the following code am able to toggle all the ports except LED3 ..pin 16 . Is their a method to identify if the pin itself i broker or not import RPi.GPIO ...
0
votes
1answer
56 views

GPIO.cleanup() on RPi2

To make a long story short I am trying to read frequency on the RPi2's GPIO pins. The goal eventually would be to use this frequency signal to control a PyGame platformer that I have created. However ...
0
votes
1answer
58 views

Raspberry Pi RFID interfacing

I am trying to interface my raspberry pi to a RFID reader, to make an library management system. I have brought a RFID reader whose data sheet can be found here. I have found a python program which ...
0
votes
1answer
50 views

Idle Can't Bind to Ports

I have been trying to learn python on my raspberry pi. For some reason my Idle program wont run with subprocesses. When I try to launch it from the menu, I get this error message: To launch it I ...
0
votes
1answer
54 views

Auto Start a .py file with LXTerminal

I want to start a .py file after booting with LXTerminal. I'm using raspbian OS I try these steps: I edited sudo nano /etc/xdg/lxsession/LXDE-pi/autostart with @lxterminal and this is open ...
0
votes
1answer
46 views

Python as web server cgi and request response cycle

I am new to python and I am trying to design a mobile app with a web server on a raspberry pi. I decided to write the server code using python because I want to control some pins and write on the ...
0
votes
1answer
51 views

Momentary switch as GPIO input - Trouble with code and bouncing/floating

Update So this is now the code I'm running. It now works but is bouncing/floating. - I believe this can be controlled within the code itself by looking for an edge value as opposed to a high or low, ...
0
votes
1answer
37 views

OTA Update of Multiple Raspberry Pi's

I have 4 Raspberry Pi compute modules, running at different locations and I would like to run a script from the server that would connect and update the pi's with the latest version of the file found ...
1
vote
0answers
81 views

kernel Disabling IRQ #49

I am using the RPi_GPIO library in a python shell to read a raw wireless signal using the wait_for_edge() function in a loop like so: while True: GPIO.wait_for_edge(26, GPIO.RISING) print 'R' ...
0
votes
0answers
64 views

Singular access to the NOIR board from a server and a motion script

I am using the raspberry pi NOIR board to supply a Python motion detection script. This "motion detection script" uses opencv2 to grab, modify and detect motion. I wanted to extend the motion ...
0
votes
0answers
24 views

IRW does not show any thing

I want to use an infrared remote control. I'm using an infrared diode tsop38238. first I disabled the device tree because mode2 did not work at the beginning. After disabling I recorded my remote ...
0
votes
1answer
68 views

Pub/Sub between computer and Raspberry Pi

So I am using the python bindings for ZeroMQ in an attempt to send messages to several raspberry pis on a network for an art project. The issue is that I am not receiving any messages on the raspberry ...