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
0answers
5 views

PyAudio recording/capturing and stop/terminate in Python on Raspi [migrated]

I am not an expert of Python, trying to capture/record the Audio by USB audio device. It is working fine on command terminal. But I want to make a program which just recording audio and stop when I ...
0
votes
0answers
7 views

IOError: [Errno Input overflowed] -9981 [migrated]

I am trying to execute a PyAudio python capturing program on Rasbian in my RaspberryPi model B board, but getting error: Traceback (most recent call last): File "/home/pi/pythonsound/record.py", ...
0
votes
0answers
6 views

Add recoding duration with pyaudio in Python [migrated]

I am writing a program in Python, to create and record audio file by using pyaudio. Audio file creation is done successfully but in recording, i am facing trouble because it is capturing nothing. ...
0
votes
1answer
27 views

ImportError No module named utils

I am trying to run a program in python on RaspberryPi from stackexchange but getting an error ImportError: No module named utils Can you please help me resolve this issue? import pyaudio, wave, ...
0
votes
0answers
15 views

snmpd pass_persist dont work [closed]

i want extend snmpd by python script and pass_persist protocol ... this is my python script : #!/usr/bin/python -u '''This is a python backend for snmp's "pass_persist" function. It is critical that ...
1
vote
0answers
25 views

I2C PIC18F2520 and PI

I am having a big problem to communicate a PI with PIC using I2C. When I try to use another PIC as master everything works fine, no problem. But swtich to PI I cant get it to work. To start my both ...
1
vote
2answers
48 views

what is resistance of the GPIO outputs

I am building a simple resistor / capacitor in series (RC) circuit to measure resistance with my RPi A+. RC Design This design is similar to the one used in this tutorial as suggest on this post. ...
-2
votes
1answer
36 views

Sending continuous data to raspberry pi over network

I'm pretty new to this website. so I'll do my best to explain everything clearly. If any elaboration is needed, please tell me. I'm also doing my best to avoid this "X-Y Problem" I hear of so often, ...
1
vote
0answers
5 views

arecord until sound level drops low enough [migrated]

I am trying to implement constant voice recognition on my pi at the moment, I am achieving this by having two threads running, one constantly recording (with ARECORD in a bash script) for X amount of ...
1
vote
0answers
33 views

Reset Pi Noir Camera

I have developed a system (Raspbian / Python) with detects someone's presence through a PIR sensor and records a 15' video with a Pi NoIR camera. This is command I call to record the video: ...
0
votes
0answers
26 views

Web based IR/RF device control over long range

I am trying to implement a Building Automation System where I would like to implement web-based or mobile based control of all ir/rf based devices like tv,a/c,sound system, etc. The PI will be placed ...
1
vote
0answers
31 views

Getting a Runtime warning and a Traceback warning

