Questions tagged [sensor]

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

147 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 -- -- -...
Cosmin Mihai's user avatar
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 ...
Hansom DIY's user avatar
3 votes
0 answers
121 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 ...
jay's user avatar
  • 131
2 votes
1 answer
458 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 ...
ibrahim tahoun's user avatar
2 votes
0 answers
750 views

Raspberry pi 4 doesn't detect i2c devices

I am working on a gas flow sensor SFM4100. It's communcation protocol is i2c. And according to gasses bus adresses are changing. For o2 gas, address is 2. When I connected the all pins according to ...
noobinmath's user avatar
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 ...
Björn Ellensohn's user avatar
2 votes
0 answers
142 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....
bommina's user avatar
  • 121
2 votes
0 answers
172 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 ...
M.Parent's user avatar
2 votes
0 answers
81 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 ...
tehforsch's user avatar
  • 121
2 votes
0 answers
1k 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 ...
Tuomas Talvitie's user avatar
2 votes
0 answers
458 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 ...
Tanishq Jaiswal's user avatar
2 votes
0 answers
243 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 ...
The_CPT's user avatar
  • 21
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 ...
Jah's user avatar
  • 29
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 ...
user avatar
2 votes
0 answers
377 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:/...
Uzumaki Naruto's user avatar
1 vote
0 answers
377 views

Having issues interfacing SPS30 with Pico

I am trying to interface SPS30 via UART, but I am not able to start the fan. I am getting some response but it won't match any possible response from the datasheet. Using Micropython. Below is the ...
Robot's user avatar
  • 21
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 ...
Cameron Fuller's user avatar
1 vote
0 answers
33 views

Wireless 3 sensor 1 pi home project

I have little to no experience with setting up a wireless "network" for my raspberry pi and need help. I want to set up 3 hygrometers in separate rooms which connect to the same one pi. I ...
Wolfmercury's user avatar
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 ...
weiserhase's user avatar
1 vote
0 answers
362 views

Trying to plot the ADC values from the PICO similar to what an oscilloscope displays. Just scrolls to the left right now. Total Python newbie

#!/usr/bin/python #Python 3.7.3 # Attempting to plot the ADC values coming from the PICO # Program contains only necessary lines of code for testing plot routine # The Raspberry PI Pico is connected ...
R Bowles's user avatar
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). ...
PMM's user avatar
  • 131
1 vote
0 answers
90 views

RFID to Raspberry pins

I am working on a school project and need to connect Rfid RC522 and tuchscreen to raspberry, problem is that tuchscreen is using same GPIO pins as Rfid, I Got suggested connect RFID using I2c And use ...
WantToKnowMore's user avatar
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/...
GeorgetheCat's user avatar
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 ...
BigBoyProgrammer's user avatar
1 vote
0 answers
231 views

Connecting Sensor Encoder Cb781-80006 to RPi

I need to connect Hp Sensor Encoder Cb781-80006 to my RPI I have an RPi 3 Model B+. I use some recherche and I find this solution with Arduino but I have a problem with the outputs A-C I'm in trouble ...
ma9's user avatar
  • 11
1 vote
0 answers
426 views

DS18B20 stopped recently

I have read a few posts here on my issue, notably DS18B20 not detected by Raspberry Pi, but unfortunately none of the suggestions worked for my issue. I am seeking advice on additional troubleshooting ...
Matha Goram's user avatar
1 vote
0 answers
210 views

PIR sensor always high with Raspberry Pi3 without breadboard

I have a HCSR501 PIR motion sensor, which has 3 pins (Vcc, Out, Gnd) that I've connected to 5V, GPIO 26, and Gnd respectively. Despite following all the steps in tutorials for interfacing the sensor, ...
rhiaanjhaveri's user avatar
1 vote
0 answers
789 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 ...
Tootsie's user avatar
  • 11
1 vote
0 answers
83 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 ...
charles's user avatar
  • 11
1 vote
0 answers
74 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?
Trinity's user avatar
  • 11
1 vote
0 answers
92 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 ...
shreeja kumbargoudar's user avatar
1 vote
0 answers
126 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 ...
Steve Dutky's user avatar
1 vote
0 answers
735 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 ...
Diya Ela's user avatar
1 vote
0 answers
237 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 ...
Spencer Trinh's user avatar
1 vote
1 answer
211 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 ...
JacquesGodin's user avatar
1 vote
0 answers
31 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 ...
Webnewbie2.0's user avatar
1 vote
0 answers
237 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 ...
Juye C's user avatar
  • 55
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'...
Ashutosh Tiwari's user avatar
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?
Miky's user avatar
  • 173
1 vote
0 answers
320 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 ...
icy's user avatar
  • 111
1 vote
0 answers
156 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 ...
JimS-CLT's user avatar
  • 113
1 vote
0 answers
206 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 ...
Basit Anwar's user avatar
1 vote
0 answers
245 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 ...
bgollands's user avatar
1 vote
1 answer
88 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 ...
Beasmygodam's user avatar
1 vote
0 answers
347 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 ...
Dan's user avatar
  • 11
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 ...
user1171426's user avatar
1 vote
0 answers
152 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 - ...
cacodev's user avatar
  • 11
1 vote
0 answers
867 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 ...
Lion's user avatar
  • 207
1 vote
0 answers
172 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,...
jackson's user avatar
  • 11
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 ...
user avatar