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
2 answers
21 views

Pico W I2C timeout occurs when using multiple sensors on a single bus

I am using to VL53 lidar sensor chips on a single I2C bus. This specific chip does not have an option to change I2C address through hardware and so I must do it through software. This works and I am ...
Joe Moore's user avatar
  • 181
0 votes
0 answers
7 views

Looking to set up Media Signage

I'm Looking to set a multi screen system in my place of work. We will have roughly 6 monitors throughout our showroom displaying different adverts/price guides on rotation. We have heard about using ...
Ellis's user avatar
  • 1
0 votes
1 answer
39 views

Quasi - simultaneous temperature measurements on a metal rod

I am preparing teaching material for a thermodynamics laboratory for first year Physics students. The students at this point of their study are very capable with Python data analysis, plotting etc. I ...
VG_nbi's user avatar
  • 1
1 vote
1 answer
58 views

Connecting an analog level sensor

First time poster here. I'm okay with the programming side but have some issue with the electronics side I have raspberry pi 4 and wish to connect a submersible water level sensor to it. The sensor ...
ancalleja's user avatar
0 votes
0 answers
25 views

Raspberry Pi Zero detecting too many i2c

After this command in raspberry pi i2cdetect -y 1 Its detects too many i2cs 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 08 09 0a 0b 0c 0d 0e 0f 10: 10 11 12 13 14 ...
Vinit Yadav's user avatar
1 vote
1 answer
70 views

Raspberry Pi hardware ( water Pump + soil moisture)

