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
1 answer
31 views

Quasi - simultaneous temperature measurements on a metal rod

I am preparing teaching material for a thermodynamics laboratory for first year Physics students. The students at this point of their study are very capable with Python data analysis, plotting etc. I ...
1 vote
1 answer
60 views

I2C Interfacing with HIH6130

I'm trying to read data from sparkfun's HIH6130 Breakout for measuring humidity and temp data. Following this instructable (though without the i2c shield for the pi), the provided python code just ...
1 vote
1 answer
195 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'...
2 votes
1 answer
456 views

Air pressure transducer to be connected with RPi 4

I just want a recommendation for an analog air pressure transducer with a range from 0-10 bar (to be used in an electro-pneumatic system) to be connected easily with RPi 4 (compatible with RPi 4) and ...
0 votes
2 answers
474 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
1 answer
87 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 ...
1 vote
2 answers
2k views

Play different videos with omxplayer depending on reported sonar distance

I am new to Python. What I want to do is to play different videos depends on distance using an Ultrasonic distance sensor. For example, if the distance <= 20, play movie1. if the distance > 20, ...
1 vote
1 answer
147 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 ...
0 votes
1 answer
789 views

Lego EV3 infrared sensor to raspberry pi 3 direct connection via UART?

I connected this sensor with raspberry via UART( I have found that this IR sensor is one of few Lego sensors that connects via UART), and make serial_read and serial_write python scripts, just to test ...
1 vote
1 answer
51 views

Connecting an analog level sensor

First time poster here. I'm okay with the programming side but have some issue with the electronics side I have raspberry pi 4 and wish to connect a submersible water level sensor to it. The sensor ...
0 votes
1 answer
2k views

Is it possible to use the Playstation 4 camera on Raspberry Pi?

I want to use a stereo/depth camera with my RPi 4. The Playstation 4 camera appears to be a stereo camera, and is significantly cheaper at $40 (on amazon) than any others like Intel RealSense, Mynt ...
2 votes
2 answers
2k views

Air pressure switch for balloon

For a demo that I want to prepare I need a pressure switch (pressure sensor) that regulate the pressure inside the balloon. The schema is the following: balloon inflated by an air compressor, ...
0 votes
2 answers
4k views

Raspberry pi interfacing with AD8232 using python

I have already seen the other post but I want a python code through with I can connect my raspberry pi and ECG sensor ad8232 I am totally new to raspberry pi interfacing so I don't completely ...
1 vote
1 answer
245 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 ...
0 votes
1 answer
428 views

Need assistance hooking up Sharp GP2Y0A41SK0F IR sensor

So I have this... Infrared Proximity Sensor Short Range - Sharp GP2Y0A41SK0F & 1 MCP3002. I have been scouring the web for hours, trying all code examples and I still get 0 as a reading no matter ...
-1 votes
1 answer
44 views

Raspberry Pi hardware ( water Pump + soil moisture)

