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

1
vote
0answers
10 views

Apache “404 not found error”

I previously posted a similar question because I used to get a 403 error message (Forbidden). So I decided to get a new micro SD card, and I installed a fresh Apache server then I re-followed this ...
1
vote
1answer
18 views

Secugen Hamster Plus Fingerprint Sensor Raspberry Pi Integration

I have a Raspberry Pi and SecuGen Hamster Plus fingerprint sensor. I am trying to get fingerprint inputs from the sensor to Raspberry Pi using the following code. import sys import usb.core import ...
1
vote
2answers
40 views

Use ssh as substitute of serial

Hi please excuse me if this is a dumb question. I'm making a small machine, driving 3 steppers, and the connection between the computer (linux OS) and the controller (Raspberry pi Compute Module) is ...
-1
votes
0answers
25 views

Change the slides of ppt using UART

I am new in raspberry pi. I have interfaced the bluetooth module with raspberry pi which has UART in it. Now I want to change the slides of my ppt through the UART. How can I do this thing? I am ...
0
votes
1answer
14 views

Wiegand GPIO read not working all the time. Works most times but hangs on some reads

I'm extremely new to Python, I've been learning a bit over the last couple weeks. This is what I've managed to come up with. I'm pretty over the moon the code works most of the time but it doesnt work ...
0
votes
0answers
25 views

Raspberry pi 2 encoding problems which not occur in Mac OS X?

I'm Korean and had made Korean-web crawling program using Python3. I checked that it runs on OSX. And I tried to port this program to my Raspberry pi 2 (Linux raspberrypi 4.1.16-v7+) (Actually, I ...
1
vote
3answers
61 views

how to make radio wave with pi2

As pi2 have processing power of 900MHz it can generate upto 250Mhz radio frequency. I have run fm_transmitter on pi2 it was working but only with one song(star_wars.wav) and code was in c++. Does ...
0
votes
0answers
17 views

Having a web interface to interact with a running python script

I have a python script on my RPi2, that basically refresh a big array of LEDs. It basically refresh it based on some information that the RPi knows (like temperature, current hour, ...). Now, I ...
0
votes
0answers
19 views

Leds and potentiometer issue on raspberry pi/python [duplicate]

I'm having an issue with my project. My project is some leds and a potentiometer on an arduino being read and controlled by a raspberry pi. when I'm using a potentiometer the signal is received by my ...
0
votes
0answers
32 views

Led issue with arduino controled by raspberry pi/python [on hold]

I'm having an issue with 2 parts of my project. My project is some leds and a potentiometer on an arduino being read and controlled by a raspberry pi. when I'm controling leds with a potentiometer ...
3
votes
1answer
541 views

I need to control 8 LED's but I can only control 3? [helpful pictures attached]

