Questions tagged [sensor]

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

122 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
2answers
305 views

MMA845X accelerometer mapped at 1C

I have a MMA845X accelerometer mapped at 1C: 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- 1c -- -- -...
4
votes
1answer
2k views

Smoke detection using raspberry pi?

I was interested in making a smoke detection unit which starts taking a video and also sends an SMS once the detector detects smoke; the problem is, which smoke detector should I use? Also, how do I ...
3
votes
2answers
1k views

HC-SR505 Mini Infrared PIR Motion Sensor

I have a raspberry pi zero and a HC-SR505 (not 501, which apparently is what I should have bought). I'm a programmer, with only a little electronics from long ago, but some people suggest the it will ...
3
votes
1answer
959 views

Not getting a response from a connected PIR sensor

I have a PIR sensor which I'm using connected to a Raspberry Pi 3 Model B as part of a Magic Mirror project. I'm running this module for the sensor. I've had the Motion Sensor working before, but now ...
2
votes
3answers
35 views

connect multiple temperature sensors to rpi

I need to connect multiple temperature sensors to my RPI. can you, please, elaborate whether/how can this be done with this or this unit? or can you suggest other unit? I need to measure temp on the ...
2
votes
0answers
59 views

Raspberry Pi requirement for water outflow detection from pump and switch off motor if no water coming

I have gone through this answer before i post question here, https://www.hackster.io/ben-eagan/raspberry-pi-automated-plant-watering-with-website-8af2dc https://mtlynch.io/greenpithumb/ https://www....
2
votes
1answer
37 views

Reading Frequencies with Python

