Questions tagged [sensors]

Use this tag for questions about selecting, connecting, using, and debugging sensors.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
36 views

I'm looking for an ultrasonic sensor to measure water flow in the pipe with Arduino [closed]

I'm looking for an ultrasonic sensor (non-intrusive) to measure water flow in pipes with Arduino Hello community, I'm creating a project to measure the water flow, in liters, that passes through the ...
Jimmy Ginga's user avatar
0 votes
0 answers
36 views

problem with leds not glowing while interfacing with ultrasonic sensor [closed]

I tried using different Leds for different range of obstacle distance detected by ultrasonic sensor it didn't work code: int trigPin =5; int echoPin =6; int ledr =3; int ledg =4; int ledy =7; int ...
Sneha Katole's user avatar
0 votes
0 answers
28 views

nrf24l01 not communicating with each other

Since the past few days I've been trying to get two of my nrf24l01 modules to communicate with each other without any progress. I would greatly appreciate any help provided on this forum. Thank you ...
Ryan's user avatar
  • 101
-1 votes
2 answers
43 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?
Marifin -'s user avatar
0 votes
2 answers
31 views

Relay switch when CO value is met

I need some help with my code using mq-7 and esp8266. Components I used: MQ-7 (i've heated it up for 48hours) ESP8266 4-channel relay 24vdc fan mb102 All i wanna to do is mq-7 to constantly reading ...
jeonsann's user avatar
1 vote
1 answer
88 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 ...
Darren D'Arcy's user avatar
0 votes
0 answers
30 views

How to use SCD30 on ESP8266

I'd like to use SCD30 sensor on ESP8266. I know it's possible to use for example Adafruit library to connect SCD to Arduino, but it requires SDL and SDA pins, which my ESP doesn't have. The library in ...
Kaomer's user avatar
  • 1
0 votes
0 answers
26 views

Detecting an approaching car with a microphone?

I am currently trying to detect an approaching car with a microphone. Currently, I am using an Arduino Uno in conjunction with a SparkFun sound detector. I have tried using FFT and am currently trying ...
Jack's user avatar
  • 11
-1 votes
1 answer
71 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 ...
pinkuro's user avatar
0 votes
1 answer
112 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....
nick's user avatar
  • 21
2 votes
1 answer
111 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/...
Nikunj Vadher's user avatar
0 votes
2 answers
40 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 ...
Gymknopf's user avatar
-1 votes
1 answer
46 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 ...
Terrence's user avatar
  • 103
1 vote
1 answer
67 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 ...
Ryuu's user avatar
  • 11
2 votes
1 answer
98 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 ...
GUSTAVO TELES's user avatar
2 votes
0 answers
52 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 ...
Alice's user avatar
  • 31
2 votes
1 answer
322 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 ...
wgm's user avatar
  • 21
-1 votes
1 answer
107 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 ...
Massimo Variolo's user avatar
1 vote
0 answers
84 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 ...
Cody Kentucky's user avatar
2 votes
2 answers
179 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 ...
jonathan's user avatar
1 vote
1 answer
377 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 ...
Omer Davidi's user avatar
1 vote
1 answer
40 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 ...
Maria's user avatar
  • 11
1 vote
0 answers
62 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: #...
Ryland Goldman's user avatar
1 vote
3 answers
682 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 ...
Max Bluhm's user avatar
1 vote
0 answers
63 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 ...
user90726's user avatar
3 votes
0 answers
107 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 ...
nh1628's user avatar
  • 31
-1 votes
1 answer
94 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 ...
user90576's user avatar
1 vote
0 answers
41 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 ...
vanHellsing's user avatar
1 vote
1 answer
49 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() // ...
Akash Patil's user avatar
1 vote
1 answer
77 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 ...
Vuro H's user avatar
  • 11
-1 votes
1 answer
48 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 ...
CGG's user avatar
  • 99
0 votes
0 answers
124 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 ...
user1584421's user avatar
  • 1,385
-1 votes
3 answers
355 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 ...
AndrewGreen's user avatar
2 votes
0 answers
263 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 ...
LLAMAFTW's user avatar
1 vote
1 answer
157 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 ...
Jashanjot Kaur's user avatar
2 votes
1 answer
379 views

Esp32 fails to read MH-Z19C sensor

I'm trying to read CO2 data from a MH-Z19C sensor with an ESP32 board but I'm not getting anything. The error code from the library is 2 indicating a timeout (no data received). Did I get the wiring ...
Adam Cherti's user avatar
-2 votes
1 answer
158 views

Using 1.1Vf to read stable battery voltage and sensor voltage

After several tries, i was successful with reading stable battery voltage using internal voltage reference of 1.1v, now the issue i face is that i cannot read stable sensor voltage, could you please ...
electro_nooobbbb's user avatar
1 vote
1 answer
366 views

ESP32 failing to read from DHT11, MH-Z19C sensors

I got MH-Z19C (CO2 ppm) (datasheet), and DHT11 (temperature) sensors from Ebay and followed instructions online to set it up with my ESP32 board (ESP32). I'm using a breadboard and 5V/3.3V power ...
Adam Cherti's user avatar
0 votes
0 answers
108 views

Capacitance from AD7746 always "saturated"

I'm trying to use AD7746 with an arduino board to continuously measure capacitance (I'm currently using a 2pF capacitor for testing). Datasheet here. I managed to correctly write and read the ...
rootrot's user avatar
1 vote
0 answers
29 views