I'm very new to electronics in general, but I want to build a small project where I can individually control (from a GPIO pin) 8 LED's. From what I understand, each GPIO pin on the Pi (Pi2 model B ...
0
votes
1answer
29 views

Run multiple python programs at once [closed]

How can I run multiple programs in python at once, I am using the Python IDLE to edit and run programs. I want to run a program for the pi camera and my character lcd screen at the same time... But ...
1
vote
1answer
16 views

SpeechRecognition / PyAudio OSError: [Errno -9997] Invalid sample rate RaspberryPI2

Trying to just run the example code from SpeechRecognition (python 3.4.2) and it immediately fails when trying to create the Microphone class: import speech_recognition as sr # obtain audio from the ...
1
vote
1answer
20 views

PyAudio playing audio in Callback is choppy

I'm using a Logitech usb headset (http://www.amazon.com/gp/product/B000UXZQ42?psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s00) to record and playback audio. I need non-blocking playback ...
0
votes
0answers
33 views

Open a URL in Epiphany Web Browser from Python Script

So I am trying to open a URL in Epiphany [ let's say for example http://www.google.com ] from a python script. My python script is as follows: import os string = "DISPLAY=:0 xdg-open ...
1
vote
1answer
94 views

GPIO True and False seem to be reversed

I'm using the GPIO pins on my Pi under Raspian to control a relay and a computer fan. In Python 2, the command GPIO.setup (18, GPIO.OUT) Immediately supplies power to the pin and triggers the ...
1
vote
2answers
46 views

While statement checking for button press while accepting raw input

I have a while statement running and checking if my button (on a gpio) is pressed and once it is I print something. I would like to add some shell commands like exit, etc... How can i have the while ...
0
votes
1answer
34 views

Issue with reading GPIO pin with GPIO.IN

In one of scripts we are sending HIGH to pin 17, import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.OUT) GPIO.output(17,GPIO.HIGH) And in another script reading GPIO as, import ...
2
votes
0answers
39 views

what is required for automation in plantation? [closed]

What i want to do is when the moisture of the soil gets decreased i just want to give water to the plants or if i can just get a notification about the moisture would be fine. I have very little ...
1
vote
1answer
40 views

Kivy buttons don't work when launching app with 'sudo python'

So I was having a permissions problem earlier and was going through different methods to try and solve it. Ultimately I solved the issue, but now the buttons in my Kivy app no longer work when pressed ...
3
votes
1answer
34 views

Any tutorials for the 10Dof DfRobot IMU? ADXL345 - HMC5883L - ITG-3205 - BMP085

I would like to connect this Imu to the Raspberry Pi via I2C. I am looking for a C/C++ or Python code to use the data provided by this imu. It integrates the ADXL345 accelerometer, HMC5883L ...
0
votes
0answers
24 views

Serial data cut off due to script termination

I receive a data message over serial every 15 seconds. And I want to create an hourly file with these data messages appended. 15 seconds between the messages means I will get 4 messages per minute and ...
-1
votes
1answer
39 views

serial port problem

find a solution about run python program getting error simple program import serial ser =serial.serial ("dev/ttyAMA0",baudrate = 9600) ser.write("code") ser.close() error attributeerror 'module' ...
1
vote
2answers
60 views

wireless Controlling of a servo motor using Raspberry

i have just started using raspberry pi and i have been able to wireless connect and access the Lxterminal of the Pi on my laptop by using a mini WiFi dongle with the Pi.I have good knowledge in Python ...
0
votes
1answer
26 views

Which version is pip?

pip is in my /usr/bin/pip folder. May I know for which Python installation is that? I want to run pip to add some packages for my Python 3.4 installation.
1
vote
1answer
31 views

For bluetooth connection using PyBluez, socket is not getting bound to port with traceback..bluetooth.error: (13, 'Permission denied')

I have a Raspberry pi model B booted with Rasbian OS and a bluetooth dongle plugged into it. I am able to discover my pi when searching from my PC and am able to pair using Blueman GUI. This is the ...
4
votes
1answer
109 views

GPIO stuck in High Mode

I'm new to this whole RP world, and I'm trying to learn it. I've been trying to follow this post, and connected my Pi this image below Connection between Pi and Adafruit T-Cobbler Plus Wiring ...
0
votes
1answer
38 views

Can't turn off gpio pins

I recently installed raspbian on my RPi and i have experience in Python so I decided to play with GPIO pins. As soon as i connected my led to the 4th pin(5V) and 5th pin(GND) it turned on and I ...
0
votes
0answers
13 views

How to make a python program start when the Raspberry Pi boots up with Raspbian? [duplicate]

For your information, this python program requires root privileges due to needing to control the GPIOS. Any help would be great.
1
vote
0answers
24 views

Raspberry Pi Robotics: How to follow line?

I'm making a raspberry pi robot in Python and it moves, but it does not follow the line and I am using an infrared line sensor. I think that I have done everything properly. Here are some results by ...
1
vote
1answer
14 views

CWiiD doesn't detect wii remote but hcitool and blueman do

I have a raspberry pi 2 model B version 1 running raspbian that I am trying to get a Wii remote to work with. I have an Inateck Bluetooth 4.0 adapter plugged in to it and have CWiiD installed. When I ...
4
votes
1answer
80 views

The following packages have been kept back: mopidy

After performing sudo apt-get update && sudo apt-get upgrade, I got the message The following packages have been kept back: mopidy What I usually do in this case, is sudo apt-get install ...
1
vote
0answers
21 views

Custom Encoder, unable to record video

I used the below mentioned customer encoder to simultaneously record video as print a file containing time stamp values of each frame. Here is the code: #!/usr/bin/env python # _*_ coding: utf-8 _*_ ...
1
vote
0answers
26 views

SpiDev - spi.xfer([xxx]) -> Invaild argument error -> what?

I got trouble with a seemingly dumb-proofly simple code: import time import pigpio import spidev DS = 17 STCP = 27 SHCP = 22 MR = 5 spi = spidev.SpiDev() spi.open(0, 0) spi.xfer([0b10011011]) ...
1
vote
1answer
36 views

I am using hih9000 series temperature & humidity sensor in that first 2 byte for humidity data and last 2 byte for temperature how can i decode that

import smbus import time import datetime #SMBus(0) - Raspberry Pi Model A #SMBus(1) - Raspberry Pi Model B bus = smbus.SMBus(1) #I2C address of sensor address = 0x27 def temp(): #rvalue0 = ...
0
votes
1answer
29 views

Git clone without internet connection

git clone https://github.com/hzeller/rpi-rgb-led-matrix/ Is the command I have to send using internet on my Raspberry Pi It will create a library. The problem is I do not have internet on my RPi. ...
3
votes
1answer
41 views

Getting started with image processing using opencv in windows and using in raspberry pi

I am learning image processing using opencv in windows. In another project that I am working on, requires the image processing to be done in raspberry pi for object recognition. Since I do not own a ...
1
vote
0answers
44 views

Stream data from PC to raspberry pi over wifi [closed]

How do I send data from my windows PC to my Raspberry Pi over Wifi or Ethernet? I want to send the data with Python from my PC and receive the data using Python3 on the Pi. Thanks in advance!
3
votes
1answer
28 views

Selenium Script on Startup

I have a selenium script that I created to use Iceweasel. It works fine if I run it manually. i.e. run the command myself. When trying to get it to run on startup it does not seem to do a thing. I ...
1
vote
1answer
37 views

Allow sudo only to run one Python script that accesses GPIO

I have a simple Python script that controls three LEDs. I want to limit the sudo command for my user counter (member of group pimem) to just run this script and because it access the GPIOs also allow ...
0
votes
1answer
29 views

ultrasonic sensor stops after giving some reading when running in thread on tornado websocket python

I am using Ultrasonic sensor to get reading and am using python program for getting reading. And am using Raspberry pi for this. when am running python program independently its giving me reading ...
4
votes
2answers
60 views

Problems creating desktop shortcut to Tkinter script

I want to develop an app using Tkinter GUI and want to launch it from a Desktop icon. I have created the script which works from the terminal and from IDLE3 and is just a test script at present.I have ...
-1
votes
1answer
36 views

How to make application run from python code Raspbian

I have made 2 games, one is pong (using Pygame), and the other one is a text-based quiz. These codes I have made using Python 2.7.1 on Windows laptop. My question is how can I run it on the Pi (which ...
2
votes
3answers
59 views

I changed my Raspberry Pi default keyboard settings. How can I reset this change?

I changed my Raspberry Pi keyboard (using command the sudo nano /etc/default/keyboardp). I set: XKBLAYOUT = 'in' Now, after reboot I just can't login! Can I somehow reset this CHANGE?
0
votes
1answer
19 views

Puzzling problem with Arduino on USB at boot

I have an Arduino Uno (R3) monitoring a magnetometer connected via USB to a PI (B) running latest Raspian. My Pi Python program scans the USB every second reading an integer value via ser = ...
-1
votes
1answer
30 views

Tkinter on linux start up

I put a python Tkinter (GUI library) program on startup (/etc/profile) for my Raspberry Pi Linux and the program just has a label. Now i restart my raspberry pi and it's on my screen without any close ...
-2
votes
1answer
93 views

Can I use my old smartphone like raspberry pi by installing raspberry pi OS to it

I have an old dell aero smartphone, which is currently having Android 1.5 Os. Can I flash the phone and install Raspberry pi OS(Python)?to use it like raspberry pi... The touchscreen is not ...
3
votes
0answers
74 views

Changing RFID key for RFID-RC522

I have been playing around with my RPi2B (with Jessie), an adafruit breakout board and a RFID-RC522. I followed a guide to make it work, and it works like a charm Guide for adding RFID-RC522 to RPi2B ...
4
votes
1answer
132 views

PWM control of motors with PHP front end

I have a dual H bridge connected to my Pi for controlling 2 brushed DC motors with. I intend to have a web interface to control the speed of the motors. I'm thinking of a HTML page submitting AJAX ...
1
vote
0answers
38 views

Unmount USB Camera

I'm working in a Python app with opencv and a USB camera. Sometimes the camera driver throws an exception: OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file ...