hello ladies and gents. your knowledge helped me a lot until now but now i have a question. i want to read out the frequency of a 3.3V squarewave. (The unit i want to readout is a capacitive ...
2
votes
0answers
40 views

Using GPIO on the Bitwizard DMX hat board

I have a rpi 4, with a relays board on top of it, and a Bitwizard DMX hat board on top of that. The Bitwzard board doesn't have a male header on the top, so I am unable to connect my sensors. It was ...
2
votes
0answers
42 views

Measuring temperature at a distance with an infrared sensor - Missing lens?

Not sure if this is the ideal stackexchange for this question but I didn't know which other one it should be. I am trying to measure temperature at a distance via an infrared sensor with a Raspberry ...
2
votes
0answers
143 views

Interpreting voltage output on ADC with rated AC current sensor

I know I have asked similar questions before, but I have switched sensors and encountered interesting results that I do not understand. Purpose: I intend to use an AC current sensor to measure ...
2
votes
0answers
50 views

Unable to intercept the code of my remote control at 433 MHz with RaspberryPi

I'm trying to reproduce the code generated by my universal 4-channel radio control with RaspberryPI. I cloned my remote with a universal remote like this: I used the libraries included in 433Utils ...
2
votes
0answers
41 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 ...
2
votes
1answer
247 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. ...
2
votes
3answers
887 views

Connecting multiple load cells Pi Zero W to read individual values

I have a project in mind where I want to measure the weight and position of an item on a shelf. The idea was to mount the shelf on a load cell in each end and then get the weight and ratio between ...
2
votes
1answer
840 views

UART pins not reading sensor output RPI3

This is my first pi project so im a bit new at this. Im trying to connect a senseair K-30 CO2 sensor to the pi via the UART gpio pins. This is the sensor I am using: https://www.co2meter.com/products/...
2
votes
1answer
191 views

Pi3 Interface to IR Sensor stays High

I am new to RPi and trying to trigger a camera with a motion detector. The motion detector reads High (1) all the time, so pictures are taken continuously. I had the IR detector working with an LED ...
2
votes
0answers
303 views

Latency on a Raspberry Pi camera

I'm making a flight controller and want to stabilize the x-y plane using optical flow, which requires almost instantaneous processing thus requires almost no latency. How much latency does the Pi ...
2
votes
0answers
227 views

multiple DS18S20 temp sensors without using 1wire

Can anyone tell me if it is possible to connect the multiple DS18S20 sensors to different GPIO ports and pull the temperature on different ports, as opposed to a single wire option where I can only ...
2
votes
2answers
1k views

How can I stop the overlay of images between my pi camera and FLIR camera?

Totally newbie here, I'm trying to do a project with the FLIR sensor and a Raspberry Pi. They provided me with some code that turns on both the Raspberry Pi Camera and the FLIR sensor and overlays the ...
2
votes
0answers
359 views

Motion sensor does not detect motion unless “shaken”

I have the following hardware: Raspberry Pi 2 Motion sensor (http://www.amazon.com/Great-Deal-HC-SR501-Infrared-Raspberry/dp/B00M1H7KBW) Female to female wires And followed the tutorial here: https:/...
2
votes
2answers
1k views

Analog input with MCP3008

I'm trying to connect a Turner C-Sense pCO2 sensor to an RPi2B using an MCP3008 ADC. The probe is powered via dedicated 9V inverter. The probe's analog output wires include a signal out (+) and AGND (-...
1
vote
0answers
48 views

How to increase sampling rate of Raspberry Pi to 10Msps using external ADC or Microcontroller

I am working on a project where I want to use 3 electret microphones to triangulate the origin of a noise. I will add a 4th microphone for some additional accuracy. The microphones will be around ...
1
vote
1answer
284 views

How can Rpi read the MAX30100 / MAX30102 Oximeter?

I want to connect the sensor max30100 to the Raspberry Pi board.I think everything is accurate.When I run the code, the red light flashes.I activated I2C.max30100 device address 0x57 is detected. When ...
1
vote
0answers
32 views

rasberry pi 3 says it's hot (50*C), but is cool to the touch

My raspberry pi 3 reports a [stable] temperature of 49.5 *C - which is pretty warm. However, when I touch all of the components with my finger, including the CPU, it does not feel hot or even a ...
1
vote
1answer
63 views

Check status of float switch in water reservoir

I have a standard float switch in a remote water reservoir connected to a normal electric cable (100m+ long). I want to check with a raspberry pi if the float switch is on (i.e. water level is low) or ...
1
vote
0answers
21 views

How can Rpi4B connect and read the the EC4-2000-CO sensor?

How is Raspberry pi 4 connected with EC4-2000-CO sensor? Can someone please let me know about the hardware and software setup of the same?
1
vote
0answers
29 views

Combining programs dht11 and soil moisture sensor

Hey I'm doing a project and I need to combine programs of dht11 sensor and soil moisture sensor..but they're in different directories and their libraries also. I'm not able to run them simultaneously ...
1
vote
0answers
23 views

Cord Tension sensor

I need to detect when the tension in a (micro) winch cord either exceeds or falls below maximum or minimum tension. The winch is powered by a stepper or servo motor and the intent is to back off when ...
1
vote
0answers
76 views

Grove - IMU 9DOF v2.0 with Raspberry Pi for calculating position, compass values

I am using Grove - IMU 9DOF v2.0 with Raspberry Pi to calculate the linear displacement, compass values. I followed the code given in this GitHub URL. While running the read9Axis.py code (which is ...
1
vote
0answers
71 views

Rpi AdaFruit python library controlling SPI MCP3008 of eTape Liquid Level Sensor problem

I have a rpi4 and have successfully replicated the project listed here using the eTape sensor (etape tutorial) I am satisfied with the performance using long breadboard and T-cobbler. In order to make ...
1
vote
0answers
19 views

Infrared Camera Project: Is the following possible?

first post here/new raspberry pi user. I'd like to use the raspberry pi with the FLIR infrared camera in order to create a display-less security camera that will set a wireless alarm if a temperature ...
1
vote
0answers
36 views

“Attribute Error”- How to display data from distance sensor on lcd display?

I am trying to incorporate LCD display features with the codes that are already written for the sensor. "lcddriver.py" is in "lcd". "distance.py" contains codes for my distance sensor. This is the ...
1
vote
1answer
107 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
vote
0answers
207 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
1answer
60 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
0answers
87 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
0answers
93 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 ...
1
vote
0answers
77 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 ...
1
vote
1answer
143 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
165 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 ...
1
vote
1answer
2k views

Correct wiring for multiple analogue sensors?

I’ve recently embarked upon a project that I’ve wanted to do for a while. My overall plan is to have 3 planting shelves; each will have its own soil moisture sensor, water pipe and LED lighting. The ...
1
vote
0answers
96 views

GPIO commands for contact sensor circuit

I have a simple circuit that goes to a garage door contact sensor then to a resistor then to an LED to show if the circuit is open or closed. I've confirmed that my wiring works with a power source - ...
1
vote
0answers
480 views

Connect multiple sensors on a single USB to RS485 adapter

On tindie I bought a RS485 soil moisture sensor with a USB to RS485 dongle. I want to add more sensors for monotorring multiple plants. Since RS485 is a bus system, it seems basically possible to ...
1
vote
0answers
557 views

How to test IR sensor on OSMC?

I've tried to follow some tutorials on installing an IR sensor to GPIO, with the goal of using an old Xbox remote with OSMC. They basically say to connect it up to pins 1 (3V3), 6 (GND) and 12 (GPIO ...
1
vote
0answers
147 views

sound and flame sensor

SOUND_PIN = 4 FLAME = 2 LED = 26 LED2 = 18 PIR = 6 import RPi.GPIO as GPIO import time import datetime import os import picamera GPIO.setmode(GPIO.BCM) GPIO.setup(PIR,GPIO.IN) GPIO.setup(SOUND_PIN,...
1
vote
1answer
249 views

Using an Xbee on raspberry pi 3 model b

I'm a complete newbie to using Raspberry Pi (pi 3 model b). I want to build a smart CO and smoke alarm from scratch, I know what sensors I want to use ( Mq 2 for smoke and mq-7 for CO), however I want ...
1
vote
1answer
110 views

Magmatic sensor's error in MPU9150

I coded the following program to get the acceleration, gyro, and magnetic sensor values by using a MPU9150 that is connected to a Raspberry Pi 2 via I2C. I can get the proper acceleration and gyro ...
1
vote
0answers
143 views

Coin Cell Powered Bluetooth “water on floor” sensor(rope type)

disclaimer, I am quite new to development of solutions around the Raspberry PI, so please forgive If I'm slow at grasping something but, I'm trying to put together a package to implement across ...
1
vote
0answers
619 views

IR Tracking Sensor (TCRT 5000 ) always gives led off as output

I am using a Raspberry PI3 Model B and TCRT 5000 sensor to monitor movement. I am using a Python script(Python3) to read the data from the sensor. Script used - #!/usr/bin/env python import RPi.GPIO ...
1
vote
2answers
576 views

mq5 gas sensor not alerting of leakages

I'm currently using an mq5 gas sensor in my kitchen with the MCP3208 ADC. my code shows a continuous loop of the voltage charge. in the mq5 as it detects gases in the air. It is supposed to print ("...