Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sensor]

For questions dealing with devices that measure the physical world around us and translate it into signals for the Raspberry Pi.

0
votes
1answer
15 views

Camera with speed sensor on raspberry pi?

I'm new into coding but I'm making a project where a camera should take a picture if the Raspberry pi gets a certain value from a sensor. For example, if I have a speed sensor and camera connected to ...
1
vote
2answers
66 views

5V-3.3V Sensors Confusion

Most of the sensors available in the market requires 3.3V-5V. The GPIO of the Raspberry Pi is 3.3V max only and not 5V tolerant. I have seen tutorials around the internet that they supply the sensors ...
1
vote
1answer
49 views

Ultrasonic sensor stops working a few minutes later

I want to get distance continuously using while loop but a few minutes later my code suddenly stops working and doesn't get distance (there is None value in distance variable) I have changed first ...
0
votes
0answers
12 views

Digital IR bandpass filter using Bayer data from NoIR camera?

I have a project that requires the use of a localized portion of the spectrum in the NIR range. Say from 750nm to 800nm. For the time being, I'm using an optical longwave bandpass filter specifically ...
1
vote
1answer
8 views

DHT11, MQ-X at the same time

I'm wondering can I detect temperature, humidity and gas at the same time using DHT11, MQ-X sensors? If so, how? I can find numerous solutions using each of them separately, but not simultaneously.
1
vote
0answers
33 views

Which sensor should I use to detect a ping-pong ball going through a tube? [closed]

I am working on a game in which a player throws a ping pong ball through a tube. I want to automatically detect it. I first got a PIR sensor, but that appears to not work well as it was too close ...
0
votes
2answers
26 views

i2cdetect detects device - Pi can't access / find it

Currently I'm working with a gyro-sensor and need to use i2c in order to use it. Using a Pi 3 B (os:NOOBS) on kernel: Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/...
0
votes
1answer
26 views

Upon starting Node-RED my Pi detects all of its i2c addresses as connected

I've been trying to connect an MPU-9250 module to my raspberry pi B+ in order to output the sensor's data through a Node-RED UI, i followed this tutorial to setup the MP-9250: https://kingtidesailing....
0
votes
0answers
16 views

Using Raspberry Pi to make Sonos work with any receiver (autoswitch)

Detect audio (voltage) Send IR command (switch receiver input) Features Learn IR Command Adjust detection sensitivity Result - When a Sonos Connect zone is activated it switches receiver to the ...
0
votes
0answers
21 views

How to integrate digital pressure transducer w/ raspberry pi? Keyence GP M010

I'm trying to figure out how to integrate two Keyence GP M010 pressure sensors w Raspberry Pi 3 B+ to automate data collection into a CSV file. The issue I'm having is w/ determining how the sensors ...
1
vote
0answers
22 views

I'm curious: has anyone build a HAT and sold it commercially? Looking for experiences [closed]

Has anyone build a HAT and sold it commercially? Looking for experiences on how to the production and distribution is. Has anyone ideas on how to promote a HAT when you built it? I find there is ...
0
votes
0answers
22 views

How to connect maxbotix ultrasonic range sensor through GPIO

