We’re rewarding the question askers & reputations are being recalculated! Read more.

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
0answers
23 views

monitor air quality

I would like to build a device to monitor few chemicals (CO, NH3, H2S) and particulate (PM2.5 and 10) in the air. I have been looking online for related sensors and I found that the MQ-X series (CO=...
0
votes
1answer
128 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 ...
5
votes
1answer
5k views

How to Decode TPMS Sensor data through RPi3 Bluetooth

I'm working with a Bluetooth TPMS Sensor (TP630). Here I have some important information about the sensor: Description: ➤ Bluetooth Transmit Power: 0dbm MAX ➤ Processor: 8-bit MCU / S08 core, ARM ...
0
votes
1answer
85 views

Connecting multiple sensors to Raspberry Pi 4 B

I have a Raspberry Pi Project in mind but I'm completely new to this matter and have literally no idea. My plan is to create a transportable Weather Station (which includes a temperature sensor, air ...
0
votes
1answer
73 views

At what instances do we use the Board mode and BCN mode in Raspberry Pi?

I know about the two modes of working in Pi using python, Board and BCN. However, I am really confused as to the instances or situations where I should use them. An example demonstrating their use ...
1
vote
1answer
47 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
1answer
82 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'...
0
votes
1answer
67 views

Passing data from output of a function to be used in a function python

I have a few parts of a weather station together and am running into an issue with functions. the humair fuction returns two values hum and airtemp. The problem is when the sendpost function runs it ...
5
votes
4answers
8k views

How to use JSN-SR04T on a Raspberry Pi?

I want to try out JSN-SR04T, which is an ultrasonic distance measuring module, that is also supposedly water proof. The main reason that i want to try this module over the HC-SR04, is because the JSN-...
0
votes
2answers
62 views

I2C MPU9250 Gyro/Accelero/Magneto 9-DOF Sensor MicroPython Programming Problem

so I've recently set up my raspberry pi. Am following a tutorial for the MPU9250, from https://github.com/tuupola/micropython-mpu9250. I have did a install of the micropython-mpu9250, and tried the ...
3
votes
1answer
162 views

Raspberry Pi external power supply for sensors

I am working on a project that involves a Raspberry Pi 3B+ and multiple sensors (temp/humid DHT22, pH probe and EC probe from atlas scientific, cameras....). I am trying to figure out how to power my ...
0
votes
2answers
103 views

Small pulses - DHT11 relay triger

I'd like to trigger my relay to turn on my lamp when the humidity level measured is greater than 85. Here's the code I've been using. import Adafruit_DHT import RPi.GPIO as GPIO import time sensor = ...
0
votes
2answers
257 views

I have a dust sensor and I need to take in a voltage from the GPIO pins

I recently got a Dust sensor from a company and it says that the voltage out corresponds to the concentration of dust in the air. How can I use the GPIO pins to get the voltage reading? The voltage ...
1
vote
1answer
39 views

Print the amount of vibration on the screen in C

I am able to detect a vibration when I am using 801s vibration sensor module sensor How to measure and print the amount of vibration level on the screen in C? I am checking now only state: HIGH and ...
0
votes
1answer
139 views

Multiple TTL sensors on serial RX GPIO 10

Is it possible to read more than one TTL sensor on serial RX GPIO 10? I know you can add multiple serial sensors on /dev/ttyUSBx Does the same apply to /dev/ttyAMAx ?
0
votes
0answers
123 views

Read data from RPLidar and getting “Wrong body size”

I'm trying to read response from a Slamtech RPLidar connected to my Raspberry PI 3 via USB and I'm getting the following error: Traceback (most recent call last): File "app.py", line 70, in main ...
0
votes
2answers
93 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
1answer
349 views

Pi3 Model B reaching 100+ degree Celsius immediately after boot

Have a Pi3 Model B, was playing around with GPIO and trying to integrate a PIRO sensor (IR). Must have done something wrong with the circuit as now the Pi immediately reaches 100+ degree Celsius ...
0
votes
1answer
82 views

GPIO pins mind bogling error

Raspberry pi 3 b+ I'm trying to make an Obstacle avoidance obstacles. It's a very simple project. I tried with one ultra sonic sensor, it worked. Gave me the distance which i could further ...
0
votes
1answer
50 views

Raspberry Pi share ppp0 via USB

I have the following setup: Raspberry Pi 3 Sixfab 3G/4G Base Shield v2 Queltec UC20 I have connection to the internet over ppp0 interface but now I want to connect the Instantel Micromate sensor to ...
0
votes
2answers
80 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
2answers
63 views

how to identify if ultrasonic pin is removed from circuit using python code

this is the simple code to measure distance using ultrasoinic sensor attached to reapberry-pi and by writing python script-- import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) TRIG = 16 ...
4
votes
2answers
8k views

