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
1
vote
0answers
10 views

Raspberry Pi motion sensor always high

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 ...
2
votes
1answer
193 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
168 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
247 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
889 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 ...
0
votes
1answer
40 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'...
1
vote
1answer
284 views

How can Rpi read the MAX30100 / MAX30102 Oximeter?

I want to connect the sensor max30100 to the Raspberry Pi board.I think everything is accurate.When I run the code, the red light flashes.I activated I2C.max30100 device address 0x57 is detected. When ...
0
votes
0answers
59 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
0answers
12 views

Which one is sensor from IIO?

I am looking for list of sensors from the kernel drivers. I am not sure which one is sensor and which one is not. Are all of them sensors? If not then how can I get those I mean is there any API ...
0
votes
1answer
196 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
2k 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 ...
1
vote
1answer
1k views

What would the wiring look like for the UV Sensor Breakout - ML8511?

I have a Raspberry Pi 3 Model B. I am planning to connect an ADC (analog to digital) converter called the MCP3008. I will follow the diagram that is shown here (scroll down past the enabling SPI step)...
0
votes
1answer
368 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 ...
2
votes
3answers
35 views

connect multiple temperature sensors to rpi

I need to connect multiple temperature sensors to my RPI. can you, please, elaborate whether/how can this be done with this or this unit? or can you suggest other unit? I need to measure temp on the ...
0
votes
2answers
305 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
333 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 ...
1
vote
1answer
249 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
0answers
48 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 ...
0
votes
1answer
425 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, ...
4
votes
2answers
305 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 -- -- -...
3
votes
1answer
960 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 ...
0
votes
2answers
1k 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 ...
1
vote
1answer
19 views

Some questions surrounding FC-51 IR sensor

I am looking into using the Ifrared sensor. But i found datasheet andinformation about the manufacturer scarce. I need to know if the sensor is rohs compliant and if it or the manufacturer has other ...
2
votes
1answer
247 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. ...
4
votes
1answer
2k views

Smoke detection using raspberry pi?

I was interested in making a smoke detection unit which starts taking a video and also sends an SMS once the detector detects smoke; the problem is, which smoke detector should I use? Also, how do I ...
0
votes
1answer
1k views

Error compiling and loading driver on the Raspberry Pi

I bought a temperature sensor with a usb adapter and needed to install a driver for it, but I could not compile the driver provided by the manufacturer. pi@raspberrypi:~/CH341SER_LINUX $ make make -...
0
votes
1answer
27 views

PIR sensor shows movement when no movement is present

Completely new in the Raspberry Pi community, so please excuse me if this is a total noob question. Model: Raspberry Pi 4 Model B Component: Adafruit PIR motion sensor I am currently following the ...
2
votes
2answers
1k views

How can I stop the overlay of images between my pi camera and FLIR camera?

Totally newbie here, I'm trying to do a project with the FLIR sensor and a Raspberry Pi. They provided me with some code that turns on both the Raspberry Pi Camera and the FLIR sensor and overlays the ...
2
votes
2answers
1k views

Analog input with MCP3008

I'm trying to connect a Turner C-Sense pCO2 sensor to an RPi2B using an MCP3008 ADC. The probe is powered via dedicated 9V inverter. The probe's analog output wires include a signal out (+) and AGND (-...
2
votes
1answer
26 views

Audible ground noise from ultrasonic sensor (VMA306)

I'm having problems with audible noise from a VMA306 sensor. Everything is working great apart from the audible low frequency buzz after my code is done running. The sound stops when touching any ...
3
votes
2answers
1k 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
1answer
2k views

cheap temperature sensors with bluetooth

I have a PI and I need to develop an application to sense between 8 to 16 temperature sensors. BMP180 and a multiplexer have been a PITA and I havent been able to make it work. Is there any other way ...
1
vote
1answer
63 views

Check status of float switch in water reservoir

I have a standard float switch in a remote water reservoir connected to a normal electric cable (100m+ long). I want to check with a raspberry pi if the float switch is on (i.e. water level is low) or ...
1
vote
1answer
72 views

How to detect list of available sensors and actuators reside on a HAT?

I have been working with many HATs along with Raspberry Pi such as Sense HAT, Pimoroni Enviro pHAT; and so on. However, HATs report its existence to the device tree in /proc/device-tree/hat and /sys/...
0
votes
1answer
23 views

Ultrasonic sensor code

import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) trig=7 echo=11 t=time.time() GPIO.setup(7,GPIO.OUT) GPIO.setup(11,GPIO.IN) While (t+3)>time.time(): start=0 end=0 GPIO....
2
votes
3answers
8k 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
vote
2answers
576 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 ("...
1
vote
1answer
87 views

Reading Bytestream from GPIO / External Interrupt and CLK

So I have an external master device which bangs out a byte stream (DOUT), it indicates the upcoming stream on an DRDY. The timings are given from the master on an DCLK line. These three lines (DRDY, ...
0
votes
1answer
1k views

How to read data from an NI DAQ USB-6259?

I have a sensor for which I'm forced to use a NI DAQ to read data from. And I have a USB-6259 to do so. I don't want to connect the DAQ directly to my laptop because it has messed it up before. I ...
0
votes
0answers
32 views

Connecting 3 ultrasonic sr04 sensors, 4 infrared avoidance module to picon zero mounted on raspberry pi 4

Im begginer to raspberry pi, can you help me please? Im trying to connect 3 ultrasonic sensors + 4 infrared avoidance module to picon zero mounted on raspberry pi 4. Currently I have picon zero ...
1
vote
1answer
143 views

SW-420 Sensor/Code doesn't work--help with vibration sensor

I'm working on a project that uses SW-420 sensors to detect vibrations. I was originally following this tutorial and my code is pasted below. I used a previous post to determine that I should be using ...
1
vote
3answers
8k views

Connecting DS18B20 temperature sensor with RJ45 connector?

I have bought DS18B20 with RJ45 port on its end. It is dumb idea to connect it directly to the Ethernet port on the Pi? I did so, tried reading the temperature (http://www.reuk.co.uk/DS18B20-...
0
votes
0answers
31 views

How to call readings from one script that reads a sensor to be used by another script that controls servos

I'm trying to use the readings of the accelerometer of an IMU MPU9250 to control servos. For that I created (with help of resources online) a script(IMUmodule) that reads the IMU and spits out ...
2
votes
1answer
64 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 ...
0
votes
1answer
1k views

Play different videos with omxplayer depending on reported sonar distance

I am a new to Python. What I want to do is that playing different videos depends on distance using Ultrasonic sensor. For example, if the distance <= 20, play movie1. if the distance > 20, play ...
1
vote
3answers
43 views

How can I control a small electro-magnet and sense when it has picked up an item? [closed]

I'm looking to build an autonomous robot car, but needed to set it a difficult problem beyond following a line or avoiding edges. I've settled on getting it to learn to collect objects and drop them ...
0
votes
1answer
63 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 ...
2
votes
1answer
840 views

UART pins not reading sensor output RPI3

This is my first pi project so im a bit new at this. Im trying to connect a senseair K-30 CO2 sensor to the pi via the UART gpio pins. This is the sensor I am using: https://www.co2meter.com/products/...
0
votes
1answer
800 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 ...
0
votes
1answer
429 views

Connecting Airmar 200WX to Raspberry Pi

My lab team and I recently purchased an Airmar 200WX and I have been struggling to get it working on the Raspberry Pi. The Airmar comes with its own proprietary software that runs on Windows. We ...

1
2 3 4 5
11