I have a water pump for Raspberry Pi (https://thepihut.com/products/amphibious-horizontal-submersible-pump) that I want to use. Do I need a relay module for this water pump to make it work with ...
Huzzy's user avatar
  • 13
0 votes
0 answers
125 views

Hooking up a rotary encoder to raspberry pi 4

There are a ton of questions on this, and I'm pretty new at working with rotary encoders. I purchased this one Taiss E38S6-600-24G, thinking (incorrectly I might add) that it would be a simple thing ...
Greg W's user avatar
  • 1
0 votes
1 answer
109 views

Did i fry MH-Z19B CO2 sensor with my raspberry PI?

I got a new MH-Z19 Sensor, which i connected to my raspberry PI. The first time everything was okay, but later i connected the pins wrong by moving everything by one pin to the left. See the table 2 (...
user2084343's user avatar
0 votes
2 answers
184 views

BME280 sensor: OSError [Errno 5]

I recently bought a Raspberry Pi 4B along with a BME280 T/P/humidity sensor. I use the bme280 and smbus2 Python libraries to interface with the sensor. For a while it worked pretty well, but yesterday ...
MPA's user avatar
  • 103
0 votes
0 answers
9 views

pymodus unknown message

I am using Pymodbus in Raspberry Pi for data acquisition from Modbus rtu (RS485) sensors. Other sensors worked perfectly fine so coding is ok. However one particular sensors is giving me this message ...
Brian's user avatar
  • 1
1 vote
2 answers
285 views

remote sensors for soil moisture

I just received my first Raspberry Pi (Raspberry Pi 3 Model B+) and was thinking about starting my project journey with setting up some kind of soil moisture monitoring for the plants in my appartment ...
jonsken's user avatar
  • 21
0 votes
1 answer
206 views

Optical Encoder with GPIOZERO

I am trying to help some 8th graders build a robot. They learned about the Raspberry Pi and Python with GPIOZERO in an earlier class. They have wheels spinning using the Motor class from GPIOZERO and ...
Bob Brown's user avatar
  • 1,037
0 votes
0 answers
100 views

Import data from sensor into node-red

I’m doing a uni assignment on Iot, and we are doing a soil moisture system with a water pump. One stipulation is that we need to use Node-Red. List of components *MCP3008 8-channel ADC Raspberry Pi 4 *...
Jack Cerne-Plaatsman's user avatar
0 votes
0 answers
36 views

Code for reading values from ML8511 and MQ131 sensors

I'm looking for a way/libraries to read the values from the ML8511 and MQ131 sensors with a MCP3008 ADC on Raspberry Pi 3B using Python.
Gideon Weiss's user avatar
-1 votes
1 answer
115 views

Multiprocessing to speed up data acquisition for I2C devices

Here's my situation: I have four FDC1004 devices that I want to have connected to an array of 64 electrodes through four ADG1206 16:1 multiplexers. Each device is slaved to a pi4 using separate I2C ...
Dallon Penney's user avatar
0 votes
1 answer
59 views

Detect breakage in wires [closed]

I need a device for some experiments that could help me detect when a wire breaks or disconnects. I need to be able to tell exactly how long it took for the circuit to break too. The only purpose of ...
JJ2478's user avatar
  • 3
0 votes
0 answers
43 views

IMU MPU9250 Magnetometer data Question

I am working on implementing compass using IMU magnetometer using https://www.adafruit.com/product/4554. While calibrating magnetometer with its offset and scaling factor, it works well right after I ...
Park Bo's user avatar
0 votes
0 answers
127 views

HC-SR04 Ultrasonic Sensor Heating Up and Not Working

I have two breadboards (for the front and back of a go-kart) which are supplied by the 5V power pins of the raspberry pi 4 respectively (pins 2 and 4). However, when both are plugged in, the second ...
Pasindu Danthanarayana's user avatar
0 votes
0 answers
63 views

How to interface 6 HC-SR04 ultrasonic sensors rasberry pi

I am a beginner to Rasberry Pi and working on a parking warning system for a go-kart. The plan is to use 6 ultrasonic sensors (3 at the front of the kart and 3 at the back) to achieve distance ...
Pasindu Danthanarayana's user avatar
0 votes
2 answers
175 views

How to connect Raspberry to two Wi-Fi different networks simultaneously

I want to connect (via Wi-Fi) my Raspberry in a electronic equipment, in which I can access (via TCP) to data sensors. After I received that data, this electronic equipment doesn't have an Internet ...
Dicarva's user avatar
0 votes
1 answer
73 views

Which daemon or process updates /sys/class/thermal/thermal_zone0/temp?

Just curious... been exploring the RPi H/W... can't escape my embedded device-driver "down on the bare metal" past... in that vein I noticed the value in ../thermal_zone0/temp is always ...
Bear Metal's user avatar
0 votes
0 answers
94 views

IR Receiver gives invalid start pulse with screen attached, nothing without screen

I am trying to display the value of an IR signal on a screen using a Pico and an IR sensor, but with the screen attached to the Pico and the output of the sensor on GPIO pin 4, the printed value is an ...
Commander Of The Wind's user avatar
0 votes
0 answers
78 views

Cannot Instantiate driver file, getting:- insmod: ERROR: could not insert module crc8/crc8.ko: Invalid module format

To integrate a flow sensor with RPi, I am following the Tutorial: Using Differential Pressure and Flow Sensors with Raspberry Pi. However, as the git repo being used ro install the linux kernel ...
Chinmay's user avatar
3 votes
6 answers
536 views

I need a seemingly large battery for project containing several sensors, what should I do?

I'm working on a project with several sensors needing various 3.3v and 5v power. I'd like to have my sensors running for at least 24 hours before needing to recharge everything. I did the calculations:...
Katianie's user avatar
  • 151
1 vote
1 answer
142 views

Both 5V pins are taken but I need more [duplicate]

Hi I am doing a project where both 5V pins are taken by a step down connected to a solar panel. I am using a raspberry 3B and a breadboard. I need 5V to connect other stuff like ultrasonic sensor etc. ...
WontWorkD's user avatar
0 votes
1 answer
116 views

Using TCA9548A for multiple MQ-X gas sensors

I have about 8-9 gas sensors I want to use on my Pi but I'm trying to understand how to use The TCA9548A. The TCA9548A Has 8 pairs of SDL and SCL pins to handle multiple I2C devices, but the output ...
Katianie's user avatar
  • 151
2 votes
2 answers
447 views

HC-SR04 sensor's ECHO pin stuck on HIGH

I have a raspberry pi 4 and a HC-SR04 ultrasonic distance sensor. I want to use it in a raspberry-pi based robot. The other features look fine, the robot can move, et cetera. But my code for the ...
allen546's user avatar
1 vote
1 answer
100 views

How to get measured(analog/digital) output from 801s vibration sensor? [closed]

I have Rpi3B+, 801s vibration sensor and a ADC. I need the analog output to plot a graph for analysis. Basically I need to observe how vibration is affecting the other properties of the machine. ...
Snehal Shende's user avatar
2 votes
2 answers
98 views

Device to measure weak force

I am trying to build a scale, which will automatically turn off an electric device once a certain weight is reached (want to use it for my coffee grinder). I was wondering if you guys had any pointers ...
nhaus's user avatar
  • 73
1 vote
1 answer
589 views

Infrared Receiver for remote controll not working

I am using a raspberry pi 4 with raspian. uname -a yields: Linux raspi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux I am trying to get an IR-receiver working (model OS-...
Thomas Preu's user avatar
0 votes
2 answers
199 views

Powering GPIO-interacting sensors with external 3V3

I am using a Raspberry Pi Zero, with an x706 PSU hat (2 x 18650 batteries). The X706 PSU is charged by a good quality, stabilised 5V power supply unit providing up to 3A. The Pi is hooked up to many ...
de_a's user avatar
  • 13
0 votes
0 answers
114 views

Raspberry pi does not detect compass sensor

I have a GY-91 sensor connected to raspberry pi 4B+ and only mpu6050(accelerometer, gyroscope) address 0x68 is getting detected while the compass sensor address 0x0C is not. $ i2cdetect -y 1 0 1 ...
gaurang navelkar's user avatar
1 vote
1 answer
175 views

Using I2C/SMBus with Sense HAT and Output stays the same

I have a problem while reading the my lsm9ds1 acceleratorsensor registers . It always displays the same values. My setup is a raspberry pi 4 and the sense HAT which has this sensor integrated. I dont ...
Xenoshell's user avatar
0 votes
0 answers
129 views

Using Interrupts with Sense Hat

Im trying to use the Interrupts on the Sense hat (preferably in combination with the IMU), but i get this error GPIO.add_event_detect(INTERRUPT1, GPIO.FALLING,callback=my_callback1,bouncetime=300) ...
Xenoshell's user avatar
0 votes
0 answers
40 views

Raspberry Pi 4 With camera and PIR sensor - Script issue

I have this code for detecting movement and recording said movement. This is my code: import RPi.GPIO as GPIO from picamera import PiCamera import time from datetime import datetime GPIO.setmode(...
Martin Culligan's user avatar
1 vote
2 answers
385 views

hc-sr501 goes high every minute

So I bought three HC-SR501 PIR and all of them keep trigging (high) every single 60 second on the dot. I don't know what I am doing wrong. The PIR does detect motion when a person is moving but it ...
Rick's user avatar
  • 11
0 votes
0 answers
47 views

Controlling my TECO air conditioner with my Raspberry Pi

I have an aircon unit in my house. I want to be able to control it using my Raspberry Pi. The unit comes with an infrared remote. Please note that I am a seasoned software engineer, so the software ...
Merc's user avatar
  • 145
1 vote
0 answers
392 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
0 votes
3 answers
551 views

Simple float switch sensor frying GPIO pins, while the other doesn't? Hydroponics system

I'm building this mostly finished hydroponics system. It's a surge tank build. Surge tank looks like: (that's nutrient water, it's got electrolytes that plants crave) Inside that bucket are two ...
Slight's user avatar
  • 103
0 votes
2 answers
607 views

GPIO detects rising edge but does not change status to 1 [closed]

I am really confused: I have a lightbarrier connected over an optocoupler (ACPL-827) with my Raspberry Pi. When the lightbarrier gets triggered (detects a rising edge), it calls the scan-function. ...
deputy-chief-hardy's user avatar
2 votes
1 answer
2k views

How to PID control a heater with SSR, Raspberry Pi and python

I would like to PID control the temperature of a water bath using a RaspberryPi4, a solid state relay (SSR) and a heater (200W, 230VAC) using python. The IVMech library seems a good starting point. As ...
Marco Bobinger's user avatar
0 votes
1 answer
150 views

How to aggregate time-synced data from one RPi to another over bluetooth

I am currently working on a landslide-detection project coded in Python for a research group. At present we have two different sets of sensors running on two different RPis. One RPi has a strain gauge ...
Dakota Vaughn's user avatar
0 votes
0 answers
29 views

screen change with a presence detector

in relation to the change of application / screen from a terminal, my idea is that in "rest" a kitten is seen, and when a presence sensor detects activity, a policeman appears asking for ...
David Gonzalo's user avatar
0 votes
1 answer
829 views

Could Not Determine Platform Error

I am using the following tutorial to make a moisture sensor using a Raspberry Pi 4: https://www.instructables.com/Measuring-Soil-Moisture-Using-Raspberry-Pi/ When I have run my code, I get the ...
ITN00bs's user avatar
0 votes
3 answers
109 views

Trying to run a python program on boot - error file location?

I have edited rclocal to include this line: python3 /path/to/my/program.py & I used an ampersand as my program has an infinite loop. The program never runs though. The program: import RPi.GPIO as ...
Leon Segal's user avatar
0 votes
1 answer
141 views

Save continuous data printed in a bash shell in a file [closed]

we are working with a Sensor (Sensirion SDC41) connected to a Raspberry Pi 4. We have a .c file provided by Sensirion, that, when called in the bash shell, it outputs a continuous flux of data (one ...
robi_beginner's user avatar
1 vote
1 answer
212 views

Sense 240v current flow externally

I have a situation where I suspect my well pump is short-cycling, and I'd like to rig up some sort of sensor that can detect when it comes on and send me an alert. I'm thinking a Pi should be good for ...
Frank W. Zammetti's user avatar
0 votes
2 answers
86 views

Using multiple LDRs and capacitors with Raspberry Pi 3B +

I am pairing an LDR with a capacitor to to make a light sensing project by returning the value of the variable COUNT when the capacitor is charged. But when i do this with 2 or more LDRs the values of ...
Coder's user avatar
  • 9
0 votes
1 answer
120 views

BME280 via DTOverlay Fails, But using 100% python query works!

BME280 via DTOverlay Fails, But using 100% python query works! Enable DTOverLay for BME280 in /boot/config.txt...** dtparam=i2c_arm=on dtoverlay=i2c-sensor,bme280,addr=0x77 # i2cdetect -y 1 0 1 ...
Jibun no Kage's user avatar
0 votes
1 answer
432 views

Controlling Water Flow with a Solenoid Valve and Flowmeter [closed]

I work in a Chemistry Lab and have zero background in electronics/electrical engineering. My aim is to better control and document the calibration of tests so, I wish to design a system in which user ...
Pulkit Sharma's user avatar

1
2 3 4 5
14