Problem with Time Interrupts in ESP8266 with water proof depth sensor

I am trying to use an edited version of waterproof depth sensor code from the Arduino blog. It works well on my Arduino Uno board; however, it doesn't work with my ESP8266 board. Is there a way to ...
SadekMo 's user avatar
-1 votes
1 answer
689 views

Using multiple ultrasonic sensors simultanously with the same trigger

I want to use three ultrasonic sensors together and would prefer to use as few pins as possible, so I was thinking of using one trigger for all 3 sensors. The sensors will have an angle of 90 degrees ...
Annelotte's user avatar
0 votes
1 answer
149 views

AD8232 - Measuring heart rate only if USB connector is touched. Grounding issue?

TL;DR I can read out my heart rate but I have to physically touch GND of the Arduino or else the signal is just noise. Description So I've started to play around with an Arduino and wanted to try out ...
Stefan Falk's user avatar
-1 votes
1 answer
137 views

How to read analog sensor data with different timers in arduino

I have three analog sensors like voltage, temperature and pressure. I need to measure the voltage and temperature every 10 ms and I need to measure the pressure alone every 30 ms by using the timers ...
Pritha's user avatar
  • 1
0 votes
0 answers
57 views

Is it possible to sample a signal with a sample frequency of 48kHz?

I want to have a filter with a 48kHz sample frequency, is that possible using the esp32? Here is a part of the code i developed using the arduino IDE: void setup() { // Initialize serial and wait ...
Scipio's user avatar
  • 101
-2 votes
1 answer
44 views

how do I wire a 2nd Adafruit TMP117 board to my Adafruit Metro by I2C?

I want to connect two TMP117 boards to one Metro (ie. Arduino). (the first, addressed at 48 the 2nd at 49.) Should 2nd board's 4 wires simply attach (ie. solder) in parallel to 1st board's 4 wires? (...
Doug Null's user avatar
  • 191
1 vote
2 answers
231 views

Analog Microphone values not changing

I just bought a microphone for my Ardoino Nano 33 BLE. The mic can use both Analog and Digital input. Here is the mic and how it's connected. Here is the code where I read the input int sensorPin = ...
Vubbe's user avatar
  • 11
2 votes
2 answers
70 views

Can a three wire Electrical conductivity sensor (Sensorex CS 150) be used directly with arduino?

I am having an electrical conductivity sensor (Sensorex CS150 with three tinned wires Red, Black and white https://sensorex.com/product/sensorex-cs150-12-mm-graphite-contacting-conductivity-sensor/ ). ...
Jashanjot Kaur's user avatar
1 vote
1 answer
72 views

Fading out a led with reed switch loop

I was hoping to get some help on the fading led which I am working on. For my project I need to have a led, which when it is placed next to a magnet, continuously shines, but as soon as it is taken ...
Igne's user avatar
  • 13
1 vote
0 answers
66 views

When a button is pressed, it interferes with TFT screen

I'm trying to build a simple device to monitor my heart rate. The components are the following: A TFT 2.8" LCD screen to display relevant information for the user. 3 buttons for the user to ...
Arnau's user avatar
  • 113
-1 votes
3 answers
124 views

Is there any way to efficiently code reading of four sensors and sending a serial output once it does detect a reading?

I am actually wondering if there's a way to efficiently do this block of code. There are two things in my specifications and these are: Four IR Sensors that detects blockage. Basically just to ...
fireblazer10's user avatar

1
2 3 4 5
25