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
2answers
64 views

How likely is a Pi to be damaged when it is plugged out

I have a setup where a Raspberry Pi will be used in a headless mode, inside a model. The model will be used during the day, and then plugged out at night. Since I won't be there when it is in use, I ...
1
vote
0answers
21 views

How to install PyQt5 on Raspberry Pi? [duplicate]

I need to install pyqt5 on raspberry pi that has Rapbian on itself. please help me how to do that
0
votes
1answer
26 views

Python Serial library for RaspberryPi2 tutorial/command list

I have a problem with using the UART on RPi2. I tried every program found on the internet but nothing works. I checked every baud rate of my two BT modules but whatever code I use I've got errors ...
0
votes
1answer
21 views

How to use JSN-SR04T on a Raspberry Pi?

I want to try out JSN-SR04T, which is an ultrasonic distance measuring module, that is also supposedly water proof. The main reason that i want to try this module over the HC-SR04, is because the ...
2
votes
1answer
18 views

Output from pigpio unexpected

I have attached a DHT-22 weather sensor to my rev 1 raspberry pi after a fresh install of a recent install of debian. Following the instructions from https://www.youtube.com/watch?v=IHTnU1T8ETk I ...
0
votes
0answers
21 views

Adafruit 16x2 LCD not displaying properly

I'm trying to build a clock with an Adafruit 16x2 LCD and my RasPi B+ using Adafruit's tutorial. It works fine at first, but it will start displaying gibberish after a couple seconds. Any ideas as to ...
0
votes
0answers
22 views

Python 'DBUS' error [on hold]

I have two raspberry pi. one of them stream video and audio and other one record video and audio. both of them use Gstreamer. on the second Raspberry Pi I write a Python program that record video and ...
0
votes
0answers
11 views

Warnings when opening programs via Python subprocess calls [migrated]

