Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sensor]

For questions dealing with devices that measure the physical world around us and translate it into signals for the Raspberry Pi.

-1
votes
1answer
37 views

How do I create a list in Python with the given distances from my Ultrasonic distance sensor? [on hold]

import RPi.GPIO as GPIO from time import sleep, time # constants DEBUG = False # debug mode? SETTLE_TIME = 2 # seconds to let the sensor settle CALIBRATIONS = 5 # number of calibration ...
0
votes
2answers
27 views

Making the VCNL4040 proximity sensor work on Python

I purchased the SparkX module with the VCNL4040 proximity sensor you can see here: to use this sensor via Python, but on the repo for the Adafruit library it seems like the library is not available ...
1
vote
1answer
53 views

Reading Temp/Pressure with a single Raspberry Pi

I would like to be able to read values of two thermal couples and a pressure gauge using my raspberry pi. Recording the data and then sending it to a server at the end of the day. I am using dual t/...
1
vote
0answers
19 views

garage door sensors

I know I'm overthinking this.... I've set up a sonoff inching 4-relay smart switch to "press" the garage door "buttons" for my three garage doors. So far, works OK connected to eWe server. My ...
-3
votes
0answers
16 views

Input time comparison

I am trying to make a smart cricket pitch . If the batsman reaches first then the bells are taken off the screen should show a image of not out and vice versa. I will be using a it sensor for that ...
1
vote
2answers
43 views

How can I get reading from 3 ultrasonic sensors?

I have built a simple robot car with an ultrasonic sensor. However I wanted 2 more since it can't detect distance when it's driving not straight to a wall. So I added 2 more, but it seems like only ...
0
votes
1answer
17 views

Raspberry Pi share ppp0 via USB

I have the following setup: Raspberry Pi 3 Sixfab 3G/4G Base Shield v2 Queltec UC20 I have connection to the internet over ppp0 interface but now I want to connect the Instantel Micromate sensor to ...
0
votes
0answers
15 views

Read data from RPLidar and getting “Wrong body size”

I'm trying to read response from a Slamtech RPLidar connected to my Raspberry PI 3 via USB and I'm getting the following error: Traceback (most recent call last): File "app.py", line 70, in main ...
2
votes
1answer
53 views

GY-291 / ADXL345 weird sensor reading for x, y, z

I've two identical GY-291 / ADXL345 sensors. To read the data I use the python-module (https://pypi.org/project/adxl345/). i2cdetect detects the sensors at address x53 correctly. Unfortunately, data ...
1
vote
0answers
27 views

Cant read both SPI Buses of Raspberry Pi 3B+

I want to read 3 analogue sensors simultaneously. I have successfully connected 2 sensors using a MCP 3002 A/D converter which is connected to CS0 of SPI 0 of raspberry pi and I have activated 3 more ...
0
votes
0answers
15 views

Adafruit CircuitPython DHT22 reading exceptions

I am using the program from Adafruit's Circuit Python to read the values from DHT22/AM2302 sensor. At the start of the program, I often get the exception A full buffer was not returned. Try again. ...
0
votes
1answer
36 views

Taking multiple images when Camera is triggered

I have some code that when the PIR Sensor is triggered the camera takes one single images and uploads it to Azure blob storage, taking one single photo is not sufficient but I can't get the Program to ...
1
vote
1answer
35 views

Raspberry Pi PIR motion sensor and camera script dies after loop

I have a simple code for PIR sensor to detect a movement, which works as expected. Code: from gpiozero import MotionSensor import time pir = MotionSensor(4) while True: pir.wait_for_motion()...
0
votes
0answers
32 views

MQ135 Sensor - Output ppm

So I am making a Mq135 sensor and the wiring can be found on: circuit.io/app?components=9443,200000,398790 It isn't shown but the AO is connected to channel0 via the breadboard the code is : #!/usr/...
1
vote
1answer
42 views

Pigpio reading sensor returning -83”i2c read failed”