I have a water pump for raspberry Pi (https://thepihut.com/products/amphibious-horizontal-submersible-pump) that I want to use. Do I need a relay module for this water pump to make it work with ...
1 vote
3 answers
2k 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 ...
1 vote
1 answer
208 views

TFMini Plus frame rate

I'm trying to make a python script to read a TFMini Lidar module, and I would like to make the readings less frequent. For that I would need to decrease the frequency. I've been reading the TFMini ...
1 vote
1 answer
95 views

Incorrect Values from counting rising edges from the B5W-LD0101 particle counter sensor

For a couple of days I've been trying to make this B5W-LD0101 particle sensor work (https://www.digikey.it/it/datasheets/omron-electronics-inc-emc-div/omron-electronics-inc-emc-div-en_b5w-ld0101-1_2). ...
1 vote
2 answers
2k views

PIR motion sensor HW-416-B does not behave properly. No motion but input is triggered regardless

So, this motion sensor works when it is taped to my desktop computer...but when I move it to the wall, specifically a higher spot on the wall, it just keeps giving back an input signal. So here is a ...
0 votes
1 answer
78 views

Did i fry MH-Z19B CO2 sensor with my raspberry PI?

I got a new MH-Z19 Sensor, which i connected to my raspberry PI. The first time everything was okay, but later i connected the pins wrong by moving everything by one pin to the left. See the table 2 (...
-1 votes
1 answer
100 views

Multiprocessing to speed up data acquisition for I2C devices

Here's my situation: I have four FDC1004 devices that I want to have connected to an array of 64 electrodes through four ADG1206 16:1 multiplexers. Each device is slaved to a pi4 using separate I2C ...
0 votes
1 answer
710 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 ...
0 votes
1 answer
281 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
1 answer
2k 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?
6 votes
2 answers
395 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 -- -- -...
2 votes
1 answer
1k 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 ...
1 vote
1 answer
52 views

Power Monitoring Physics Experiment

Hi i am just planning a Physics experiment where i accelerate Ionized Gases onto a target sample. For this Experiment i need to monitor the power constantly over a week or longer. For my later data ...
0 votes
2 answers
279 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 ...
0 votes
0 answers
25 views

Raspberry Pi Zero detecting too many i2c

After this command in raspberry pi i2cdetect -y 1 Its detects too many i2cs 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 08 09 0a 0b 0c 0d 0e 0f 10: 10 11 12 13 14 ...
2 votes
2 answers
2k 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 ...
0 votes
0 answers
95 views

Hooking up a rotary encoder to raspberry pi 4

There are a ton of questions on this, and I'm pretty new at working with rotary encoders. I purchased this one Taiss E38S6-600-24G, thinking (incorrectly I might add) that it would be a simple thing ...
1 vote
3 answers
597 views

PIR Motion sensor detecting without touching

I have setup my raspberry pi and have inserted the correct wires to the motion sensor, i am currently running a a simple script that detects motion however it constantly outputs that it motion is ...
0 votes
2 answers
760 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 ("...
2 votes
1 answer
2k views

Problem with 1-Wire devices not showing up on GPIO4

For a project I want to implement 1-Wire communication in a Raspberry Pi Zero W. The goal is to use a Maxim Integrated Max17313 Fuel Gauge for inspecting battery usage. To make sure the implementation ...
0 votes
1 answer
244 views

Rpi4B python I2C AK8963C magnetometer sensor troubleshooting problem

While attempting to read data from an ak8963c sensor board over i2c I am only getting 0s as a response except when reading the first 2 registries. I have checked my connections and tried other devices ...
0 votes
2 answers
137 views

BME280 sensor: OSError [Errno 5]

I recently bought a Raspberry Pi 4B along with a BME280 T/P/humidity sensor. I use the bme280 and smbus2 Python libraries to interface with the sensor. For a while it worked pretty well, but yesterday ...
1 vote
1 answer
336 views

Using Rpi python and MCP3008 ADC to read flame (RGB) sensor data for FFT analysis

I have an IR pyroelectic flame sensor which detects flames within the 8-10hz of flame flicker. I am new to the ADC world so any help is very appreciated. Documentation: https://pyreos.com/wp-content/...
0 votes
1 answer
114 views

BME280 via DTOverlay Fails, But using 100% python query works!

BME280 via DTOverlay Fails, But using 100% python query works! Enable DTOverLay for BME280 in /boot/config.txt...** dtparam=i2c_arm=on dtoverlay=i2c-sensor,bme280,addr=0x77 # i2cdetect -y 1 0 1 ...
0 votes
1 answer
970 views

TI sensortag cc2650 connection with Raspberry Pi

I have problem with connection between Rasberry Pi 3 and TI sensortag CC2650. As soon as I power on raspberry, sensortag shuts down, and I can not see him, either from raspberry or from mobile ...
5 votes
1 answer
1k 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 ...
0 votes
1 answer
161 views

Optical Encoder with GPIOZERO

I am trying to help some 8th graders build a robot. They learned about the Raspberry Pi and Python with GPIOZERO in an earlier class. They have wheels spinning using the Motor class from GPIOZERO and ...
0 votes
0 answers
9 views

pymodus unknown message

I am using Pymodbus in Raspberry Pi for data acquisition from Modbus rtu (RS485) sensors. Other sensors worked perfectly fine so coding is ok. However one particular sensors is giving me this message ...
1 vote
2 answers
232 views

remote sensors for soil moisture

I just received my first Raspberry Pi (Raspberry Pi 3 Model B+) and was thinking about starting my project journey with setting up some kind of soil moisture monitoring for the plants in my appartment ...
0 votes
0 answers
83 views

Import data from sensor into node-red

I’m doing a uni assignment on Iot, and we are doing a soil moisture system with a water pump. One stipulation is that we need to use Node-Red. List of components *MCP3008 8-channel ADC Raspberry Pi 4 *...
1 vote
2 answers
358 views

hc-sr501 goes high every minute

So I bought three HC-SR501 PIR and all of them keep trigging (high) every single 60 second on the dot. I don't know what I am doing wrong. The PIR does detect motion when a person is moving but it ...
1 vote
1 answer
521 views

Infrared Receiver for remote controll not working

I am using a raspberry pi 4 with raspian. uname -a yields: Linux raspi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux I am trying to get an IR-receiver working (model OS-...
0 votes
0 answers
26 views

Code for reading values from ML8511 and MQ131 sensors

I'm looking for a way/libraries to read the values from the ML8511 and MQ131 sensors with a MCP3008 ADC on Raspberry Pi 3B using Python.
0 votes
1 answer
57 views

Detect breakage in wires [closed]

I need a device for some experiments that could help me detect when a wire breaks or disconnects. I need to be able to tell exactly how long it took for the circuit to break too. The only purpose of ...
0 votes
0 answers
40 views

IMU MPU9250 Magnetometer data Question

I am working on implementing compass using IMU magnetometer using https://www.adafruit.com/product/4554. While calibrating magnetometer with its offset and scaling factor, it works well right after I ...

1
2 3 4 5
14