First of all let me introduce the problem. I am busy working on a HC SR04 + servo combination to measure the distance in certain angles. But lately some weird errors are coming up. The script( which i ...
0
votes
0answers
27 views

Raspberry pi sound level

I had this project of smoke detection.. so the smoke detector when it detects smoke will output a sound with a volume of 80dB, How can I measure dB using the raspberry pi and a USB microphone?
1
vote
2answers
29 views

Broken pipe when SSH using Mac OS X

From my mac I SSH into my raspberry pi to run a python script to take videos of 30min. I have eight raspberry pi's that are formatted in exactly the same way. All works fine only that every 1 in 2 ...
0
votes
0answers
22 views

Minecraft Pi Programming

I've got a Raspberry Pi running Raspbian, and I came across a Minecraft programming page on the Pi website. I'm pretty sure I did everything they said, but I got an error about "mopi." First off, do ...
0
votes
2answers
35 views

PiCamera not Working

For starting the camera I am doing >>> import picamera >>> camera = picamera.PiCamera() mmal: mmal_vc_component_enable: failed to enable compononent : ENOSPC Traceback (most ...
1
vote
2answers
57 views

Best way to create a web frontend for Python-based automation project

I have a pretty big Raspberry Pi project for controlling a Paludarium (see http://www.paluweb.nl ). The entire automation is done in Python, and the Python scripts talk via the serial port to +- 12 ...
0
votes
1answer
30 views

How to connect to internet from archlinux and install python

I am using an arch-linux image of raspberry-pi with emacspeak.The image was downloaded from the following link. Arch image I need to install python on this image.I tried sudo pacman -S python But ...
1
vote
1answer
42 views

Access denied when starting systemd service

Noob question, but hopefully someone can help me out here. I'm transitioning from init.d to systemd on my RPi running Linux, as I'm told it would cut my boot time in half. My init script requires ...
0
votes
0answers
6 views

Python program is outputting a strange value to my 16x2 Character LCD [migrated]

I've built a small program with a Tkinter GUI to let me enter 2 lines of text and make it display it on the character screen. It all works pretty neatly until I press apply text, because then I just ...
1
vote
0answers
33 views

Running two camera at the same time (Pi Camera & USB camera)

I would like for my project to have one camera (PiCamera) Streaming video. And another USB Camera (PS3 Camera) taking pictures when I execute this function: def grabPicture(self): grab_cam = ...
0
votes
2answers
40 views

Programming SPI display on Raspberry Pi (Help needed!)

I'm working on a cool little project and it's going quite smoothly and I've managed to integrate the other 3-4 devices into the Pi however there is one part of this project I am stuck on I'm unsure ...
-1
votes
1answer
59 views

how to autorun a python program in raspberry pi when power supply is ON

how to autorun a python program in raspberry pi when power supply is ON. we followed the link https://www.youtube.com/watch?v=8iU9TnYFOV0 but it is not working
1
vote
0answers
24 views

Use laptop iSight with Python and openCV [closed]

Can I connect my pi to my MacBook and then use the camera on it as a webcam for openCV? I need to trick the pi into thinking the MacBook is a USB webcam, so that the pi can pull a video feed from its ...
1
vote
1answer
94 views

Raspberry Pi as an captive portal with CoovaChilli

i'm looking to do something maybe not that common with my Rpi; I have a rowing machine and I want to connect it to my Pi to motivate me to do sport. To do this, I have an Arduino connected to a Pi ...
2
votes
2answers
82 views

How do I pass a variable to a python script run from crontab? [closed]

I am running a python script using the following command: 0,30 * * * * python /home/pi/pythonscripts/script.py & and I would like to pass a variable 'test' to the script in the crontab, ...
0
votes
1answer
22 views

Difficulty running python from command line [closed]

I am new to the Raspberry Pi and Linux. I have seen many tutorials and cannot figure out to run .py files from command line. All i get are error messages about wrong directories and files not found.
0
votes
2answers
52 views

How to run 2 scripts together?

I am trying to run 2 scripts sequentially. The first one gets the data and the second one enters the data into a table (which is already created). Script 1 #!/usr/bin/env python import RPi.GPIO as ...
0
votes
1answer
44 views

GPIO Connections

I would like to use raspberry pi for measurement of Temperature,Humidity,Motion, soil moisture & distance. I would like to add three led indicators. I'll be using following sensors 1) DHT-11 ...
0
votes
1answer
43 views

Reliably Reading from the Serial Port in Python

I am trying to communicate between a pair of RPi's both with Ciseco XRF Radios on Slice of Pi's. My end goal is for RPi1 to send a specific phrase to RPi2 which will pick it up, perform some ...
1
vote
3answers
93 views

115200 Baud Rate Problem for Raspberry Pi /dev/ttyAMA0 vs /dev/ttyUSB0 with XBee Radios

I'm have 2 XBee Radios and 2 Raspberry Pis. I have the 2 communicating with the XBee radios set to 9600 Baud on the TX and RX lines from the Raspberry Pi. I recently bumped the XBee radio default ...
0
votes
2answers
97 views

Update Python version on Raspbian

So I got my Raspberry Pi with NOOBS and decided to use Raspbian. Then I wanted to test a python script I wrote with python 3, and it threw me an error, because I used an unknown import. Then I ...
1
vote
1answer
50 views

Driving LED stripes as non-root user

I am using python and the Bibliopixel library (https://github.com/ManiacalLabs/BiblioPixel) to drive a strip of LEDs (type LDP8806). For some reasons, I wanne be able to use this w/o using superuser ...
1
vote
1answer
57 views

Extracted SMS body and passing it in a condition (Python)

This is my class for checking unread messages def CheckUnreadMsgs(ser) print "Check for new messages...\n" ser.write("AT\r") time.sleep(3) line = ser.read(size = 64) print line ...
0
votes
2answers
109 views

Python in the latest Raspbian Wheezy

What version of Python does the last Raspbian Wheezy comes with? In LXTerminal I ask for version 3 (python3) and says it is already installed, but when I check (python) it says that the latest is ...
0
votes
0answers
107 views

Use webrtc without a browser or some alternative method

Right now I am using this project here. It is a python script that runs a server using webrtc to send the clients/browsers webcam to the server and perform face recognition. What I want to do is do ...
1
vote
4answers
411 views

Root access , nightmare when TRYING to learn the basics

Why have a product an software that's so tricky to grasp when it's meant to be educational. I'm trying to experiment with the gertboard an simply run Python 2.7 ( I'm using 2.7 because any other ...
4
votes
0answers
142 views

Resolution properties for python's OpenCV and uv4l camera driver

I've followed this tutorial to install OpenCV 2.3.1 in raspberry and it has worked fine. I've also installed from here the uv4l raspicam driver. But now I need to modify some capture properties as the ...
2
votes
2answers
86 views

Proper hardware debouncing my interrupt driven digital electrical meter input?

This is a child of my first problem, I am getting ghosting/bouncing on my digital input, but this question is more hardware related and specific to my problem. I have a RasPi model B. I have read ...
2
votes
2answers
111 views

I am getting ghosting/bouncing on my digital input

I am meassuring data pulses from my electrical meter, giving me one pulse per Watt used. I have 4 electrical meters connected to my Raspberry Pi model B. I have connected them directly like this (no ...
1
vote
2answers
138 views

Executing bash script in python language

I tried to make a python script to make "sudo cp -avr /home/pi/progs/ /var/www/" but wasnt able cuz of errors. Now I want to simply make "ls /var/www/" but I got those errors: Traceback (most ...
2
votes
2answers
161 views

9 Data Bits on UART pins?

I am wondering if it is possible to send 9 data bits framed with a start/stop bit at 1.25MBaud. I am currently using PySerial to configure the UART pins on the pi. I've stumbled across a few ...
2
votes
2answers
59 views

Headless RaspberryPi Network Login [Proxy]

I am connecting my RaspberryPi to my school's WiFi network which is fine for local operations like SSH, but the school has a web login to associate the IP with a user account which grants internet ...
0
votes
1answer
47 views

Enable GPCLK line for 1MHz (or greater) clock

I'm trying to drive a TLC5940 with a brand new RPi Model A+ (V1). I plan to use the Pi's SPI bus to pipe data to the chip, which I've done successfully before using an AVR. The part I'm stuck with is ...
0
votes
0answers
12 views

wireless - unable to retrieve number of connected clients as iw throws errors

i've sucessfully set up my wifi AP on raspi, and i have problems with implemting python script to handle the adafruit's lcd shield. The problem is that iw dev wlan0 station dump says nl80211 not found ...
3
votes
4answers
262 views

Why is Python the preferred language for the pi

Why is python perceived as the preferred language to control and manipulate Raspberry Pi? Why is Python language chosen over other other programming languages like PERL, etc. (which are included ...
0
votes
1answer
58 views

Pins I2C cannot be used as input

When using pin 3 and 5 as inputs, I get only 3.3v and I'm not able to use them as inputs. I use the same code and circuit on all the GPIO pins the circuit worked on every single pin except on this 2 ...
0
votes
1answer
105 views

Weak performance during motion detection with picamera and python script

To dig into the picamera python api i just started a simple motion detection script. It runs in the videomode with 2 frames/second and a resolution of 320x240. Frames are captured with the ...
1
vote
0answers
33 views

Can i setting sampling rate 2k in MCP3008 or python [closed]

Can i setting sampling rate 2k in MCP3008 or python. I think to do this a long time but i don't have no idea. please help, thanks.
0
votes
0answers
42 views

PySerial not responding after 10 seconds of inactivity

I've got the JY-MCU Bluetooth module connected to the hardware serial port on my Raspberry Pi. It seems to be working except for one thing: when there is no communication for about 10 seconds or more, ...