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
0 answers
15 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(...
user avatar
0 votes
1 answer
36 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 ...
user avatar
  • 1
0 votes
0 answers
26 views

How to pipe 3.5mm cable to raspberry pi as input?

I am trying to measure the current of some home appliance via https://www.amazon.com/JANSANE-SCT-013-000-Non-invasive-Split-Core-Transformer/dp/B07D8SXQ13/ref=sr_1_3?crid=376JVK6NZHGRQ&keywords=...
user avatar
  • 1
0 votes
0 answers
23 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 ...
user avatar
  • 111
1 vote
0 answers
43 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 ...
user avatar
  • 11
0 votes
3 answers
71 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 ...
user avatar
  • 103
0 votes
2 answers
57 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. ...
user avatar
2 votes
1 answer
143 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 ...
user avatar
0 votes
1 answer
71 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 ...
user avatar
0 votes
0 answers
23 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 ...
user avatar
0 votes
0 answers
26 views

Raspberry Pi 3+ throttled when connected to atlas sensors and LCD

I want to make a hydroponic nutrient monitoring system, so I bought atlas scientific sensors for my project. There are 3 types of atlas sensors and LCD 20x04 that are connected to my raspberry pi 3B+. ...
user avatar
0 votes
1 answer
125 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 ...
user avatar
0 votes
3 answers
49 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 ...
user avatar
0 votes
1 answer
55 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 ...
user avatar
1 vote
1 answer
43 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 ...
user avatar
0 votes
0 answers
23 views

Can I2C speed of raspberry pi 4 be set on the fly in python

Can I2C speed of raspberry pi 4 be set on the fly in python? The standard way of doing it would be sudo nano /boot/config.txt and add the corresponding line. However, I would prefer a faster solution.
user avatar
0 votes
2 answers
52 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 ...
user avatar
  • 1
0 votes
1 answer
28 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 ...
user avatar
0 votes
1 answer
84 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 ...
user avatar
-1 votes
1 answer
67 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 ...
user avatar
0 votes
0 answers
28 views

Using Raspberry Pi for steps counter

how to Use Raspberry Pi for steps counter, i want to find python code for steps counter for raspberry pi. i found an open source code written in C language (Mau.diva-portal.orgOpen source step counter ...
user avatar
1 vote
1 answer
36 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 ...
user avatar
0 votes
1 answer
97 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/...
user avatar
  • 141
0 votes
0 answers
31 views

Using Temp Sensor to Control Mains Water Valve

I have a complicated use case that I'm hoping to solve work a RaspberPi. I need to control a valve that turns on mains water from city service when a temperature sensor reaches the max allowable limit ...
user avatar
1 vote
0 answers
161 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&...
user avatar
2 votes
2 answers
278 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 ...
user avatar
  • 141
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 ...
user avatar
0 votes
1 answer
47 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 ...
user avatar
  • 109
0 votes
1 answer
105 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 ...
user avatar
1 vote
1 answer
87 views

Air pressure transducer to be connected with RPI4

-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 RPI4 (compatible with RPI4) and ...
user avatar
0 votes
0 answers
33 views

Problem with sequencing 2 proximity sensors using Raspberry PI and Python

I am trying my first (self-written) attempt at using a Raspberry pi for an electronics project and I thought it would be simple with all the great help that people generously put on-line. I am ...
user avatar
  • 1
0 votes
1 answer
27 views

Power Monitoring Physics Experiment

Hi i am just planning a Physics experiment where i accelerate Ionized Gases onto a target sample. For this Experiment i need to monitor the power constantly over a week or longer. For my later data ...
user avatar
1 vote
1 answer
836 views

How can Rpi4B use python to talk to the I2C DHT20 / SHT20 temperature and humidity sensor?

I'm trying to use a Raspberry Pi 4 to read an I2C temperature and humidity sensor. The part I'm using is a module from Grove based on the DHT20 sensor. Here's a link to a page about the module: https:/...
user avatar
-1 votes
1 answer
62 views

UART Rx TX pins not reading sensor output RPI3

This is my first pi project so I'm a bit new at this. I'm 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/...
user avatar
  • 1
0 votes
1 answer
72 views

My desktop shortcut won´t execute

I created a GUI that tells me the temperature based on the temperature sensor I connected to the raspberry pi, that works fine, but then, I tried to do a desktop shortcut, and when I click on it, the ...
user avatar
0 votes
0 answers
76 views

i2cdetect shows random addresses for VL53L0 device

I plugged the VL53L0 distance sensor to RPi 3B+ onto the I2C pins. Specifically, red to 3v3 Power, white to SDA, blue to SDC, and black to the ground (I left yellow and green unplugged). Now, ...
user avatar
1 vote
0 answers
176 views

Trying to plot the ADC values from the PICO similar to what an oscilloscope displays. Just scrolls to the left right now. Total Python newbie

#!/usr/bin/python #Python 3.7.3 # Attempting to plot the ADC values coming from the PICO # Program contains only necessary lines of code for testing plot routine # The Raspberry PI Pico is connected ...
user avatar
0 votes
2 answers
109 views

Sensor gives different results using GPIO and USB

I have a RPi4B, MH-Z19C CO2 sensor and a UART to USB adapter. When I connect to the sensor using USB I get stable readings: {'co2': 1001, 'temp': 19, 'S': 0, 'U': 0} {'co2': 1006, 'temp': 19, 'S': 0, '...
user avatar
  • 119
-1 votes
1 answer
100 views

PWM input to raspberry pi 4B

I want to read PWM output signal which I got from a sensor. Is there any way to give PWM signals as input to Raspberry pi 4B?
user avatar
2 votes
1 answer
80 views

Misreadings from hall sensor after using a motor controller

I am measuring a hall sensor included in a motor. A Raspberry Pi 3b+ controls a Sabertooth 2x32 motor controller through radio Signal (ppm) and the Sabertooth output is connected to the motor. I get ...
user avatar
0 votes
0 answers
64 views

Measuring GPIO current with INA219

I'd like to build a simple circuit that does the following: controls a RGB LED (RPi 4 has 4 PWM outputs, so I could use 3 of them to control the LED) measures the current draw of each PWM output, ...
user avatar
  • 113
0 votes
1 answer
147 views

How to print temperature on nextion screen

I am new to the topic of raspberry and sensors, I am doing a project with a raspberry pi 4 and a temperature sensor DS18B20, I created a small project in python to display the temperature in real time....
user avatar
  • 1
1 vote
1 answer
46 views

Multiple Temp/Humidity Sensors 40 Feet Apart

I’m looking for an IoT setup that will monitor temperature and humidity both inside and outside of a remote building, around 40 feet apart. It looks like a Pi with the Grove Base Hat and the DHT20 ...
user avatar
-1 votes
1 answer
110 views

Magnetometer interference when using sense hat connected via GPIO pins

I am trying to use the magnetometer on the sense hat to act as a compass however I also want to utilise the GPIO pins for other components. I've successfully wired up the sense hat to the GPIO pins on ...
user avatar
0 votes
0 answers
95 views

Unable to detect Capacitive Soil Moisture Sensor on my RPi 4 through ADS1115

My RPi 4 does not read any values in from my capacitive soil moisture sensor. I have a breadboard for the wiring that I will attach a photo of, and I am running a test program (simpletest.py from the ...
user avatar
2 votes
1 answer
1k views

How to connect multiple sensors to an rpi with the I2C?

I'm very new into rpi & sensors. I'd like to connect an BME280 I2C Temperature and Pressure Sensor and a Adafruit STEMMA Soil Sensor - I2C Capacitive Moisture Sensor to my rpi. In the tutorials I ...
user avatar
  • 123
0 votes
0 answers
77 views

How do I send data from sensors using a Raspberry Pi over WiFi to a webpage?

So far I have the code that reads the distance using the razbery pi sensor, but how can I do the rest? if anyone can help me with a tutorial so I can understand, I'm new and I don't really understand ...
user avatar
0 votes
1 answer
127 views

AS3935 lightning sensor [closed]

. I am trying to get an AS3935 i2c sensor working on Raspberry Pi Zero. I am using code I downloaded from web. #!/usr/bin/env python _AS3935 import RPi_AS3935 import RPi.GPIO as GPIO import time ...
user avatar
  • 1
0 votes
1 answer
59 views

Incorrect Values from counting rising edges from the B5W-LD0101 particle counter sensor

For a couple of days I've been trying to make this B5W-LD0101 particle sensor work (https://www.digikey.it/it/datasheets/omron-electronics-inc-emc-div/omron-electronics-inc-emc-div-en_b5w-ld0101-1_2). ...
user avatar
0 votes
2 answers
368 views

How to detect low amp AC current with GPIO

There is switch inside a commercial gate operator that I need to monitor with my RasPi. The switch has two ~18 AWG wires, when the switch it closed, it's 50V AC connection. When the switch is open, ...
user avatar

1
2 3 4 5
13