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
33 views

Using an I2C barometer

When buying a barometer for my current project at work, I chose the MikroElektronika click 3 barometer. However, as it turns out, the library for it doesn't exist for Arduino. I know it uses I2C ...
user avatar
0 votes
0 answers
27 views

What sensor do I need? [closed]

I am looking for an acceleration sensor that acts like a switch (off when still, on when accelerating (a few moments is enough). It's important that it consumes NO power at all detect movement. Also, ...
user avatar
0 votes
0 answers
94 views

Losing 100ms on sensor.available with DFRobot sensor

we are using 2 https://wiki.dfrobot.com/Serial_6_Axis_Accelerometer_SKU_SEN0386 sensors with Arduino Mega. Everything is working but we get only 10Hz of sampling. We were testing with timestamples and ...
user avatar
-1 votes
0 answers
37 views

Why doesn't MQ2 gas sensor work as expected?

I got an MQ2 gas sensor and connected it up really nicely with the following code : int h; void setup() { Serial.begin(9600); } void loop() { delay(500); h = analogRead(A0); Serial....
user avatar
  • 1
3 votes
1 answer
253 views

Help with reading data from ADXL373 Accelerometer (I2C)

I am using ADXL373Z accelerometer with Arduino Uno for a project. When I run the code, I am getting incorrect values which are probably not even acceleration data. I am thinking it might be a wiring ...
user avatar
  • 31
-1 votes
0 answers
29 views

CC1101 RF Sensor 433mhz

Can you receive messages on an CC1101 RF module from a basic cheap 433MHz RF transmitter? From what i tried it works worse than having 2 cheap 433MHz RF modules. For some reason it gets a message ...
user avatar
-1 votes
0 answers
33 views

DFRobot V2 sensor doesn't change when setting a wet paper on fire

I tried the DFRobot V2 sensor with an MQ-7B on my Arduino but strangely when I set fire to a thing in my sink the gas sensor doesn't change: Indeed I get more or less: temperature = 404 gas = 919 ...
user avatar
-1 votes
0 answers
27 views

Can Arduino/Python receive sensor data and control servo motor simultaneously?

I am working on a project in which I receive a stream of data from a distance-measuring sensor(VL53L0x sensor). This data is populated onto my Serial monitor and I send this info to my python compiler ...
user avatar
1 vote
1 answer
21 views

Requires accurate RGB color values by the tcs3200 RGB color sensore

I used the TCS3200 sensor to read the RGB color values.First, I calibrated the sensor with white and black colors.The sensor detects red, blue, and green correctly, but does not give an accurate value....
user avatar
  • 11
0 votes
1 answer
54 views

How to turn led lights off and on in order when below a certain photovalue?

I'm making a traffic light simulation with a photoresistor but it's not working properly. When the photovalue drops below a certain point ( a car comes by) a peeping sound should play for a second and ...
user avatar
0 votes
0 answers
24 views

Double Click for Analog Sensor with Threshold

I am trying to build a keyboard for MD patients. I have only five force sensors, each sensor encodes 4 letters (20 in total), which means I am missing 6 letters. I thoght of using double-cick, for ...
user avatar
-2 votes
1 answer
37 views

My Atlas Scientific sensors measurement give zero values at first reading

I am still continuing my hydroponic nutrient monitoring project. In short, I made a hydroponic nutrient monitoring system with I2C connection, and decided to do serial communication with Raspberry Pi ...
user avatar
0 votes
1 answer
30 views

Adjusting Threshold for Digital Pins

I am working on a project using Force Sensors to build a keyboard for MD patients. I have connected the sensors (each with 4 input pins) to digital pins to Arduino Due. I want to adjust the threshold ...
user avatar
0 votes
1 answer
45 views

How often does a mpu6050 gyro sonsor need calibration?

I want to use it in my real car for daily use to measure yaw angle when needed. Is is ok to only calibrate it once at first then use it every day when driving without any problem? if not, how often ...
user avatar
1 vote
0 answers
29 views

HOW convert momentary button to touch sensor TTP223?

I am trying to convert this project https://maker.pro/arduino/projects/simple-fm-radio-receiver-with-arduino-uno-and-rda5807m to 3 touch sensors TTP223. But so far my new code don't work. Please can ...
user avatar
  • 11
4 votes
2 answers
62 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 ...
user avatar
0 votes
1 answer
38 views

Do I need to use resisters and ICes for specific sensors.What if I dont use it,Will it impact my arduino board some how like making it useless &faulty

So I was reading about Simple AutomaticLight Controller using LDR. or with the help of LDRSenso. But I have LM393 Photoresistor (LDR) Sensor I like to know are they same thing or somewhat different. ...
user avatar
  • 145
1 vote
1 answer
76 views

Why use multiple filters output thousands value, use one or two filter can output normal value?

Problem If the loop runs only one simulated pin and uses a filter, it will output normally (analog 1600~2200, filter 0~500), but creating an array to store multiple filtered simulated pin values will ...
user avatar
  • 45
2 votes
1 answer
103 views

Can I use Data Logger Shield with Arduino Sensor shield V5.0?

so I did a little research on this but the answer to my particular problem did not exist. I have a data logger shield created by deek robot (deek-robot.com) which seems pretty similar to adafruits ...
user avatar
3 votes
1 answer
121 views

Pulsein() function blocks other tasks from running silmultaneously

I am using a zumo bot with a reflectance sensor used to follow a black line. I want to use an arduino to make the zumo bot stop once it gets a certain distance from an obstacle. I have an ultrasonic ...
user avatar
0 votes
1 answer
83 views

Looking for help with an improved vibration sensing method for Arduino

I am trying to test how vibration waves move through different material...ie how sensitive certain components are. I am needing a vibration sensor that will send me back some kind of measurement say ...
user avatar
0 votes
1 answer
75 views

Is there accurate connection procedure for connection between an esp32 and ultrasonic sensor(HC-SR04)? [closed]

I am currently working on a project which integrates esp32 and HC-SR04 and send the data from HC-SR04 to my own domain. The connection diagram is this And the code which I use is this, const int ...
user avatar
1 vote
1 answer
108 views

Arduino HX711 load cell lots of drift

I am trying to make this 50kg load cell work with this HX711 chip. I currently have the following connections : Load cell red -> E+ Load cell black -> E- Load cell white -> A- Load cell ...
user avatar
3 votes
0 answers
130 views

Integration of MAX30100 and DS18B20 Thermal Probe Integration

This is for my final year project that I have been tasked with designing a patient monitoring system. However, during the last stretch of model prototyping, I am experiencing issues with my MAX30100 ...
user avatar
1 vote
1 answer
70 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 ...
user avatar
4 votes
1 answer
97 views

How to determine when a sensor's output signal changes significantly?

Starting with an analog signal from any sensor, how do I automatically determine if there is a real signal change or a reset? Below is the sample code that better explains my goal: value = sensorRead()...
user avatar
  • 43
3 votes
1 answer
818 views

Why do we add delay when using ultrasonic sensors?

I'm a beginner in Arduino and recently i got myself an Ultrasonic sensor (HC-SR04). I looked up tutorials on how to measure distance with the sensor and the code I'm using is: const int trigPin = 8; ...
user avatar
  • 139
1 vote
0 answers
118 views

Analog UV sensor displaying incorrect values in serial monitor (GUVA-S12SD)

Using Arduino Uno and a GUVA-S12SD sensor (https://www.adafruit.com/product/1918). Here's my circuit. 5V into sensor+, GND into sensor-, A0 to sensor out. Here's my code: void setup() { Serial....
user avatar
  • 11
0 votes
1 answer
288 views

HW-477 Module having VS1838B IR Sensor: Help with Pins

Ordered Universal IR Receiver and I got HW-477 module with VS1838B IR Sensor. Good thing is datasheet for VS1838B is available but not for HW-477. VS1838B pins as: Ref Signal | GND | VCC while HW-477 ...
user avatar
  • 135
1 vote
0 answers
51 views

SoftwareSerial fails to receive on Nano but works with Uno [duplicate]

I have built a circuit board that includes a BLE module and an oxygen sensor that has a UART. Writing arbitrary data to the BLE works fine, but for some reason every configuration of SoftwareSerial I ...
user avatar
1 vote
0 answers
56 views

How to get Bpm with 4 heart beat pulses

I'm trying to get an average from three intervals to get bpm. However, when I use the code below the bpm would slowly decrease when used with the sensor. Can anyone please check for what is wrong with ...
user avatar
  • 11
5 votes
5 answers
2k views

Why use a module rather than sensor directly?

I'm trying to understand when one would use an Arduino module rather than directly a sensor. Here's an example to contextualize my question: I need to use a Hall sensor to measure the number of ...
user avatar
  • 151
1 vote
0 answers
56 views

What external battery do I need?

For a school project I need to connect an Arduino with an accelerometer gyroscope sensor and 2 mini servo motors. Of course I need a battery for this. However, I don’t know what battery I need for ...
user avatar
  • 11
1 vote
1 answer
82 views

Why does the send pin influence the receive pin with Arduino Capacitive Sensing Library

I'm trying to figure out how the Arduino Capacitive Sensing Library https://playground.arduino.cc/Main/CapacitiveSensor/ works. It says: When the send pin changes state, it will eventually change the ...
user avatar
2 votes
0 answers
56 views

SPI problem with Bitcraze PMW3901 sensors and Arduino NANO

I am currently trying to connect four Bitcraze PMW3901 sensors to an Arduino NANO, but I seem to have issues with the SPI. When I connect two sensors using the code below, it works perfectly: I am ...
user avatar
  • 21
0 votes
1 answer
36 views

Circuit to get highest reading value from multiple thermistors?

I need to measure temperature of 6 battery cells. I don't care much about individual cell readings, I just want to sound a buzzer as soon as at least one of the temperatures is above a certain ...
user avatar
2 votes
0 answers
79 views

Can't stop the 3 pin active buzzer

I was simply trying to program a buzzer with the ultrasonic HC SR04 and 128x64 OLED display. The buzzer is an active buzzer (3 pin) on a small board. The problem is that, once on, it never stops ...
user avatar
  • 121
1 vote
1 answer
42 views

Mixed SHARP IR Sensor Readings

I'm using the GP2Y0A21YK Sharp IR Sensor in a ball and beam system where I'm trying to balance the ball in the center of the beam using the IR Sensor as a distance locator and a servo motor to tilt ...
user avatar
2 votes
1 answer
164 views

Using MAX30100 SpO2 value to turn on LED

max30100 i2c sensor gives heartrate and spo2 reading in serial and also can show values in lcd display. I want to show it's indication via LED. If SpO2 value <94 , it will turn on Red led in ...
user avatar
  • 23
1 vote
3 answers
291 views

Arduino UNO voltage supply reduces when I add more sensors

I have an Arduino UNO. When I connect an MQ-9 sensor or an ESP8266MOD WiFi chip, the LCD backlight drops that it doesn't display anything, the red LEDs on the Arduino board dims, and the voltage ...
user avatar
1 vote
0 answers
323 views

Fastest external High Speed ADC?

I am in a situation close to: Hi-speed external ADC But with 100,000 ~ 500,000 samples per second, I don't need more. I only want to detect changes in 2 sensors, so each loop is only an "...
user avatar
9 votes
4 answers
2k views

How do you handle sensor drift?

I have a pair of potentiometers, on the Arduino, the output seems to drift, by one or 2 digits, back and forth. I would prefer they were read as one fixed value, without variation when their knobs are ...
user avatar
  • 838
2 votes
0 answers
30 views

i want to combine below two codes [duplicate]

*****1st code int sensoroutput = 3; // the analog pin connected to the sensor int sensorinput = A0; int THRESHOLD = 100; void setup() { pinMode(3, OUTPUT); pinMode(A0, INPUT); // this ...
user avatar
1 vote
1 answer
62 views

How to stop Single Analog Pin Keypad Matrix (Using Resistors) from receiving Interference from Livewire/other Sensors?

I saw a tutorial on linking a keypad using one pin, utilising several resistors: http://razibshahdat.blogspot.com/2018/05/one-single-analog-pin-keypad-control.html I have this keypad, a 16x2 LCD, a ...
user avatar
1 vote
0 answers
72 views

Serial communication problems

When I run this script serial communication just stops after a random period of time. There is no error it just stops outputting data and does not respond to inputs in IDE. Does anyone know a fix for ...
user avatar
0 votes
1 answer
318 views

esp8266 analogRead of 5.5V soil moisture sensor input using voltage divider

On an ESP8266 I try to analogRead(A0) my soil moisture sensor using a voltage divider but I get unexpected low values. The MT3608 increases the esp's output voltage from 3.3V to 5.5V which is the ...
user avatar
  • 103
1 vote
0 answers
46 views

MQ-4 Sensor working fine with Beetle Bluno BLE but not with Arduino Nano 33 BLE

I have an MQ-4 sensor connected to a Beetle Bluno BLE that seems to work fine, however, when I change the board to an Arduino Nano 33 BLE, the sensor doesn't seem to work well (I get an arbitrary ...
user avatar
  • 111
1 vote
0 answers
71 views

Adafruit fingerprint sensor timer to exit out of enrolling

I have the following fingerprint sensor: Rugged Panel Mount Fingerprint Sensor with Bi-Color LED Ring [R503] : ID 4651 : $39.95 : Adafruit Industries, Unique & fun DIY electronics and kits Also ...
user avatar
  • 79
1 vote
0 answers
45 views

Elegoo remote code program only running once

I want this program to receive multiple signals from the elegoo ir remote and produce different tones using the passive buzzer. I have attempted to add onto the basic example provided by adding a ...
user avatar
  • 11
2 votes
2 answers
953 views

How to write nonblocking code, for polling sensor at 100 Hz

I'm using this piece of code to try to poll an IMU sensor at 100 Hz (for a AHRS sensor fusion library). void loop(void) { // nonblocking code variables static uint32_t last_ms; uint32_t ms; // ...
user avatar

1
2 3 4 5
25