I am testing using my new air quality 5 click sensor with my Raspberry Pi (https://www.mikroe.com/air-quality-5-click) using command line. When I enter i2cdetect -y 1it appears at address 48. Then ...
0
votes
1answer
42 views

Why is bme/bmp280 temperature and humidity sensor returning 0 value?

I'm having problems with bme/bmp280 temperature and humidity sensor on my raspberry pi 2. It does not give me feed back information. i have my ARM i2c protocols on and i wired it correctly but it ...
1
vote
2answers
305 views

Calibrate PH-4502C pH meter

I have a pH meter (DIY-4502C) hooked up with Raspberry Pi. However, the instructions to calibrate is in Chinese and seems outdated. Does anybody know how to calibrate it for measuring pH4-7?
1
vote
0answers
22 views

DS18B20 temp sensor works on Pi 3B+ but not Zero W

I have a breadboard prototype working with a cabled (waterproof and regular temp) DS18B20 sensor and a AM2302 sensor on a 3B+. All is well with it recording at a set interval from each sensor. I'd ...
2
votes
0answers
32 views

DS18B20 reading double after long use

I installed two DS18B20s on a pi almost a year ago. They have worked great until the last couple months. I am doing a bit of a stress test on them and have been polling them every second for almost a ...
0
votes
2answers
38 views

ADS1115 simplest.py works in terminal but not in Thonny

I defined two GPIO pins as SCL and SDA for another I2C, (e.g., i2c3 on busnum=3). ADS1115 was successfully detected by runing (sudo i2cdetect -y 3). Also, the modified simplest.py (where ...
2
votes
1answer
62 views

DHT11 sensor and the wrong voltage may have fried my RPi3

I just bought a package of sensors online, a few things were really easy to set up, but the DHT11 (3 pin version) temperature and humidity sensor was giving me problems. Here's what I did: Following ...
2
votes
1answer
82 views

Take 5 images a second, triggered by motion sensor, switching between 2 cameras depending on time

I'm working on a project similar to a security camera with a Raspberry Pi NoIR Camera Module v2 and a FLIR Lepton 3.5 on a purethermal 2. I am somewhat new to this and am not sure how to proceed. ...
0
votes
1answer
60 views

Home System with Raspberry or Arduino?

I am sketching a wireless system for my house to handle: from 4 up to 10 magnetic/pir sensors thermostatic sensor + display and 3 buttons (on/off heaters and up/down threshold temp) change the actual ...
1
vote
1answer
43 views

SW-420 Sensor/Code doesn't work--help with vibration sensor

I'm working on a project that uses SW-420 sensors to detect vibrations. I was originally following this tutorial and my code is pasted below. I used a previous post to determine that I should be using ...
1
vote
0answers
67 views

Why is my raspberry pi crashing? Reading DHT11 - Logging to text file with python

So, I'm pretty new to this. Want to play around with temperature & humidity sensors. I have a pi with 4x DHT11 sensors, on wires of ranging lengths hosted in different situations. I've written a ...
0
votes
2answers
73 views

Camera with speed sensor on raspberry pi? [closed]

im useing raspberry pi 3 with ultrasonic sensor and normal usb camera . so i will connect the raspberry pi to AZURE IOT HUB so ive setted the ultrasonic sensor in a place so if any car pass that place ...
1
vote
2answers
182 views

5V-3.3V Sensors Confusion

Most of the sensors available in the market requires 3.3V-5V. The GPIO of the Raspberry Pi is 3.3V max only and not 5V tolerant. I have seen tutorials around the internet that they supply the sensors ...
1
vote
1answer
119 views

Ultrasonic sensor stops working a few minutes later

I want to get distance continuously using while loop but a few minutes later my code suddenly stops working and doesn't get distance (there is None value in distance variable) I have changed first ...
0
votes
0answers
21 views

Digital IR bandpass filter using Bayer data from NoIR camera?

I have a project that requires the use of a localized portion of the spectrum in the NIR range. Say from 750nm to 800nm. For the time being, I'm using an optical longwave bandpass filter specifically ...
1
vote
1answer
10 views

DHT11, MQ-X at the same time

I'm wondering can I detect temperature, humidity and gas at the same time using DHT11, MQ-X sensors? If so, how? I can find numerous solutions using each of them separately, but not simultaneously.
1
vote
0answers
40 views

Which sensor should I use to detect a ping-pong ball going through a tube? [closed]

I am working on a game in which a player throws a ping pong ball through a tube. I want to automatically detect it. I first got a PIR sensor, but that appears to not work well as it was too close ...
0
votes
2answers
52 views

i2cdetect detects device - Pi can't access / find it

Currently I'm working with a gyro-sensor and need to use i2c in order to use it. Using a Pi 3 B (os:NOOBS) on kernel: Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/...
0
votes
1answer
36 views

Upon starting Node-RED my Pi detects all of its i2c addresses as connected

I've been trying to connect an MPU-9250 module to my raspberry pi B+ in order to output the sensor's data through a Node-RED UI, i followed this tutorial to setup the MP-9250: https://kingtidesailing....
0
votes
0answers
37 views

Using Raspberry Pi to make Sonos work with any receiver (autoswitch)

Detect audio (voltage) Send IR command (switch receiver input) Features Learn IR Command Adjust detection sensitivity Result - When a Sonos Connect zone is activated it switches receiver to the ...
0
votes
0answers
48 views

How to integrate digital pressure transducer w/ raspberry pi? Keyence GP M010

I'm trying to figure out how to integrate two Keyence GP M010 pressure sensors w Raspberry Pi 3 B+ to automate data collection into a CSV file. The issue I'm having is w/ determining how the sensors ...
1
vote
0answers
23 views

I'm curious: has anyone build a HAT and sold it commercially? Looking for experiences [closed]

Has anyone build a HAT and sold it commercially? Looking for experiences on how to the production and distribution is. Has anyone ideas on how to promote a HAT when you built it? I find there is ...
0
votes
0answers
35 views

How to connect maxbotix ultrasonic range sensor through GPIO

I got a Raspberry Pi 3 B+ over Christmas which came with a breadboard (i.e. I'm new to all of this). I recently bought a Maxbotix HRLV-EZ4 ultrasonic sensor. I am using the Canakit GPIO Breakout ...
0
votes
1answer
35 views

How to connect with a 24 VDC Ultrasonic Sensor

This is probably a rookie question but I was interested in hooking up my RPi 3 B+ to the following ultrasonic sensor to measure water level in a humid environment (for arguments sake, the Pi will not ...
1
vote
2answers
47 views

TSL2561 Lightsensor with Python 2.7 and rpi.gpio

I want to add a TSL2561 to an existing (Model B, Wheezy) system that is built on Python 2.7, and uses some other GPIOs (not using I2C), with the module rpi.GPIO. The TSL2561 python library has a ...
0
votes
1answer
53 views

HC-SR04 Sensor stops reading

I am working on HC-SR04 ultrasonic sensor for my project. I made the connections given here. Here is my code int main(){ int count = 0; if (gpioInitialise() < 0) { qDebug() << "...
1
vote
1answer
87 views

What can I use to detect a certain resitance and then have it send a signal to the gpio

I have bought a FlexiForce force sensitive resistor, which can measure weights from 1-100lbs with a driving voltage of 5V (although I plan on adjusting the range to 10-300 by setting the voltage to 0....
0
votes
1answer
68 views

GPIO pins mind bogling error

Raspberry pi 3 b+ I'm trying to make an Obstacle avoidance obstacles. It's a very simple project. I tried with one ultra sonic sensor, it worked. Gave me the distance which i could further ...
1
vote
1answer
130 views

Trouble accessing Sensirion sht21 though multiplexer tca9548a using i2c and python

I can't reach my sht21 sensor throughout the Multiplexer tca9548a (adafruit). When I run it with python3 in the raspberry pi's terminal, I get this error report: Traceback (most recent call last): ...
3
votes
2answers
117 views

How the fluctuation in MPC3008 ADC unused channels is explained?

I am using mpc3008 in order to convert the analogue signal of two sensors, for a rpi3. The sensors are, the SEN0189 turbidity sensor and the SEN0244 TDS sensor. The code I am using is the ...
0
votes
1answer
23 views

Will connecting a photoresistor module affect a mains relay in anyway?

I have a raspberry pi connected to a mains relay, which is connected to an ac lamp and outlet onto a breadboard. I want to add a photoresistor module to the raspberry pi/breadboard but I'm afraid it ...
0
votes
2answers
74 views

Small pulses - DHT11 relay triger

I'd like to trigger my relay to turn on my lamp when the humidity level measured is greater than 85. Here's the code I've been using. import Adafruit_DHT import RPi.GPIO as GPIO import time sensor = ...
0
votes
1answer
52 views

What are some common software design patterns, when it comes to raspberry pi programming? [closed]

I am kind of confused when I see raspberry pi code for reading sensor inputs, opening lights e.t.c. I am not experienced with python, but I would expect that code is much like in ui programming. ...
0
votes
1answer
200 views

Raspberry Pi not detecting MPU6050 with i2cdetect

I am trying to connect my GY-521 MPU6050 to my Raspberry Pi Zero W using I2C detect but I'm unable to find the MPU6050 on the table. The results using i2cdetect: pi@raspberrypi:~ $ sudo i2cdetect -...
1
vote
1answer
106 views

Really strange but with RTIMULib2, why does it not work in a class?

I'm doing a project with an accelerometer/gyrometer combo and I'm using the great RTIMULib2 library. I know installing it and getting it to even work at all is a common challenge, but I've gotten it ...
0
votes
1answer
31 views

How to dynamically determine objects based on some uniqueness?

As the title states I looking for a way to (detect and then) determine a object within some range. The object will be forklift or "train" in the factory. Main goal is to provide some GUI from which it'...