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 ...
1
vote
0answers
8 views
Strange I2C behaviour
First of all: sorry for the title, don't know how to describe further :/
Background:
I'm working with the RDA5807M FM receiver chip. It worked fine for at least one month now. I just had jumper ...
0
votes
0answers
19 views
5v Relay will not close (unless using GPIO cleanup)
This seems like it should be really simple, so maybe I am missing something. I am just trying to open and close my relay but all it does it open's and doesnt close. I can use GPIO.cleanup() to make it ...
0
votes
0answers
10 views
Python, RPI 3: How do I play and record a sine wave at the same time?
I've previously used the sounddevice package which has a playrec function, but it does not release memory which makes the program freeze after a while. It also creates cracling noises with my new Asus ...
0
votes
0answers
9 views
Keep terminal window on top
I have 2 scripts running once desktop loads both running a python script call them A & B
script B looks for keypress so has to remain on top always.
How can I boot both A & B but make ...
0
votes
0answers
13 views
Raspberry Streaming using VLC picamera python
I am trying to stream Raspberry Pi camera video using VLC. The code is as follows:
import subprocess
import picamera
camera = picamera.PiCamera()
camera.resolution = (640,480)
cmdline = ['cvlc','-vvv'...
-1
votes
0answers
40 views
Speech recognition python to api
I'm searching for easy and good to use speech recognition scripts for python, to use on the Raspberry Pi 2.
I want it to recognise words and write them into a query where I can have it use these ...
0
votes
0answers
21 views
problem starting camera [closed]
this is my code i cant start a preview of the camera
import RPi.GPIO as GPIO
import time
import picamera
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(20, GPIO.IN) #Read output from PIR ...
1
vote
1answer
26 views
from pubnub import Pubsub ImportError: cannot import name Pubnub
This might be a possible duplicate, but I wasn't able to find a solution in the link here. I am new to raspberry Pi I wish to use Pubnub to communicate with an android application and a Raspberry Pi. ...
0
votes
0answers
16 views
Can I make a Raspberry Pi boot a Python and TkInter script on startup? [duplicate]
I only just discovered Raspberry Pi yesterday.
I want to make a system dedicated solely to running a Python/TkInter program that I am developing.
I am trying to create a POS system. It will connect ...
3
votes
2answers
131 views
How do I update my RPi3 to Python 3.6?
Python 3.6 just came out. I tried following these instructions to build from a tarball, but it got hung up on the make command, so I terminated the process after 20 minutes or so.
I also noticed that ...
0
votes
0answers
8 views
Installing OpenCV 3.0 on default Python 2 IDE (provided by Raspbian Jessie)
I have come across many links to download OpenCV on Raspberry Pi, with all the headers binded inside terminal.
http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-...
0
votes
0answers
14 views
How to read value from force sensitive resistor [closed]
I need to read force sensitive resistor value. How can I do that? I have analog to digital converter.
0
votes
1answer
18 views
Stepper Motor Trouble
I have the 28BYJ-48 stepper motor, and I simply want to make it move forward or backward to make a robot car with RPi. I tried many of the sample codes in the internet, but the motor is not really ...
0
votes
1answer
29 views
How to kill python program + cleanup GPIO when button pressed
I'm planning to make a car robot with RPi. I have a python script named 'abc.py', and I'd like to kill the python program and cleanup GPIOs used in abc.py when a button connected to GPIO is pressed. ...
-1
votes
1answer
52 views
How and in what language can you create this very little script so it works for Raspberry Pi 3?
I have bought a Raspberry Pi 3 but I cannot run .exe on it (i got a self made script on Windows but it doesn't work for Raspberry).
What I want is open browser, press f5 button, loop
Can you please ...
0
votes
0answers
16 views
receive unkown data from xbee module
I am trying to read API data that received from xbee module using python script and I get unknown data, As Shown In The Image Below.
1
vote
1answer
54 views
What visual programming language IDEs are available for Raspberry?
What visual programming language IDEs are available to program Raspberry using Python? Especially for newbie.
0
votes
0answers
6 views
Running a function and then running another function depending on the result of the 1st one [migrated]
I have a piece of Python (2.7) code which connects to a mySQL DB and enters content from a csv file (DBCommit()). I want to clear the CSV (ClearCache()) file ONLY if the MySQL commit (DBCommit) is ...
0
votes
0answers
41 views
Clock on Raspberry Pi camera?
I just wanted to confirm a couple of questions. Sorry if these have been asked previously.
Is there a clock on Raspberry Pi camera? Or does Picamera use the Pi board clock?
If there is a clock on the ...
0
votes
1answer
21 views
Listen for certain keyboard input and insert to SQL Server DB
I have a USB NFC reader (acts as an emulated keyboard that types out the 10 digit ID number on the card when scanned).
I want an app to listen for this input and when it sees 10 digits, I want it to ...
0
votes
1answer
25 views
Launch Python script from Cron in foreground
I have developed a Python script that I would like to run at every boot of the Pi. The script in question is one that I do not want to run in the background. It will be controlling the display of ...
1
vote
0answers
28 views
How do I release or free /dev/ttyUSB0?
I am trying to work with raw GPS data from a USB GPS receiver (Delorme LT-20) through /dev/ttyUSB0/.
My program had been working, but today I get this error:
could not open port /dev/ttyUSB0: [...
0
votes
0answers
14 views
lightshowpi is playing music but no lights when playing
I am using Lightshowpi to synchronize a light show. I have confirmed that my hardware set up is correct. When I run the code:
sudo python py/synchronized_lights.py --file=/home/pi/lightshowpi/music/...
0
votes
1answer
38 views
PiCamera through Terminal (write)
I am trying to take a picture using my Raspberry Pi 3 & Raspberry Pi Camera from the terminal of my Mac laptop. I connect through SSH w/my IP address, then enter Python, then:
>>> import ...
0
votes
0answers
24 views
OpenCV VideoCapture fails to read mjpg stream
I am using opencv to read an mjpeg video stream. The code works perfectly when run on my ubuntu machine, but VideoCapture.read() returns false on the raspberry pi.
I installed opencv 3.1.0 following ...
0
votes
0answers
33 views
ValueError: need more than 2 values to unpack
I am doing image processing on Raspberry Pi 3, Model B, using Python and OpenCv.
I need to follow an orange object by drawing a circle around it. Here is the code.
# import the necessary ...
0
votes
0answers
41 views
How to read from multiplexer with python I2C
Based on the following links:
https://forums.adafruit.com/viewtopic.php?f=19&t=83918&p=541562&hilit=TCA9548A#p541562
https://github.com/kizniche/Mycodo/issues/43#issuecomment-156718451
I ...
0
votes
2answers
54 views
Cannot Run a Python Script at Boot
I am at wits-end and am close to giving up on this... All I want to do is run a python script at bootup with the Raspberry Pi, I will outline the few things that i've tried thus far:
Running the ...
0
votes
0answers
11 views
activate gpio based on adxl345 reading
I am working on a project that will take a reading from an adxl345 and activate gpio's (gpio's high/low I get) to keep the 345 level. I have got readings "printing" from my 345. (-1 to 1) How do I get ...
0
votes
0answers
27 views
Using the PiTFT and the auxiliary SPI
I am trying to get the auxiliary SPI running while using the PiTFT from Adafruit. The problem that I am running in to at the moment is that my /dev/ doesn't have any spi devices:
~ $ls /dev/spi*
ls: ...
1
vote
0answers
41 views
Trouble with Python script from rc.local (TTY issue?)
I have not been able to find a solution to an issue affecting one of my Python programs only when it runs from rc.local.
Update added to the end with additional information.
A brief description of ...
-1
votes
0answers
31 views
Setting up Apache for live streaming from Raspberry Pi
I have a Python Flask application that will display the live streaming of the raspberry pi camera on the browser, when I directly run the program it is working fine but when I deploy it in apache2 ...
4
votes
2answers
129 views
Pi camera v2 - fast, full sensor capture mode with downsampling
I've a Pi camera v2 which I'm planning to use with an RPi3 for a computer vision project.
I need to capture full sensor images from the camera - no cropping. The resolution actually used by the ...
0
votes
2answers
23 views
how to identify if ultrasonic pin is removed from circuit using python code
this is the simple code to measure distance using ultrasoinic sensor attached to reapberry-pi and by writing python script--
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
TRIG = 16
...
0
votes
1answer
38 views
pigpio Python module doesn't always set GPIO pin modes for SPI
I am using the pigpio Python module's SPI functionality as a master (communicating with an external SPI slave). In the same Python script I'm also using my own bit-banged SPI driver on the same pins (...
0
votes
1answer
38 views
Can I install a 64bit python to raspbian os?
I want to install a python 2.7 with 64 bit architecture is it possible?
1
vote
2answers
65 views
Compare and contrast Python GPIO APIs
I'm just starting with Pi and want to program GPIO in Python. So far I've come across five libraries:
WiringPi-Python
RPi.GPIO
RPIO
gpiozero
pigpio
Before I commit time to learning one, I want to ...
0
votes
2answers
24 views
Python MCP23017 16 ch. I2C input loosing a bit
I bought a MCP23017 and doing some small test with it. I've made a simple Python script to make read_out of pin state.
Can anyove explain to me, why i'm loosing a bit when GPIO_A7 is triggered?
I've ...
5
votes
2answers
460 views
Getting feedback from a hall sensor with Raspberry Pi
This is my first Raspberry Pi project and I'm a Python newb.
I've got a geared motor + driver + separate power supply (for the geared motor) + hall sensor.
I know the "physics" and the way ...
0
votes
2answers
72 views
Smoke sensor MQ-135
Does Smoke sensor MQ-135 need to be connected to ADC if it has separate pin for analog and digital outputs? I'm about to interface it in raspberry pi.
3
votes
1answer
36 views
Trouble using spidev after RPi.GPIO
I'm using a Pi 3B to interface with an SPI device. My program is written in Python 2, the Pi is the SPI master and the external device is the slave. I am using both the spidev module and the RPi.GPIO ...
0
votes
1answer
39 views
Grove Water Sensor w/o Grovepi module
Can Grove Water sensor be interfaced with raspberry pi even without the Grovepi/Grovepi++ module??
1
vote
1answer
40 views
python program running without waiting for button to be pressed
This now works.
I've added a second button to change the sequence of the LEDs.
The second button needs to cancel any previous running .py scripts first. Can that be done through a kill all, or is ...
1
vote
1answer
52 views
how to make loop movement of a servo?
how to make a loop movement of 6 servos controlled by pots, while pressing the button saves the movement once pulled out the loop start.
#!/usr/bin/env python
# servo_pot.py
# 2016-07-25
# Public ...
1
vote
2answers
35 views
GUI with integrated Gnuplot
I am building a Raspbian app user-interface that displays two side-by-side data plots using the Gnuplot library. One way I could do this would go something like this:
Create Gnuplots
Export as PNG ...
0
votes
0answers
21 views
read analog data (sensor) from xbee using python
I have 2 XBee radios,the first on connected with Raspberry pi-2 as coordinator,and the other one is connected with Current Sensor (ACS712),
how I can read analog data (sensor) from xbee using python ...
0
votes
0answers
28 views
Thermometer device folder not showing after trying to use internal pull up
I'm using the camjam thermometer on my pi3 running pixel
Previously I had it wired via a prototype board with a pull up resistor and was able to read temperatures with using the /sys/bus/w1/devices/28-...
1
vote
0answers
29 views
How can I use an already installed module when I'm using a virtual environment?
I have created a virtual enviroment on my RPI3 (Raspbian-Jessie), so that I may more easily work with a particular image-searching software (as outlined in this tutorial, step #4).
My script requires ...
0
votes
0answers
5 views
Remove quotes from String in Python [migrated]
I have a python Code that will recognize speech using the Google STT engine and give me back the results but I get the results in strings with "quotes". I don't want that quotes in my code as I will ...
0
votes
0answers
23 views
Controlling DC motors with arrow keys
I'm trying to build a remote controller for my Raspberry Pi car in order to control two DC motors. I am using th pygame module to detect keys pressed by the user but it doesn't work. Any suggestions?
...