Questions tagged [sensors]
Use this tag for questions about selecting, connecting, using, and debugging sensors.
1,259 questions
1
vote
0
answers
68
views
Issue reading sensor values with CD74HC4067 16 Channel Mux
I'm running to an issue when measuring my sensor outputs. Previously I've connected my sensors directly to Nano analog pins and measured fine, but I want to use more sensors so trying a mux. Any help ...
-3
votes
2
answers
78
views
What does VRx stand for in the KY-023? [closed]
The x and y axis pins on the KY-023 are labeled VRx and VRy, but I'm curious as to what they stand for, as I couldn't find any official statements about it. I assumed it was "Variable Resistor X/...
0
votes
1
answer
73
views
Problems reading WNK811 i2c sensor on arduino using wire library without device library
I am trying to read a WNK811 pressure sensor connected by i2c to an STM32 Nucleo F401RE, programmed as arduino. The WNK811 is a Chinese device, the device datasheet is highly minimal (inadequate in my ...
-1
votes
1
answer
184
views
MFRC522 RFID RC522 Only Works Sometimes – Unreliable Detection Issue
Problem Overview
I’m using an MFRC522 RFID module with an Arduino Uno, and it only detects RFID tags sometimes. The behavior is inconsistent—sometimes it reads the card instantly, and other times, it ...
0
votes
1
answer
97
views
Connecting two Arduinos via BLE 5.0
I have this issue where I'm transmitting sensor data from Nano Sense Rev 2 (transmitter) board to Nano 33 BLE rev 2 (receiver). The receiver keep failing to detect and connect to the transmitter and ...
0
votes
1
answer
133
views
ESP32 pressure sensor readings (RFP602)
I have two RFP602 sensors that I use.
One connected to GPIO2, the other to GPIO4, each connected to a 1Mohm resistance.
The sensor connected to GPIO2 reads the data how I want it, I have to press a ...
-1
votes
2
answers
147
views
50 Hz powerline noise using Arduino and mikroe ECG 2 (ADS1194)
I am trying to take ECG measurements using the Mikroe ECG 2 (ADS1194), connected to an Arduino Uno via an Arduino Uno Click shield.
I am able to measure the ECG, and can read the heartbeats somehow in ...
2
votes
1
answer
206
views
Custom (external) reference voltage for ADC: is there a lower limit?
I'm reading an analogue oxygen sensor (SGX-4OX) with a Nano Every (ATmega4809-based). We're seeing up to about 60mV* in ambient air (it will reduce as we purge with nitrogen), and the ADC is 10-bit. ...
1
vote
1
answer
175
views
ESP32-S3 Does not read BME680 Data
I build a PCB using ESP32-S3-WROOM-1-N16R2 Controller. I programmed a BME680 sensor with this MCU. My pinouts are,
BME_SCK 38
BME_MISO 19
BME_MOSI 15
BME_CS 5
This is my Arduino code,
#include <...
1
vote
2
answers
321
views
Why is my BME280 sensor returning 0 for all data values?
My BME280 is returning 0 for temperature in Celsius, 0% humidity, 0.00 pressure (hPa) and 44330.00m for altitude. I am connecting it with I2C on a Raspberry Pi Pico and everyone on the team has ...
0
votes
1
answer
173
views
How to control a stepper motor using an absolute position sensor which has an error band?
I am using Feather M4 express development board with DC Motor + Stepper FeatherWing and Ethernet FeatherWing stacked on it. The idea is to read the target position from the UDP from 0 t0 360 degrees ...
-1
votes
1
answer
65
views
How can I downsize protruding pins from sensors to so I can use a smaller housing?
I'm trying to create a system where I continuously measure color data from a fluid. I've created a 3D-printed box where the pins fit; if they're configured in their out-of-the-box arrangement, what ...
2
votes
1
answer
198
views
Software serial communication problem between ESP8266 and Arduino Mega for plant monitoring system (using Blynk IoT)
We're using the ESP8266 to receive data from the Arduino Mega board, where our sensors are connected. Supposedly, our ESP is connected to the Blynk App. However, the values showing up in our dashboard ...
1
vote
0
answers
108
views
Help with combining sensor codes
I'm trying to combine 4 sensors' codes into one to display on the serial monitor: MAX30205, MAX30100, AHT20, and ENS160. I'm using the Adafruit ESP32 Feather V2 board. Here are the libraries that I've ...
0
votes
1
answer
125
views
Keypad library isn't working or I am wrong somewhere [closed]
I am using PICSimLab to simulate a keypad. The configuration of the keypad is as shown in the picture:
and the code is:
#include <LiquidCrystal.h>
#include <Key.h>
#include <Keypad.h&...
1
vote
0
answers
142
views
KIE-TS-300B turbidity sensor not working
I'm working with a clone Arduino micro board. I've got the color sensor up and running fine. So the problem isn't the card.
I'm using the example code, just to try out the module:
// the setup ...
0
votes
1
answer
67
views
Arduino Uno/Nano + ML
I couldn't find any clear answers elsewhere, hence I'm asking here.
I have a TensorFlow/TensorFlow Lite model which I have already trained on some sensor data.
Now, how can I utilize this model on my ...
0
votes
1
answer
61
views
Arduino used as a multi-sensor controller, then sending results to a laptop to post on a web page
We are a non-profit group, we run a salmon rearing pond on Lake Michigan. We are upgrading our equipment that is over 50 years old with monitoring sensors.
We are adding 9 temperature, 5 oxygen, 2 air ...
1
vote
0
answers
249
views
Inaccurate and changed results with ultrasonic sensor
I have an issue using an ultrasonic sensor. The problem is that when I connect the ultrasonic sensor to my Arduino Nano, it always gives some random values, usually 130 cm, I don't know why.
I bought ...
1
vote
0
answers
295
views
Unable to connect to SHT4x sensor probe through I2C bus
Error trying to execute serialNumber(): ReceK on transmit of address
Error trying to execute serialNumber(): Received NACK on transmit of address
Error trying to execute measureHighPrecision(): ...
0
votes
1
answer
148
views
Can Vin of ESP handle many voltage sensors and relays?
My project is Charging Battery via Solar and Piezoelectric sensor while also getting the Realtime Voltage of the Battery, Capacitor, and Solar.
I want to use Vin as the source to get 5V because ...
-1
votes
2
answers
186
views
Do I connect multiple I2C units to the microcontroler in series or parallel?
I have a project (still planning) with three I2C sensors: GPS, 3-axis gyro+accelerometer, and OLED. Do I connect SDA/SCL in series, or do I connect them in parallel?
1
vote
2
answers
409
views
DHT20 and OLED display not working together
I am trying to get my DHT20 and OLED (both from the Arduino Sensor Kit) to work at the same time. I am able to get them working separately with their respective test codes, but when I try to combine ...
-1
votes
1
answer
546
views
Why won't my servo and ultrasonic sensor work together?
I have a school project due tomorrow, and I'm planning to connect a servo motor with an ultrasonic sensor. If the distance is under 10cm, the servo motor should turn 180 degrees and will return to 0 ...
0
votes
1
answer
363
views
Incorrect reading from DHT22 (on a Nano board)
I have rigged two different DHT22 sensors to an Arduino Nano board. Both temperature readings are more or less comparable but they produce very different humidity readings.
The sensors are:
Sensor No....
2
votes
1
answer
270
views
Sparkfun ISL29125 breakout board issue with Arduino IDE with ESP32
I am working on a project where I need to get the RGB light value from surrounding ambient light.
For that I am using an ESP32 with a Sparkfun ISL29125 breakout board. I have tried to scan available/...
0
votes
2
answers
108
views
Serial Buffer stays empty as soon as it becomes empty once
I have a question regarding serial buffer readout.
At program start, I send a serial command to a sensor that 1. activates him and 2. let him send data - that works.
When I unplug the sensor, the ...
-1
votes
1
answer
88
views
How to get recover numeric data sent by an Arduino in binary
I am a C# dev and these C++ data conversions are killing me.
I have an Arduino sending binary data through LoRaWAN to AzureIOT. I am trying to decode my Temp/Humid/Bat payload that I am pulling out of ...
1
vote
1
answer
590
views
Arduino Nano TX and RX LEDs Not Lighting Up During Upload
I'm encountering a problem with my Arduino Nano board. When I attempt to upload sketches to the board using the Arduino IDE, only the Power LED lights up, and the TX and RX LEDs remain inactive. I've ...
2
votes
1
answer
286
views
How to make 2 lidar lite v3 work with 1 Arduino?
I'm using the code below, but I had no success.
I'm using this connection wire:
The photo of the Arduino doesn't show the SCL and SDA pins, but please consider that it has 2 SCL pins and 2 SDA pins in ...
2
votes
0
answers
118
views
Slow I2C communication
To collect temperature and BPM, I connected a max30101 in my Heltec WiFi kit V3 with ESP32. The data collected are stored in arrays to extract statistical features from signals which an algorithm will ...
2
votes
2
answers
1k
views
Push button issues
I have been using https://wokwi.com/ to learn Arduino and I am having a problem that seems to be happening no matter what I do. I am trying to set up a push button and an LED. The end goal here is to ...
-1
votes
1
answer
463
views
NodeMcu V3 & BMe280 -> Temperature, Humidity, Pressure: value nan
I've just started playing around with a NodeMcu V3 and a BME280 sensor.
wiring
VCC -> 3.3V
GND -> GND
SCL -> D1 (GPIO5)
SDA -> D2 (GPIO4)
I've tried this sketch / I2C scanner: it finds ...
1
vote
0
answers
253
views
How to Connect Two CQRobot Ocean Non-Contact Water/Liquid Level Sensors (CQRSENYW001) to Arduino UNO REV3 (A000066)?
I am a complete beginner trying my hand at a home automation project.
Part of my setup includes using an Arduino UNO REV3 (A000066), and connecting two CQRobot Ocean Non-Contact Water/Liquid Level ...
2
votes
2
answers
516
views
TMC2208 Stepper Motor does not change its RPM linearly
This is my first project working with stepper motors, so I may have a bit of a shaky understanding of the electronic side of the project. I'm trying to create a simple device with 4 buttons connected ...
4
votes
1
answer
1k
views
Connecting pressure sensor to Arduino to collect pressure and time data
I'm trying to build a pressure data logger using an Arduino and Mindman MP47P-03-F1 (https://www.mindman.com.tw/proimages/pdf/E_MP47_S.pdf) pressure sensor, the sensor is connected to an outer 12-24 ...
1
vote
1
answer
92
views
MHZ19B Sensor - Library not found- Please Help!
I can't seem to figure out what the problem is here. I am trying to upload this code to Arduino Uno but it keeps telling me that the library is not found. I did download the library for the MHZ ...
1
vote
0
answers
123
views
Which temperature sensor is accurate?
I have an Arduino Nano RP2040 Connect with two temperature sensors. A DHT22 is connected to D2 and pulled up with a 5 kΩ resistor to 5V, and a LSM6DSOX IMU is built in to the board. Here's my code:
#...
1
vote
3
answers
932
views
Best way to send a boolean (1/0) to a windows application in real time?
I have an arduino mega connected to a light sensor that reads the status of a machine's indicator light. I have a C++ application that controls the machine, and I would like the arduino to send the ...
1
vote
0
answers
102
views
Unable to read the sensor data from all the sensors connected
I am trying to build a project where I have connected 8 Sparkfun TOF Sensors to an I2C MUX which is connected to a Sparkfun RedBoard.
I need to read and display the data from each sensor on the serial ...
3
votes
0
answers
260
views
Using 2 VL53L4CD ToF sensors and getting error after getting first reading
pretty new to arduino stuff and was hoping to get some help with my code.
I'm trying to use 2 ToF sensors and get continuous readings from them. I understand that I have to use the xshut feature and ...
-1
votes
1
answer
298
views
Arduino-project with color sensor and rgb-led
I want to use a color sensor for my Arduino project with Arduino Uno to detect the colors red, green, blue, orange, yellow purple of leaves of paper and then light my RGB led in those colors. I have ...
0
votes
1
answer
153
views
Buzzer keeps buzzing even though the sensor doesn't detect anything
through the code that I've listed below, the idea was to have a sensor that detects objects in different ranges, if they're quite close, a light strip will turn on yellow with no buzzer. If they're ...
1
vote
1
answer
116
views
Program work when used Delay() but same program doesn't work with millis()
I'm running a dc motor using esp32 and mosfet by taking readings of IR.
Program works fine when used delay() but same program doesn't work when uploaded using millis().
//This uses fixed delay()
// ...
1
vote
1
answer
144
views
Arduino Readings Update Correctly on Windows but not Linux
I have written a simple script to get angle measurements from a magnetic sensor. The script works very well on Windows. However, when compiling the script on a Linux VirtualBox (Ubuntu 20.04), the ...
-1
votes
1
answer
74
views
Problem with some sensors but not with servos
I use a lot Arduino Uno, but in this case, I have some BQ ZUM BT-328 boards, which are based on Arduino BT. The problem with some of BQ ZUM BT-328 boards is that the ultrasonic sensor (HC-SR04) is not ...
0
votes
0
answers
246
views
SDI-12 protocol, working with SoftwareSerial
I have a Teros 11 moisture sensor that I have managed to make it work with the SDI-12 arduino library.
However, this library does not work with SoftwareSerial and this is critical for me.
There is a ...
0
votes
3
answers
2k
views
Correctly connecting a four-pin tilt sensor to a breadboard before going live
I'm working on Arduino Kit book's Project 8: the digital hourglass. I've got the picture and the circuit diagram below.
My question is a fundamental one, and I really don't know how others figured it ...
2
votes
0
answers
538
views
MAX30102 doesnt show data when it's interfacing with other sensors MLX90614 and MPU6050
The hardware I am using is ESP32 with MAX30102, MLX90614 and MPU6050 sensors and Using Blynk to show my data from the sensors. The issue I am facing is when I ran the code with all three sensors only ...
1
vote
1
answer
516
views
Calibration of pH sensor
I am working with pH sensor (https://wiki.seeedstudio.com/Grove-PH-Sensor-kit/ ) and arduino. The board provided with sensor is not having any potentiometer to set the voltage value when dipped in ...