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
3
votes
2answers
270 views

Rpi3 might have been fried by wrongly connected DHT11 temparature sensor

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
3answers
9k 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?
16
votes
6answers
41k views

DS18b20 temperature sensor not listed

I would really appreciate some advice on this. Being a TOTAL noob I have closely followed a guide on the internet explaining how to use a DS18b20 sensor with my Raspberry Pi. The guide is http://www....
5
votes
1answer
4k views

Do I need a current limiting resistor in series with a magnetic door sensor?

I'm building an alarm system and I'm using a magnetic door sensor, conected to ground and a pin of the gpio set up with an internal pull-up resistor. As far as I know, this means that the pin will be ...
45
votes
6answers
23k views

How to measure temperature?

What can I connect to the RPi to measure temperature? I think devices connected to the I²C or SPI would make most sense. Here is a question about DHT-22 and other 1-wire devices. But at this stage it ...
2
votes
2answers
931 views

Adafruit 9-DOF or other accelerometer/magnetometer/gyroscope sensor for Raspberry PI 2/3 with Windows IoT

I'm really new to both Raspberry and the whole electronics world: I'm experimenting with the board, using Windows IoT (since I'm quite familiar with C# as a development platform). I'm not, however, ...
14
votes
5answers
15k views

Can I use a DHT22 as a temperature sensor for my Pi?

Is it possible to use a cheap temperature sensor such as the DHT-22 with the Raspberry Pi? I have found Arduino drivers for this and many similar things, and would be comfortable porting the code to ...
12
votes
2answers
17k views

How to use a DS18B20 temperature sensor in my Pi?

I have a few DS18B20 temperature sensors. These are normally used in Arduino projects, but I don't see why not to use them with a Pi. There is a software called DigiTemp that seems to drive the device ...
5
votes
1answer
613 views

GPIO Temperature Sensor not Recognized

I recently tried to connect a temperature sensor (http://www.adafruit.com/product/381) to my RasPi via the GPIO, with a 4.7k (2Watt) resistor connecting the power and data (Source: http://www.cl.cam....
5
votes
4answers
5k views

Read data from Si7021 via I2C

I have an Si7012 temperature / humidity sensor attached to the i2c pins on my Raspberry Pi. Specifically, I have the Adafruit "break-out" with this sensor attached https://www.adafruit.com/product/...
0
votes
1answer
4k views

How do you unconfuse Raspbian when it has WLAN0 and WLAN1 reversed?

I've got multiple data-gathering Rpi3s and they all connect to a router just for them, which is a subnet of my main network. One Rpi is master and communicates with the others to gather all their ...
3
votes
1answer
317 views

TMP36GZ/DS1822 Temperature Sensors not outputting any values

I am trying to connect a temperature sensor to my Raspberry Pi using this tutorial for Windows IoT Core. I have connected all of the wires and MCP3002 correctly, but I cannot read in any values from ...
3
votes
2answers
2k views

Any remote sensors for the Raspberry Pi?

I would like to build a temperature/humidity station with the Pi, but I need several remote sensors to distribute around my house (crawlspace, attic, various rooms where I have plants, and yes, ...
1
vote
1answer
380 views

Is there an easy way to share the power and I2C GPIO pins between multiple sensors without soldering?

I'm trying to connect multiple sensors to the Power and I2C pins of the GPIO header of a Pi 3B, but I can't find an easy way to do it using the standard plug-in jumper cables that are often used for ...
1
vote
1answer
127 views

Raspberry Pi motion sensor always high [closed]

I'm trying to use a motion sensor with the Raspberry Pi but despite all the tutorials I followed, the input of the raspberry pi is always high. Here is my code below. I used a LED to turn it on when ...
0
votes
1answer
395 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
4answers
317 views

Weather proofing a Pi

I'm looking to deploy several copies of the Enviro hat around my garden to monitor temperature and light levels to study the optimal spots to plant new plants. How might I weatherproof the Pis without ...
19
votes
7answers
51k views

Multiple temperature sensors with a Raspberry Pi

I have seen plenty of examples for using one temperature sensor with the Raspberry Pi, however, how can I multiplex 5-6 temperature sensors to a Raspberry Pi? I want to read the temperature from ...
7
votes
3answers
13k views

How to read Analog 5V sensor ouput with Digital 3.3V GPIO?

I bought the "Sunfounder Sensor Kit" for Raspberry Pi 2, but the whole content is made for Arduino (5V). I have bought ADC, Level Shifters but I am stuck because I think I certainly miss a simple ...
11
votes
3answers
9k views

Can I use the 3.3v pin instead of the 5v pin?

I am using a HC-SR04 ultrasonic sensors, and I don't have enough 5V pins on a Raspberry Pi, and I don't want to buy an expander. So is it possible to use the 3.3V pins on some of the sensors? What ...
8
votes
1answer
16k views

How to use the water flow sensor with raspberry?

I'm trying to use this water flow sensor with raspberry: https://www.adafruit.com/products/828 I'm using this python code to read the pulses: #!/usr/bin/env python import RPi.GPIO as GPIO import ...
4
votes
1answer
3k views

Preventing corrosion on YL-69

I am using the YL-69 with a MCP3008 and a Raspberry Pi 3: I am using the sensor for soil moisture measurement (plant monitoring). This is the code which gets analogue sensor values: os.system('...
3
votes
2answers
6k views

PIR Sensor Consistent False Positives

So, I'm trying to set up my raspberry pi to take input from a PIR sensor in order to automatically turn on a monitor when it detects motion. If no motion has been detected in 60 seconds, the monitor ...
3
votes
2answers
4k views

What can I do on a Pi with an Infrared sensor but no Arduino?

So, in a recent batch of purchases from Adafruit, I picked up one of these $2 gadgets: http://learn.adafruit.com/ir-sensor/overview It can pick up signals from TV remotes and such. I'm wondering, ...
2
votes
2answers
254 views

Is the Raspberry Pi suited for sensor and voice recognition project?

I am going to do a project in which the user moves his head in order to control the cursor across the computer screen using accelerometer sensor and gyroscope sensor (not combined). And for the mouse ...
2
votes
2answers
656 views

Mounting IMU on Raspberry Pi

I want to order an IMU like this : https://www.raspberrypi.org/blog/real-time-orientation-display-with-the-minimu-9-v2/, and mount it on the mainboard so that fits mecahnically and is stable. I found ...
2
votes
1answer
257 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
1answer
75 views

What is the correct hardware required to connect multiple analog sensors to a Raspberry Pi 4?

I've been an avid Bonsai enthusiast for some time, and have always wanted to automate some of the day to day tasks (and get some data logging in the process). I'd like to be able to detect: soil ...
1
vote
1answer
1k views

smbus/I2C sensor returns fixed data

I am attempting to use a sensor in conjunction with a raspberry pi smbus. When I try and read a specific byte of data, it returns 181. No matter what byte you tell it to read it returns 181, ...
0
votes
1answer
939 views

HC-SR04 ultrasonic sensor reading becomes highly unusable when PWM is active

Good day I am trying to sample distance using a sonar/ultrasonic sensor for altitude measurement. When the PWM is not active, the sensor gives accurate measurements in centimeters, however with the ...
4
votes
3answers
948 views

I want to use a common power supply to pi and sensors BME280 and BMA180 (sensor modules). Is it possible?

How can I accommodate between the difference in voltage and current levels with a single power source?
4
votes
2answers
3k views

How to connect a 12V fan sensor wire to the Pi

I have a 3-wire 12v DC fan (Sanyo Denki 9S1212M4011). It's actually getting 15V because my "12V" wall wart isn't accurate. When the fan is not running my multimeter tells me there is 14V on the ...
4
votes
3answers
1k views

Powering a sensor using an external power supply board

In my Raspberry Pi project, I need to measure a distance. To do that, I have an ultrasound sensor called "AJ-SR04M" (it is basically a waterproof HC-SR04 I believe). Characteristics of the AJ-SR04M: ...
2
votes
2answers
1k views

9 One-Wire Temperature Sensors - Intermittent Response

I'm using the raspberry pi (model B) with the DS18B20 to read temperature. I connected 9 sensors through the 1wire (port 4), however I'm having a few sensors with a weird problem. The sensors ...
2
votes
0answers
183 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
2answers
4k views

IndexError DS18B20 Temperature sensor

I have this temperature sensor (DS18B20). I've followed the tutorial on Adafruit (here). First I had to setup some modules by doing: sudo modprobe w1-gpio sudo modprobe w1-therm Then I check the ...
2
votes
1answer
8k views

Problems Regarding Raspberry Pi Project with MQ-2 Gas Sensor

Recently I have been learning Python implementations on Raspberry Pi's GPIO system. I'm interested in wireless sensor network examples and decided to make a fire alarm system using MQ-2 sensor as the ...
1
vote
2answers
1k views

Detect water level [closed]

I am currently tracking water level in a container that will start a pump when it gets high. To do this I use 3 wires one tapes to the bottom as a power wire and the other two taped to the wall at ...
1
vote
0answers
93 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
1answer
139 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 ...
1
vote
1answer
622 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
2answers
74 views

Rpi Controlling MPU9250 Accelerometer 20 Metres Away

I am doing a project which require an mpu9250 accelerometer to be connected to a Raspberry pi. Both are kept at a distance of 20m apart. What is the easiest way of data transfer without losses?
0
votes
2answers
220 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
137 views

How can Rpi3B read the CJMCU-8128 (CCS811 + HDC1080 + BMP280) 3 in 1 sensors module?

I've got a CJMCU-8128 board with CCS811 + HDC1080 + BMP280 sensors. There is an explanation how to wire it here: https://www.strawdogs.co/2018/07/Using-the-CJMCU-8128-Breakout-Environment-Sensor-...
0
votes
1answer
5k views

How to connect ACS712 Current Sensor to raspberrypi2?

I have a voltage sensor like this ACS712 Current Sensor and I didn't understand how to connect it to raspberrypi2. All the tutorials that I found on the net concern A rduino. Can anyone help me?
0
votes
2answers
2k views

Why my Raspberry Pi cannot find Si7021 (temperature and humidity sensor)?

I use this temperature and humidity sensor: Si7021, like below link http://www.dfrobot.com/wiki/index.php/SI7021_Temperature_and_humidity_sensor_SKU:TOY0054 I can get the sensor data by Arduino ...
0
votes
3answers
1k views

Connecting multiple light sensors to one port

Is it possible to connect multiple light sensors to one port and similiarly control multiple motors through one port only? (I've tried searching for answers on Google, couldn't find a convincing ...
0
votes
2answers
3k views

ZFM-60 fingerprint reader via GPIO

I'm trying to connect a ZFM-60 fingerprint scanner (https://aliexpress.com/item/Free-Shipping-USB-Fingerprint-Sensor-Support-Android-Windows-System-Optical-Fingerprint-Reader-Sensor/32475559052.html?...
0
votes
0answers
315 views

minimal delay on waking monitor via GPIO/HDMI-CEC

I'm planning on creating a "Magic Mirror". I have already got the UI running to my likings and my Pi-zero is on its way. My concern is that having the mirror powered on 24/7, is not really eco-...
0
votes
0answers
320 views

How to connect sensor to Raspi via poor man’s a/d converter?

TL/DR: I’m using this and there are things I don’t understand about this circuit. Ultimately I’d like to read data from this sensor, but all I get is gibberish. Please, help. I have set up “poor man’...