Questions tagged [sensors]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
48 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&...
ElectronicsBeginner's user avatar
1 vote
0 answers
26 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 ...
Bilal Bahadır Akbulut's user avatar
0 votes
1 answer
29 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 ...
S.A's user avatar
  • 11
0 votes
1 answer
38 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 ...
BigWally's user avatar
1 vote
0 answers
57 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 ...
hasan darwish's user avatar
1 vote
0 answers
76 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(): ...
Ajai Arjun's user avatar
0 votes
1 answer
52 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 ...
walter's user avatar
  • 1
-1 votes
2 answers
78 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
1 vote
2 answers
202 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
-1 votes
1 answer
190 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
-1 votes
1 answer
165 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
  • 19
2 votes
1 answer
144 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
53 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
52 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
204 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
140 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
78 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
2 answers
588 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
211 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
134 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
294 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
711 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
46 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
74 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
717 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
70 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
150 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
167 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
56 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
57 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
88 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
50 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
150 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,395
-1 votes
3 answers
742 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
356 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
229 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
587 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
216 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
514 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
1 vote
0 answers
32 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
1k 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
204 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
168 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
69 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
51 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
  • 201
1 vote
2 answers
371 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
77 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
96 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
87 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
148 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