Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [sensor]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
23 views

monitor air quality

I would like to build a device to monitor few chemicals (CO, NH3, H2S) and particulate (PM2.5 and 10) in the air. I have been looking online for related sensors and I found that the MQ-X series (CO=...
0
votes
2answers
67 views

I2C MPU9250 Gyro/Accelero/Magneto 9-DOF Sensor MicroPython Programming Problem

so I've recently set up my raspberry pi. Am following a tutorial for the MPU9250, from https://github.com/tuupola/micropython-mpu9250. I have did a install of the micropython-mpu9250, and tried the ...
1
vote
1answer
39 views

Print the amount of vibration on the screen in C

I am able to detect a vibration when I am using 801s vibration sensor module sensor How to measure and print the amount of vibration level on the screen in C? I am checking now only state: HIGH and ...
0
votes
2answers
87 views

How can Rpi3B+ read the output of the 801s vibration sensor module?

Currently I'm trying to do a project using rpi 3b+ with 801s vibration sensor using this tutorial https://github.com/Shmoopty/rpi-appliance-monitor#notification-settings I'm beginner with rpi and ...
0
votes
1answer
85 views

Connecting multiple sensors to Raspberry Pi 4 B

I have a Raspberry Pi Project in mind but I'm completely new to this matter and have literally no idea. My plan is to create a transportable Weather Station (which includes a temperature sensor, air ...
1
vote
1answer
82 views

DHT11 Temprature sensor makes raspberry pi go crazy!

I am trying to use the DHT11 sensor temprature and humidity sensor with my Raspberry Pi 4B. When I connect the sensor with my Raspberry Pi and turn it on, the red LED on it starts blinking and it can'...
-1
votes
1answer
151 views

Piezo sensor to pick up acoustic instrument signal using Rpi and ADC

I want to read analog inputs from piezo sensors like these on Raspberry using python, which ADC do you advise me with 8 or more channels and how to wire and program it to get digital values?
3
votes
1answer
49 views

Pi locking up trying to use rising/falling edge detection

I have a B+ v1.2, with a motor controller and 2 quadrature encoders setup. It's running Arch: 4.19.69-2-ARCH armv6l. It's completely locking up, requiring a plug-pull when either of the encoders ...
0
votes
2answers
105 views

MCP3008 with photoresistor, analog to digital, noisy readings

I am trying to read values from a photoresistor. I would like to be able to read the 'level' of light, not just a binary signal. So I bought an MCP 3008 analog to digital converter, but I am running ...
0
votes
0answers
23 views

How can we acquire an analog signal having both positive and negative parts , i.e. a bipolar signal, using Raspberry pi3 B+ module?

I am using raspberry pi 3 B+ board. I have to acquire analog voltage signal having both positive and negative parts, i.e. a bipolar signal How can i acquire this signal with the R-pi? I have tried ...
1
vote
1answer
68 views

DS18B20 Temperature Sensor RJ-x

I am looking to create a complete temperature humidity sensor system with 72 DS18B20 sensors. I am aware that each sensor receives it's own unique identifier and you are able to daisy chain them ...
0
votes
1answer
132 views

Reading analog value Raspberry Pi

I am a newbie with the Raspberry Pi. I want to measure Temperature Reading in 12/16 bit resolution. can someone guide me how CKT should be designed and How can read value using software. usually ...
0
votes
0answers
35 views

HC-SR04 Ultrasonic Rangefinder readings are off by a large margin

I'm making a robot that should avoid obstacles and im using a HC-SR04 to measure distances. My problem is that my readings are off by a large margin. when there is no obstacle in the way I get a ...
1
vote
1answer
35 views

What is the hottest part, under light load?

For a hobbyist weather station project I am going to use a Raspberry Pi and a Si7021 temperature/humidity sensor. If possible, I want to use one of the available casings, and enclose my Pi and the ...
2
votes
1answer
51 views

Reading more than 8 bits from an SI7021 sensor

I am using the Si7021-A20 sensor on a Raspberry Pi Zero WH (headless, controlled via ssh and VNC). I want to get readings using Python (version 3). However, I have a very hard time to actually get ...
2
votes
1answer
67 views

1-wire device not detected

I'm having trouble getting a 1-wire sensor to be detected on my Raspberry Pi Model 3 B+. The sensor is this temperature and humidity sensor. I have wired the red wire to 3.3V, the black wire to ...
2
votes
0answers
27 views

Pin Crosstalk Issue [closed]

I'm working on a quick project with my dad for his condo. He wanted to setup a bunch of moisture sensors around the condo near sources of water (sinks, bathtubs, toilets, etc), which, if triggered, ...
1
vote
1answer
32 views

Connect 2 SHT25 to measure 2 sets of temperature and humidity at 2 different sites

I want to connect 2 SHT25 to measure 2 sets of temperature and humidity at 2 different sites . How should I connect it to Raspberry Pi 3. Thanks for your help
0
votes
1answer
145 views

Multiples i2c devices with the same address

I am trying to find the simplest way to connect multiple 15 IMU sensors (ICM-20948) to a wearable suit.The thing is that they all have fixed addresses. The solutions I found so far are: Using a ...
1
vote
0answers
96 views

raspberry pi3 + fingerprint

I'm looking for a way to connect fingerprint scanner with raspberry pi3 using python. I'd like to use only gpio or hat (not usb) interface. I'm searching for a while without figured out, so I've ...
1
vote
2answers
43 views

Setup requirements for multiple i2c sensors

I'm building a project that requires a pi to query multiple 9-DoF IMUs through I2C ( ideally up to 100, but 16 should be enough for the start). I'm wondering if this is even possible and what kind of ...
1
vote
1answer
70 views

Reading Bytestream from GPIO / External Interrupt and CLK

So I have an external master device which bangs out a byte stream (DOUT), it indicates the upcoming stream on an DRDY. The timings are given from the master on an DCLK line. These three lines (DRDY, ...
1
vote
1answer
47 views

Why Raspberry Pi Zero W is missing to log data constantly every second?

I'm doing a project where I want to record IMU (Inertial Measurement Unit) readings. I want to use pretty high sampling frequency and I'm using Raspberry Pi Zero W to send PWM signal of 800Hz to ...
1
vote
3answers
81 views

GPIO to detect if external 5v source is turned on or off?

I'm using a Pi Zero W and I'd like to connect a 5v source to a GPIO pin to detect if the 5v is on or off. I know the GPIO is only digital I/O and 3.3v max, so is a simple voltage divider enough or do ...
0
votes
2answers
95 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
246 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
45 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 ...
1
vote
2answers
61 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
51 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
125 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
119 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
48 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
61 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
173 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
124 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
106 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/...
2
votes
1answer
174 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
166 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
3answers
3k views

PH-4502C pH Sensor Calibration and ADC using MCP3008, PCF8591, and ADS1115

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
62 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
38 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
251 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
107 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
171 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. ...
1
vote
1answer
99 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
97 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
245 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
598 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
342 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
38 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 ...