Questions tagged [sensor]
For questions dealing with devices that measure the physical world around us and translate it into signals for the Raspberry Pi.
658
questions
0
votes
1
answer
27
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 ...
0
votes
0
answers
20
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
*...
0
votes
0
answers
12
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.
0
votes
1
answer
46
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 ...
0
votes
1
answer
49
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 ...
0
votes
0
answers
22
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 ...
0
votes
0
answers
37
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 ...
0
votes
0
answers
41
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 ...
0
votes
2
answers
58
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 ...
0
votes
1
answer
26
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 ...
0
votes
0
answers
40
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 ...
0
votes
0
answers
35
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 ...
0
votes
0
answers
36
views
Use dc motor with ultrasonic distance sensor HC-SR04
What I want to do is when the distance detector senses that I am less than x distance away, the DC motor (controlled by l293d chip) activates. My problem is that I have only worked with the ultrasonic ...
2
votes
6
answers
518
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:...
1
vote
1
answer
129
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. ...
-1
votes
1
answer
79
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 ...
2
votes
2
answers
190
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 ...
0
votes
0
answers
121
views
Raspberry pi and DS18b20 temperature sensors problems
I've set this system up about 2-3 years ago. I am putting it together in the fall and taking it apart in the spring, as I only need it during the winter to monitor and automate heating for some plants....
1
vote
1
answer
78
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. ...
2
votes
2
answers
69
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 ...
1
vote
1
answer
318
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-...
0
votes
2
answers
100
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 ...
0
votes
0
answers
83
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 ...
1
vote
1
answer
138
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 ...
0
votes
0
answers
94
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)
...
0
votes
0
answers
38
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(...
1
vote
2
answers
234
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 ...
0
votes
0
answers
37
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 ...
1
vote
0
answers
309
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 ...
0
votes
3
answers
365
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 ...
0
votes
2
answers
468
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. ...
2
votes
1
answer
1k
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 ...
0
votes
1
answer
140
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 ...
0
votes
0
answers
26
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 ...
0
votes
1
answer
529
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 ...
0
votes
3
answers
99
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 ...
0
votes
1
answer
118
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 ...
1
vote
1
answer
144
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 ...
0
votes
2
answers
78
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 ...
0
votes
1
answer
89
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 ...
0
votes
1
answer
311
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 ...
0
votes
1
answer
172
views
Using I2C with MMC34160PJ magnetometer
I'm trying to read data from the MMC34160PJ magnetometer using the Raspberry Pi 4. However, I'm pretty stuck as to how I can do it as there's seemingly no example code or library for it. I have been ...
1
vote
1
answer
59
views
I2C Interfacing with HIH6130
I'm trying to read data from sparkfun's HIH6130 Breakout for measuring humidity and temp data. Following this instructable (though without the i2c shield for the pi), the provided python code just ...
0
votes
1
answer
329
views
USB GPS dongle doesn't return consecutive GSP traces
I used this USB GPS dongle to retrieve GPS traces of user's trip. Device configuration is successful.
pi@raspberrypi:~ $ cgps -s
┌───────────────────────────────────────────┐┌──────────────────Seen 17/...
1
vote
0
answers
2k
views
Errno 121 Remote I/O error happening too often on Raspberry Pi 4 [closed]
I'm using a Raspberry Pi 4 - Rev1.4 together with a tc9548 multiplexer and 2 additional I2C sensors behind each multiplexer channel.
OS version:
AME="Raspbian GNU/Linux" VERSION_ID="11&...
2
votes
2
answers
2k
views
Connecting to a u-blox7 USB GPS sensor
I am trying to connect to a U-Blox7 USB GPS sensor, following the steps outlined here. The device is detected, but not receiving GPS data. I am not not in a shielded area.
Checking that the device is ...
1
vote
0
answers
32
views
Wireless 3 sensor 1 pi home project
I have little to no experience with setting up a wireless "network" for my raspberry pi and need help.
I want to set up 3 hygrometers in separate rooms which connect to the same one pi. I ...
0
votes
1
answer
84
views
What sensor can I use for detecting a metal type without the use of magnets? [closed]
I am searching for a method to detect the type of metal of something solid and small and thin. The test surface is approx 4x2 cm with a thickness of maybe a few millimeter.
I cannot use magnets in ...
0
votes
1
answer
212
views
How to use multiple HC-SR04 distance sensors
For a project I need to use many distance sensors HC-SR04 using less pins possible of a Pi Zero W. I was able to do a test program in python3 with one sensor connected using gpiozero library and it ...
2
votes
1
answer
340
views
Air pressure transducer to be connected with RPi 4
I just want a recommendation for an analog air pressure transducer with a range from 0-10 bar (to be used in an electro-pneumatic system) to be connected easily with RPi 4 (compatible with RPi 4) and ...