I got a Raspberry Pi 3 B+ over Christmas which came with a breadboard (i.e. I'm new to all of this). I recently bought a Maxbotix HRLV-EZ4 ultrasonic sensor. I am using the Canakit GPIO Breakout ...
0
votes
1answer
31 views

How to connect with a 24 VDC Ultrasonic Sensor

This is probably a rookie question but I was interested in hooking up my RPi 3 B+ to the following ultrasonic sensor to measure water level in a humid environment (for arguments sake, the Pi will not ...
1
vote
2answers
34 views

TSL2561 Lightsensor with Python 2.7 and rpi.gpio

I want to add a TSL2561 to an existing (Model B, Wheezy) system that is built on Python 2.7, and uses some other GPIOs (not using I2C), with the module rpi.GPIO. The TSL2561 python library has a ...
0
votes
1answer
42 views

HC-SR04 Sensor stops reading

I am working on HC-SR04 ultrasonic sensor for my project. I made the connections given here. Here is my code int main(){ int count = 0; if (gpioInitialise() < 0) { qDebug() << "...
1
vote
1answer
83 views

What can I use to detect a certain resitance and then have it send a signal to the gpio

I have bought a FlexiForce force sensitive resistor, which can measure weights from 1-100lbs with a driving voltage of 5V (although I plan on adjusting the range to 10-300 by setting the voltage to 0....
0
votes
1answer
67 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 ...
1
vote
1answer
82 views

Trouble accessing Sensirion sht21 though multiplexer tca9548a using i2c and python

I can't reach my sht21 sensor throughout the Multiplexer tca9548a (adafruit). When I run it with python3 in the raspberry pi's terminal, I get this error report: Traceback (most recent call last): ...
3
votes
2answers
90 views

How the fluctuation in MPC3008 ADC unused channels is explained?

I am using mpc3008 in order to convert the analogue signal of two sensors, for a rpi3. The sensors are, the SEN0189 turbidity sensor and the SEN0244 TDS sensor. The code I am using is the ...
0
votes
1answer
22 views

Will connecting a photoresistor module affect a mains relay in anyway?

I have a raspberry pi connected to a mains relay, which is connected to an ac lamp and outlet onto a breadboard. I want to add a photoresistor module to the raspberry pi/breadboard but I'm afraid it ...
0
votes
2answers
50 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
1answer
46 views

What are some common software design patterns, when it comes to raspberry pi programming? [closed]

I am kind of confused when I see raspberry pi code for reading sensor inputs, opening lights e.t.c. I am not experienced with python, but I would expect that code is much like in ui programming. ...
0
votes
1answer
131 views

Raspberry Pi not detecting MPU6050 with i2cdetect

I am trying to connect my GY-521 MPU6050 to my Raspberry Pi Zero W using I2C detect but I'm unable to find the MPU6050 on the table. The results using i2cdetect: pi@raspberrypi:~ $ sudo i2cdetect -...
1
vote
1answer
84 views

Really strange but with RTIMULib2, why does it not work in a class?

I'm doing a project with an accelerometer/gyrometer combo and I'm using the great RTIMULib2 library. I know installing it and getting it to even work at all is a common challenge, but I've gotten it ...
-1
votes
1answer
30 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
3answers
40 views

Raspberry pi weather station dampness [duplicate]

I am setting up a rpi weather station with several rpi 0's (one for each sensor) and a main rpi 2 (for the data collection and storage). Does anyone have any ideas on how I can go about damp proofing ...
2
votes
2answers
64 views

Scaling of digital reading of pressure sensor

I have purchased one of these and I've connected it to a pressure sensor. I now need to convert the digital values to pressure. However, my maths is all forgotten. Can anyone help me out? The ...
0
votes
1answer
82 views

How to implement properly the iot garbage management using sensors and esp8266 to mobile application

My question: I don't know how to connect ULTRASONIC SENSOR(hc-sr04) which is for getting the fill level of garbage and DHT11 for temperature and humidity to connect both in a ESP8266 to mobile ...
0
votes
2answers
82 views

Arduino sensors without board directly on Raspberry Pi

I'm a beginner, just so you know. Okay, I've a Arduino IR Infrared sensor right next to me, some jumper cables and a Raspberry Pi. My question is: Do i need an Arduino board to hook the sensor up to ...
1
vote
2answers
159 views

Multithreading/infinite loops affecting sensor values

I run a Python script on my RPi that manages all the sensors on the board and communicates with another machine using TCP sockets. The project gained in complexity and my script now has 5 threads ...
0
votes
1answer
37 views

Will Running Headless Improve Baud Rate?

I am trying to poll data from an I2C device on a Raspberry Pi. Currently it is hooked up to a 7" touch screen, and I am getting an error that seems to be due to a clock-stretching bug. (https://...
2
votes
3answers
197 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
2answers
477 views

Powering a sensor using an external power supply board

In my Raspberry Pi project, I need to measure a distance. To do that, I have an ultrasound sensor called "AJ-SR04M" (it is basically a waterproof HC-SR04 I believe). Characteristics of the AJ-SR04M: ...
0
votes
0answers
70 views

DHT11 problem in kernel module

I think that is not a faulty device but, instead, kernel problem. If my CPU is too busy the frequency of messages below come up. I'm using the dht11 dtoverlay with Debian Stretch. dmesg output (...
0
votes
1answer
49 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 ?
1
vote
2answers
115 views

Interfacing Arduino with Raspberry Pi [closed]

Can we interface Arduino with Raspberry Pi? I need to interface 16 pressure sensors with Arduino. And get the reading through to Raspberry Pi using serial port communication. Is that possible?
0
votes
2answers
268 views

Small wireless temperature sensor recommendation [closed]

I am working on a human-care project using RPi. The second phase of project is in progress, and I need small wireless temperature sensor to be able to place on a human body. I've searched the internet,...
0
votes
0answers
23 views

Rpi stops giving encoder data

I am again reposting my question. I am working on a hobby project and I have written the code to take encoder data and calculate the motor RPM which works fine. But sometimes it is very strange that ...
0
votes
1answer
74 views

Node.js packages reading moisture sensor: State never changes

I've written similar code in python that works as expected. Using one of these moisture sensors: https://www.amazon.com/dp/B00ZR3B60I The following code always prints "true" const rpio = require('...
0
votes
1answer
67 views

Cannot enable I2C

I am following this tutorial here to connect my CCS811 sensor with my Raspberry Pi 3 Model B+. They ask you to enable I2C after running sudo raspi-config and going into the Advanced Options. However, ...
0
votes
1answer
140 views

Raspberry Pi GPIO & Analog Sensors

I am fairly new to Raspberry and Coding/electro-engineering in general but wanna get it done anyways. I've some questions regarding reading data from analog sensors. Background: I got an AD/DA-high-...
0
votes
1answer
166 views

Using Serial to Read Ultrasonic Sensor?

I have an HRLV-EZ4 ultrasonic sensor hooked up to my RPi 3 B+ like so: Serial output --> pi RX (pin 10) V+ --> pi 5V GND --> pi GND I've already gotten it to work with an analog voltage output and ...
0
votes
0answers
46 views

LIS3DSH Accelerometer attached to Raspberry - Problem to read registers SPI

I have an LIS3DSH Accelerometer (Accel 2 click from Mikroe) attached via SPI pins to my Raspberry Pi. I use the following Python script to collect data: import spidev import wiringpi as pi from time ...
0
votes
1answer
26 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 ...
0
votes
0answers
177 views

Issue with FC-51 IR sensor

I am developing a robot with raspberry pi. To detect obstacles I am using FC-51 IR sensor. This is my current code. import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) ObstaclePin = 18 ...
0
votes
2answers
386 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 ...
0
votes
1answer
104 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 ...
0
votes
1answer
41 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 ...
1
vote
2answers
486 views

Cannot Detect LIDAR Lite v3 Raspberry Pi 3B+

I am trying to connect my Garmin LIDAR Lite v3 sensor to my Raspberry Pi 3B+ via i2c interface. However i2cdetect on the command line returns dashes for every address. I'll try my best to clearly ...
0
votes
4answers
162 views

Weather proofing a Pi

I'm looking to deploy several copies of the Enviro hat around my garden to monitor temperature and light levels to study the optimal spots to plant new plants. How might I weatherproof the Pis without ...