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
15
votes
6answers
39k 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....
2
votes
3answers
4k 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?
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 ...
44
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
1answer
111 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 ...
13
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
588 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
4k 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/...
2
votes
1answer
175 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. ...
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
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, ...
3
votes
1answer
286 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 ...
0
votes
4answers
252 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 ...
0
votes
1answer
150 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 ...
19
votes
7answers
48k 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
12k 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
15k 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 ...
3
votes
2answers
5k 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
594 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
2answers
253 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 ...
3
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('...
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
878 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
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
881 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?
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
2answers
922 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
1answer
7k 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
935 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 ...
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
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
1answer
679 views

Connecting DHT11 sensor

I want to use the DHT11 sensor with my Raspberry PI 2 Model B. I'm using pin#01 for the VCC, pin#39 for GND, but I don't know which pin should I use for DATA? Should I enable some GPIO ports to use ...
0
votes
1answer
4k 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
0answers
247 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’...
0
votes
3answers
10k views

Python code for SW-420 vibration sensor [closed]

I bought an SW-420 vibration sensor. So, I want to make a sensor for touch and vibration detection. This is my first Raspberry Pi project. I was googling for open source Python code but couldn't ...
0
votes
0answers
301 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-...
-1
votes
1answer
164 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?