Questions tagged [sensors]

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

Filter by
Sorted by
Tagged with
-1 votes
2 answers
41 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
1 answer
84 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 ...
2 votes
1 answer
361 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 ...
-2 votes
0 answers
26 views

ESP8266 I2C and 1-wire at the same time [closed]

I have ESP8266(WeMos D1 mini) and I want to connect BME280 and DHT22. My question is if I connect BME280 via I2C(GPIO4 and GPIO5) and DHT22 via 1-wire connection(GPIO14) will it work? Will be there ...
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 ...
2 votes
3 answers
392 views

Unable to find/connect I2C devices (SHT31 & SGP30)

I have recently purchased an Arduino Nano 33 IOT together with two sensors: Adafruit SHT31-D (https://learn.adafruit.com/adafruit-sht31-d-temperature-and-humidity-sensor-breakout) Adafruit SGP30 (...
0 votes
0 answers
28 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 ...
0 votes
1 answer
104 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....
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 ...
4 votes
3 answers
993 views

Water level Detection using Ultrasonic Sensor and arduino

I'm making a water level detector to control my motor which supplies water in water tank and for that I'm going to use ultrasonic sensor to be attached to tank lid. My question is whether the vapor ...
22 votes
12 answers
26k views

What type of connector does the GROVE system use?

What type of connector does GROVE use? I'm interested in wiring some old sensors so they're compatible with GROVE, so I first need to identify the connector so I can buy the housing and pins to crimp....
0 votes
1 answer
505 views

Connecting MPU6050 to Arduino Lilypad

To preface, I am very new to Arduino and I watched this video on YouTube. It shows how you can build a motion controlled car with Arduino and I decided to make this for my school project. One thing ...
2 votes
1 answer
448 views

Writing Arduino code for MPXV6115V pressure sensor

I'm attempting to use an MPXV6115V pressure sensor to monitor the constant vacuum of a suction device. I haven't been able to find a library to use with this sensor. I'm very new to Arduino but I am a ...
-1 votes
1 answer
62 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 ...
1 vote
1 answer
801 views

MKR GPS Shield Sampling Frequency

I have the MKR 1010 and am working on a circuit that needs realtime GPS positioning. I bought the MKR GPS Shield, and am using it on the I2C bus (attached via cable to the 1010 board), and am using ...
4 votes
2 answers
2k views

When it comes to UART to RS485 communication, what is the difference between the 'MAX485' and the 'HW-0519' module?

I recently found this model with the ID 'HW-0519' on it. It can be found online (HW-0519 in Aliexpress) and is sold for the purpose of converting UART to RS485 communication using Arduino devices. The ...
2 votes
1 answer
2k views

rf522 version 0x12

I bought a bunch of the common RC522 boards from some Aliexpress vendor. They (I tried multiple) seem to work at the register read-write level, but they don't seem to execute commands, much less ...
2 votes
1 answer
109 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
39 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 ...
0 votes
1 answer
137 views

Can I use TCS34725 Color Sensor with Lilypad?

I have been trying to get TCS34725 color sensor working with LilyPad Arduino USB - ATmega32U4 Board but with no success. I am wondering if it possible? I have been using the following Sketch to try ...
-1 votes
1 answer
45 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 ...
16 votes
1 answer
10k views

How can I sense when someone is sleeping with my Arduino?

Ignore the stalker-like title. I am thinking about creating a project with Arduino that can sense you sleep habits, when you're asleep, and how much you sleep. It would be convenient to not have to ...
2 votes
1 answer
295 views

TFMini Sensors with Arduino

I have three TFMini sensors I need all of them to detect. I only got one to work , pins 4,5 . My info in coding is basic . I really appreciate your help . Thanks in advance. I think the problem is ...
0 votes
1 answer
878 views

Having trouble passing data through RF24

I have three RF24, all of them are connected to one arduino-uno each. The first one has sensors that sends data to the second one then the second one passes it to the third one. The first pass from ...
0 votes
1 answer
289 views

How to find the time of any point on the graph on an Arduino serial plotter or Processing software?

I am plotting the graph of some sensor values on my Arduino serial plotter which looks something like this - But what I want to do is hover over any point on the graph and display the time at that ...
1 vote
1 answer
217 views

Arduino Nano: MAX30102 and memory problems

We are making a simple pulse oximeter device with an Arduino Nano and a MAX30102 sensor. The problem is the SpO2 reading and processing algorithm of the MAX30102 library literally does signal ...
1 vote
1 answer
61 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
97 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
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 ...
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 ...
2 votes
2 answers
172 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 ...
-1 votes
1 answer
100 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 ...
2 votes
1 answer
312 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 vote
0 answers
82 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 ...
1 vote
1 answer
1k views

Not getting any output from ECG sensor AD8232

I am trying for the beginning to run a simple Arduino code in order to test the functionality of the ECG sensor. What I am getting on the output are some random values around 600 or around 200. I ...
1 vote
1 answer
331 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
39 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
60 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: #...
0 votes
1 answer
1k views

Sparkfun CCS811 Air Quality Sensor is just not working

I have an Arduino Uno board and a SparkFun ccs811 sensor. I tried to reproduce the howto from the SparkFun homepage (https://learn.sparkfun.com/tutorials/ccs811-air-quality-breakout-hookup-guide?_ga=2....
1 vote
3 answers
680 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
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 ...
0 votes
1 answer
148 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 ...
3 votes
0 answers
105 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
87 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
2 answers
592 views

Reproducing a Fiber Optic Shape Sensor with Arduino?

I want to be able to track the curvature of a human arm as it straightens out and retracts (ex: like live tracking a bicep curl). I don't want to use resistive flex sensors. I've been trying to find ...
4 votes
2 answers
278 views

I2C sensors not working when I connect to LCD 20X04

I am making a hydroponic nutrient monitoring system using Arduino Uno, Atlas Scientific EC sensor, pH sensor, and RTD (temperature) sensor in I2C mode. I also want to use LCD 20x04 to display the ...
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 ...
-1 votes
3 answers
335 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 ...
1 vote
1 answer
76 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 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() // ...

1
2 3 4 5
25