Python is a general-purpose, high-level 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. Python interpreters, versions 3.x and 2.x, come installed ...

learn more… | top users | synonyms

0
votes
0answers
7 views

Raspberry Pi + Lego Mindstorm EV3

I am a newly Electronics and Communication Engineer, Graduate Teaching Assistant. Next semester I will have to suggest some ideas for graduation projects for undergraduate students to my Profs. My ...
0
votes
0answers
7 views

LIRC in python: cannot see any code from infrared remote

I installed and configured Lirc on my Raspi, then I installed python-lirc. The Lirc configuration is OK, as I can use irw and irsend with no problem. In my python program, when I try to read any IR ...
0
votes
0answers
6 views

save data from a command to a csv file in python [migrated]

I want to save the result of a command in a csv file. I have this code for the moment : import sys import os import time import datetime import subprocess import csv with open("compteur_data.csv","a"...
1
vote
1answer
9 views

How to display gpsd.utc using paint or similar method

I am receiving reliable gps data from my Adafruit gps sensor. I would like to to show the gpsd.utc data across the screen so that it appears like a regular clock. I have the following code which shows ...
0
votes
1answer
22 views

Error message every time I try to install applications

Error processing line 1 of /usr/lib/python2.7/dist-packages/gtk2-2.0-pysupport-compat.pth: Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 162, in addpackage if ...
0
votes
1answer
15 views

creating command prefix for python 3.4

Hello I am pretty new with python and linux terminal commands so please excuse me beforehand if I am missing something obvious over here. I created a python program which uses some python 3.4 features ...
0
votes
0answers
24 views

PICamera - Custom output (start_recording())

I need access to full camera video resolution (1080p) and after searching found that recording (start_recording()) methods of PICamera is much better than capturing methods(capture_continues()) ...
3
votes
1answer
38 views

Problems with RFID-RC522 and Raspberry PI B

I'm trying to use the RFID-RC522 with my RPi. The script work but I dont get any response no matter how long or how many cards I use, the module is working because I tested with an Arduino. I use this ...
1
vote
2answers
25 views

Keeping the ACT LED always on using python

I am new to the GPIO on Raspberry Pi and I'm trying to control the ACT LED (GPIO #47) on Raspberry Pi Model B+. GPIO.output(47,GPIO.HIGH) This python command just makes the ACT LED blink. I can ...
1
vote
2answers
41 views

Pi CAMERA OPENCV my python script test_video.py has black screen

If anyone has followed pyimagesearch.com's tutorial on accessing the pi camera through OpenCV and Python you will know what I am talking about. Here are the details I am in the created python ...
0
votes
1answer
28 views

How can i discover the current CPU load?

I would like to use the percentage of CPU load in a program to discover wether or not it has an affect on some other sensors but i need to be able to get that number as an integer in python. I looked ...
1
vote
1answer
13 views

Pyserial: Force Arudino to /dev/ACM0?

(Using Raspberry Pi 3B, Raspbian Jessie) I have a Python script that uses an Arduino with Pyserial. I want to start this script on boot, but my problem is that sometimes the Arduino binds to /dev/...
0
votes
1answer
40 views

Which database on Raspberry for 100,000+ Entries?

I am having the following situation: On an embedded linux board (a Raspberry Pi - but might be replaced in future by a SBC with similar h/w-specs) a Python application is reading sensor data every ...
0
votes
0answers
18 views

Taking photos when an IR sensor detects motion?

I'm trying to write a program in python 3.4 for my Raspberry Pi that will take some photos when motion is detected from an IR sensor ( A bird table in this case). The camera and IR sensor are ...
1
vote
1answer
18 views

Save to a network location in Python

I set up a Pi as a file server. So from my pc or other pis I can easily add and remove files. I can do it manually no problem. So, with my other Pi's, I want to save to the network folder, but I can't ...
0
votes
0answers
19 views

Playing jukebox style MP3 s by GPIO , how does the code/directories work?

Having followed the adafruit "overview playing music with buttons raspberry pi" I thought I knew it all but then I wanted to play random files and then to scroll through the files and play them by ...
0
votes
0answers
28 views

HELP - Python full body detection and license plate detection with night vision

Dear Sirs, This program is coded within Python. I wanted to get my raspberry to be aware of the current time(night or day) and being able to upload a video that is using night vision from the normal ...
1
vote
0answers
12 views

Raspberry Pi: Streaming audio from a website, and killing when not receiving any sound?

I am working on a Book Reader for my Raspberry Pi 2 using OCR (Optical Character Recognition) and TTS (Text To Speech). I found a good online voice that I have managed to stream from using this python ...
1
vote
1answer
43 views

How do I remove 'Python Games' from Raspbian?

When you download Raspbian, there are 'Python Games' installed. Is there an easy/clean way of removing this from the system including the Menu? I preferably want to get rid of whatever 'Minecraft Pi' ...
1
vote
3answers
72 views

How to know when the pi finished shutting down

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 ...
0
votes
1answer
52 views

GUI Programming for Raspberry Pi [closed]

I have recently purchased a RPi 3 and I want to create a GUI application to control GPIOs using a touchscreen and also set parameters for timers. I am new to both Pi and Python. I have come across a ...
1
vote
0answers
45 views

RFID RC522 Stops reading data after reading data continuously

I'm trying to make RFID RC522 work with my Raspberry Pi 3 B+. I use the library MFRC522, and the the sensor can read data most of the times. However if I just put the card on the sensor it will stop ...
1
vote
0answers
7 views

How to implement an echo-service over bluetooth smart

I'm trying to find examples of how to implement a service over bluetooth smart (ble). I would prefer a python implementation. The step i'm most interested in is the bindning between ble and the ...
0
votes
1answer
25 views

How do I put these two python scripts together? [closed]

I am trying to write a script when motion is detected it will send me an email, can anyone help me put this script here enter import smtplib smtpUser = 'mygmail@gmail.com' smtpPass = 'mypassword'...
0
votes
0answers
27 views

Touchscreen + HDMI touch input

I have the official RPi 7" touchscreen hooked up along side a TV via HDMI. I've set the HDMI port to be my default using display_default_lcd=0 in /boot/config.txt. I've been using a post on the ...
1
vote
0answers
23 views

Python doesn't recognize cv2 when running under sudo

I've installed opencv with python 2.7 using this tutorial. I've created a test python file and everything works fine. But when I try to run it as sudo, it throws an error: ImportError: No module ...
3
votes
1answer
41 views

Mapping key events using evdev

I've been on a quest to "map" some bluetooth speaker buttons to corrospond to the letters "d" and "f" to a non-existent keyboard. That is, there is no physical keyboard connected to my raspberry-pi. I'...
1
vote
1answer
42 views

Infrared communication between 2 Raspberry Pis

I am working on a project that requires infrared communication between 2 Raspberry Pi 2Bs using GPIO and Python. However, I am unable to locate a tutorial on the Internet, as it displays pages on ...
1
vote
0answers
6 views

Python Image Slicer install failing on Ubuntu Mate

I've got a raspberry pi 2 running ubuntu mate. It comes pre loaded with python. I attempted to install image_slicer module using pip install image_slicer however I recieve this error dialogue: ...
3
votes
1answer
76 views

Minimal Kiosk GUI on PI

I'm trying to work out how to build a minimal OpenGL application on Raspian. Once complete, I don't require command line or Window Manager access (outwith the Application itself) however will require ...
1
vote
1answer
41 views

I2C - I need a 1 second delay between sending byte and reading reading data from sensor

I am using an Atlas Scientific I2C sensor and trying to connect it to the Pi. http://www.atlas-scientific.com/_files/_datasheets/_circuit/EC_EZO_Datasheet.pdf Here's the code that I'm running: ...
1
vote
0answers
22 views

Compression at Beginning of h264 Clip

I'm using a pi zero and the v2.1 camera to record a series of video clips over a certain duration with pauses in between. The issue is that at the beginning of each clip there's a noticeable increase ...
2
votes
1answer
75 views

Creating Telegram Bot on RaspberryPi [closed]

I am trying to create Telegram Bot on my raspberry pi 3 import telepot bot=telepot.Bot('*tokenhere*') bot.getMe() After this i am getting telepot.exception.UnauthorizedError with error code 401. ...
1
vote
0answers
21 views

Is Joan's pigpio rotary Encoder C library callable from python ctypes?

Hi I'm using python class Rotary Encoder to implement a Position PI on a stepper motor and using this encoder H6BM-1000-500-IE-S-H The code is working quite well , however i'm getting an error of ~...
1
vote
1answer
16 views

Is Twisted available for Python3?

I would like to install the Twisted Python library for Python 3 but it seems that on Raspbian it only targets Python 2; is that right? I've tried installing it through both apt-get install python-...
1
vote
1answer
48 views

Parallax RFID + PI only reads first time

I used the following code from this post import serial import time serial = serial.Serial("/dev/ttyAMA0", baudrate=2400) while True: if serial.inWaiting() > 0: read_result = serial....
1
vote
1answer
24 views

Execute a python script at srart up of raspberry pi [duplicate]

I am trying to run a python script at the startup of pi. Python file name is test.py. I am using raspberrypi-3 . The command I have used :- pi@raspberrypi:~$ sudo crontab -e I have added the line ...
0
votes
1answer
35 views

pyame joystick button bounce

I'm building a pi robot. It uses a ps3 controller for input. When the X button is pressed, it takes a photo. For some reason, it takes around 5 shots at a time. Is there a way to bounce the input so ...
2
votes
1answer
55 views

Program will not run from console, works fine from IDLE GUI

I have written a small Wifi Radio program in Python that accesses the GPIO. Press button 1 it starts the radio, 2 pauses it, 3 next station etc. I have a i2c LCD display that displays the status of ...
2
votes
2answers
89 views

Getting extremely low fps on Rpi 3 while image processing

I am working on a project that requires image processing to detect a traffic light and take action based on its status (on or off). I initially developed the code on my PC, using OpenCV and Python, it ...
1
vote
0answers
27 views

Bluetooth buttons and mpg123

This is my first post. I have started a project with a rpi2 that currently allows me to bluetooth my rpi2 to a bluetooth speaker. On that bluetooth speaker there are three buttons. One that plays and ...
0
votes
0answers
18 views

Raspberry pi Daemon name

Im really new at raspberry pi, so I couldnt figure this out from reading other questions about this topic. I am trying to run a 16x32 led matrix from a python program. I got the display working, and I ...
0
votes
1answer
36 views

How to use Arduino Motor Sheid with Raspberry pi

I have currently started looking into raspberry pi projects. My background is in C# and Java. I do not have much experience with Python which seems to be the preferred programming language to do ...
0
votes
0answers
34 views

Switched from RPi2 to RPi3; no kivy window appears

I just damaged my Pi2 and the TFT touchscreen by static electricity. As a workaround I plugged the SD card into a Pi3 and use VNC to log into the raspberry. Everything works fine except for kivy. The ...
3
votes
1answer
58 views

PWM Servo - Check availability

I'm writing a program which requires Servo's basic movement. Here's the code: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.OUT) pwm = GPIO.PWM(18, 100) pwm.start(5) ...
1
vote
1answer
18 views

What package is /home/pi/python_games coming from?

I tried to find the package with dpkg -S tetromino.py (tetromino.py is a file inside the folder) but there seems to be no package, that installed it. I also tried other files inside the directory. ...
0
votes
0answers
37 views

Counting bicycle's speed with reed switch [on hold]

could anyone give a hint or help me with this? What im trying to do is: circuit is here ( the bottom one, with a pull down resistor): https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/robot/...