How to Connect 6 ultrasonic sensors to a raspberry pi?

I need to connect 6 ultrasonic sensors to one raspberry pi and all six sensors should take the distance measurement same time. I have written the code and made the thread also but only two sensors ...
1
vote
3answers
3k 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?
-1
votes
1answer
147 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?
1
vote
1answer
98 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
1answer
433 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 ...
4
votes
2answers
268 views

Finding /dev Mount Point for Sensor

I am trying to connect to an Airmar 200WX and not having much luck finding the /dev mount point of the sensor. I have the sensor plugged in on boot and dmesg displays the following: [ 1.150836] ...
0
votes
1answer
169 views

How to connect more I2C sensors on top of a RPI shield

I'm struggling with a problem, how to connect more sensors on top of this raspberry shield => https://sixfab.com/product/raspberry-pi-nb-iot-shield/ The shields schematic can be found here and it ...
2
votes
1answer
162 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
1answer
156 views

Atlas PH Sensor Query Failed

Hi I have bought Atlas PH Probe and followed the instructions to use the EZO PH circuit in i2c. The board lights up in blue color. When i use i2cdetect -y 1 i am getting default port 63 in the display....
0
votes
1answer
205 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 ...
2
votes
3answers
582 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
176 views

working with sparkfun tmp102 temperature sensor over windows 10 IoT

I'm looking for help in communicating with the sparkfun tmp102 sensor via windows 10 IoT UWP app on a raspberry pi 2. I've already found this tutorial: https://jeremylindsayni.wordpress.com/2016/06/...
0
votes
1answer
35 views

How to dynamically determine objects based on some uniqueness?

As the title states I looking for a way to (detect and then) determine a object within some range. The object will be forklift or "train" in the factory. Main goal is to provide some GUI from which it'...
0
votes
1answer
246 views

Trouble with Flex Sensor and MCP3008

I'm working on a project currently, though things aren't quite working so I would like whoever's advice. So, to put it briefly, I'm using a Sparkfun Flex Sensor and an MCP3008 hooked up via a ...
0
votes
1answer
184 views

NXP XTRINSIC-SENSE-BOARD using C

https://www.element14.com/community/thread/37836/l/reverse-engineered-sensorso-with-source https://github.com/larsch/rpi-mems-sensor Hello Everyone :) I have a raspberry V1 and a NXP senseboard, ...
1
vote
1answer
1k 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 ...
0
votes
2answers
101 views

MCP3008 with photoresistor, analog to digital, noisy readings

I am trying to read values from a photoresistor. I would like to be able to read the 'level' of light, not just a binary signal. So I bought an MCP 3008 analog to digital converter, but I am running ...
0
votes
1answer
434 views

Frecuent missing data error on DHT11

First of all, as this question involves a raspberry, python, Rpi. Gpio module and hardware build, I thought this was the place for it. In the past I've done some work around Dht11 sensor and python ...
0
votes
1answer
343 views

Control fan and lights with IR and sensing if any human went or left the room

I have a remote controlled light and a remote controlled fan. I want to automatically turn on the fan and light when a human comes into the room and turn off when a human leaves the room. I need to ...
0
votes
2answers
294 views

sense hat sample “snake” returns “event device not found” error

My "sense hat" sits ontop of a raspberry pi 3. I've completed the installation instructions found at https://www.raspberrypi.org/documentation/hardware/sense-hat/ lexu:~> sudo apt-get update lexu:~...
0
votes
1answer
164 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 ...
3
votes
1answer
49 views

Pi locking up trying to use rising/falling edge detection

I have a B+ v1.2, with a motor controller and 2 quadrature encoders setup. It's running Arch: 4.19.69-2-ARCH armv6l. It's completely locking up, requiring a plug-pull when either of the encoders ...
1
vote
1answer
239 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 ...
0
votes
1answer
374 views

Directly connect Lego EV3 infrared sensor to raspberry pi 3?

I am wondering can we connect directly Lego EV3 infrared sensor to Raspberry Pi 3 via I2C? I tried to cut cable from one side, and connect wires on SDL, SCL, GND and 3.3V pins on Raspberry Pi (3, 5, ...
0
votes
2answers
953 views

Incorrect Encoder tick counts using Raspberry Pi

Hi I have a DC motor with encoder which has a PPR count of 990 (No load RPM = 107). However, I tried to read the number of ticks (on a Raspberry Pi 3B) by rotating the wheel 1 turn and I get a PPR ...
4
votes
2answers
289 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
1answer
169 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
0answers
23 views

How can we acquire an analog signal having both positive and negative parts , i.e. a bipolar signal, using Raspberry pi3 B+ module?

I am using raspberry pi 3 B+ board. I have to acquire analog voltage signal having both positive and negative parts, i.e. a bipolar signal How can i acquire this signal with the R-pi? I have tried ...