I am attempting to open an image and a text file that my Python (3.3.2) program is creating (the files are created without issue). The last two lines of the program are: subprocess.call(['leafpad', ...
0
votes
1answer
12 views

Where is the cronfile located at? [on hold]

I am writing a python program to go on the raspberry pi. I am currently making an installation script that will as part of its installation process, add a line on cron so that it will automatically ...
1
vote
1answer
27 views

Failed install of Python3.4.3 on Raspberry Pi

I want Python3.4.3 and only Python3.4.3 on my Pi. I will be using a set up of 16-20 Pi's to teach Python Programming (and robotics) in a High School. Since Raspbian only supports Python3.2, I did a ...
1
vote
0answers
6 views

Running Deamon Involving GPIO on Pi [migrated]

I have a deamon that monitors various things using the GPIO ports. I have used python to write the code for this using the RPi.GPIO module. I would like to ensure that the deamon is always running, ...
0
votes
0answers
48 views

External Watchdog Timer For Raspberry Pi B+ using 555 Timer IC

I want to make a External Watchdog Timer For Raspberry Pi B+ using 555 Timer IC. I find a Setup for Arduino and its code... int pulsePin = 2; int led = 6; unsigned long lastHeartbeat = 0; unsigned ...
2
votes
1answer
41 views

Multiple camera processes running at the same time

Is it possible to get two camera instances running at the same time - one is for capturing live feed to stream across network, the other one records video when motion is detected (PRI sensor is used)? ...
1
vote
1answer
53 views

Can I execute a script before every login

I am planning to have a program that will need to connect to a server. I'd like to be able to send a encrypted password to my server. The thing is, I need my decrypting script to be executed ...
0
votes
1answer
47 views

Cannot get ultrasonic sensor HC-SR04 to work(maybe I broke it with wrong wiring?)

I am trying to measure distance with HC-SR04 and Raspberry Pi A+ using Python on Raspbian. So here is how it is connected: VCC - to the 5V Out from L289N motor driver GND - to GND on the L298N motor ...
0
votes
0answers
14 views

GPIO Tripping Relay Without Setting Output

I have a simple circuit set up with a GPIO pin connected to a relay and a LED connected to the other side of the relay. The light is off normally, when I do GPIO.setup(23, GPIO.OUT) in the code the ...
0
votes
1answer
24 views

Some error happened when running a python program on raspberry pi

I want to make a program to display the real time input audio signals in the forms of FFT and Amplitute via a USB audio card in raspberry pi. So it supposes to have a user interface to display the ...
0
votes
0answers
10 views

error about running python program in raspberry pi [on hold]

Here is the code: import pyaudio import tkinter as tk import wave import threading import queue import matplotlib.pyplot as plt import matplotlib.animation as animation import matplotlib.lines as ...
1
vote
1answer
26 views

PHP controlling my led control script. Can't get it to work

I have made a very small script for my raspberry pi where I turn on the LED. import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(21,GPIO.OUT) GPIO.output(21,1) time.sleep(5) ...
0
votes
0answers
17 views

pure python mjpeg streaming?

I tried the mjpegStreamServer from here but it doesn't seems to work... First of all, most times, after run it throws errors: — Exception in thread Thread-1: Traceback (most recent call last): File ...
1
vote
0answers
21 views

Control the inclinometer with RS232 or UART

I have bought an inclinometer today to try some things. Inclinometer has two communication port; RS232 and UART. Which one should I select? Actually I tried both but none of them worked. I have ...
1
vote
2answers
29 views

Pure Python vs. Django for Web Services? [closed]

I want to create some web services for my RaspberryPi. My question is: Does the performance drop when I use a Python framework like Django instead of a pure Python web service?
0
votes
1answer
36 views

How can I trigger Pi Camera to take time lapse photos every day at sunrise? [on hold]

I'm interested in capturing a time lapse photo sequence every morning at sunrise. I'm able to get the exact sunrise time using a Python script into a variable, but not sure how to go about setting ...
0
votes
2answers
66 views

PHP or jquery to execute python scripts for GPIO

I want to use php or jquery to control gpio pins on my raspberry pi 2. I have apache installed. When i execute python files using LXTerminal, they work fine. I have made the .py files executable and ...
0
votes
1answer
24 views

Minecraft Pi - name 'block' is not defined [on hold]

I'm following the tutorial here for using Python2 to interact with Minecraft Pi. Everything is fine up until the "Blocks as Variables" section. Here is my code: from mcpi import minecraft from time ...
1
vote
0answers
34 views

Connecting multiple devices with UART

So, I have the following components: Gertbot SparqEE Shield My aim is to connect these to a Raspberry Pi Model B+, so that they can work together. There are no issues when I connect these ...
0
votes
1answer
52 views

How to use python to design a graphical user interface on raspberry pi? [duplicate]

How to use python to program a graphical interface on raspberry pi? It supposes to be like a small software which has simple or just some function of audacity, displaying spectrum of the sound signals ...
1
vote
1answer
62 views

TCP/IP Sniffer using Upstart / Python / nodeJS Integration and Approach? [closed]

I'm doing a project which is mainly a TCP/IP SnifferDetails: Raspbian on Raspberry Pi v1 Model B. Similar to pitap (Automatic bridge creation and packet capture multiple network interfaces), using ...
0
votes
0answers
15 views

Huawei E359 USB 3G Modem Switches Back to CD After Switching to Modem

I am currently working on my Raspberry Pi 2 to allow it to send SMS to phones using a Huawei E359 USB 3G Modem. I issued the commands lsusb and ls /sys/class/tty and can see that it is detected by my ...
0
votes
2answers
42 views

Running idle, with root privileges, while using TightVNC Server

I am trying to run idle with root privileges so as to use the RPi.GPIO module. The RPi 2 is headless and I am using TightVNC Server. I get the error Client is not authorized to connect to ...
0
votes
0answers
6 views

Python error; 'NoneType' object has no attribute 'after' [migrated]

I got error while coding in python. Need to print same random value again & again. from Tkinter import * import Tkinter from random import randint class App1(Tkinter.Tk): def __init__(self, ...
2
votes
1answer
72 views

Taking images from raspicam at 100 fps

I have been using my raspberry pi and working with the camera module. The lowest time taken by regular raspistill to capture a single image is about 900ms. I use the picamera python interface with ...
5
votes
2answers
87 views

Develop a Raspberry python script from a windows

I want to develop a Raspberry python script from the windows side, for several reasons: I want to keep all the code (more) secure on my computer, in case I fry the RPi/try another project/reinstall ...
3
votes
2answers
171 views

How to view outputs in a terminal window of a Python application launched at start-up?

I've created a python program that is launched at start-up. To launch it at start-up I've appended a row to the file /etc/rc.local as follow: sudo python3 /home/pi/myProgram.py Every some seconds, ...
0
votes
0answers
27 views

Using python on raspberry for leds sometimes not working

I am using python to turn leds on and off in a little project (raspbian) but I don't know why sometimes the leds turn on and sometimes they don't. You can find the code below, could you please tell ...
-1
votes
0answers
35 views

Control speed of a fan with the Raspberry

I've a fan(a 24V, but when working I would like to adapt this to a bigger one on 230V) which I want to control with the Raspberry Pi(v2). I know that I could use a relay, but I would like to be able ...
0
votes
1answer
82 views

Raspberry Pi 2, PIR project, all pins always get GPIO.HIGH value

I folowing this tutorial https://bhavyanshu.me/tutorials/raspberrypi-to-detect-movement-using-pir-motion-sensor-hc-sr501/11/21/2014/ and a little bit simplified my code. #!/usr/bin/env python # ...
1
vote
0answers
22 views

Launching a python script in IDLE3 works but in terminal I get an error on a ConfigParser

I've created a Python program for my raspberry PI with Raspbian. When I run it using IDLE3 (my program has been created with Python 3.2), it works fine. As I'd like to run this python script at ...
0
votes
3answers
52 views

Is it possible to control a stepper-motor with javascript?

So I have seen some examples, how you can control servo-motors with javascript, but we use 2 stepper-motors for our project and these use an extra library in python. So is there a way to control them ...
1
vote
0answers
46 views

5k image on Raspberry pi with kivy + python [closed]

I'm struggling to get a large image (1920 x 2890 pixels) display on raspberry pi 1 (I think B). I tried several python ways (python + kivy / pygame / opencv). I can display small images with no ...
0
votes
0answers
25 views

I couldnt use the connected wifi to open a browser in the raspberry pi

i am able to connect the wifi to the raspberry pi using the "wifi config" in rasbian OS and my wifi dongle blinks which indicates the connection is made ,but when am opening the netsurf browser its ...
1
vote
1answer
52 views

Python script stops running after 15-20h

I'm monitoring my sensor data and sending it online with my .py srcipt. It should run every 5min so I programed it like this: import threading import time def send_wu(): # ...
0
votes
2answers
54 views

Cannot open “idle” in root mode using python

I am trying blink an LED using some python code, but the problem is I am unable to run the idle in root mode, i.e., when I type sudo idle in the lxterminal it's showing errors such as PuTTy X11 ...
0
votes
0answers
54 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 ...
0
votes
1answer
22 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
110 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
30 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
164 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
47 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
2answers
42 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 ...