Questions tagged [sensors]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

How do I get a nonzero output from my HX711 and load cell?

I am trying to set up a load cell using the HX711 amplifier. Whenever I upload my sketch, my serial monitor only will read zeros regardless of load applied to the sensor (no signal appears to be ...
0
votes
1answer
1k views

How to get PPM value from MQ-3?

I tried to build project to detect alcohol with Arduino Uno and an MQ-3 Alcohol sensor. I already have the R0 value, but I faced problem here: I don't know how to convert it to PPM or BAC. I already ...
2
votes
2answers
42 views

Arduino ultrasonic sensor weird output

So I just got into arduino and bought Elegoo's car robot v3 kit and built it, but when I put the robot on "object avoidance" it constantly spins as though there is an object in front of it. I tried ...
0
votes
1answer
574 views

Writing data from multiple sensors in burst mode to an Arduino Due

I need help developing a simple sketch that can read data simultaneously from 3 analog accelerometers and send it in 'burst mode' to be stored on an SD card, to reduce the effect of latency. I used ...
0
votes
1answer
18 views

Why does the reading on the ESP32 read max, when the reading on UNO read accurately?

I have a 'Capacitive Soil Moisture Sensor' hooked up to my Uno. Very simple code. AnalogRead(MoistureSensorPin); This will return a differing value that I can work with. When applying the same code ...
0
votes
1answer
29 views

end measure process of HX711 with Door Lock magnetic sensor

I'm doing a program that starts the measuring process, using an HX711 when the door lock magnetic sensor spits and, when ends the measuring process when the door lock magnetic sensor joins. if (...
0
votes
0answers
11 views

I'm trying to use a CONZIR CO2 sensor to find CO2 concentration

Hey I’m a beginner Arduino user trying to use a CO2/Humidity/Temperature sensor to read in the atmospheric conditions near the sensor and then control a heating pad and solenoid valve to adjust the ...
0
votes
1answer
172 views

Trying to use Tap Detection solution using ADXL345 with Arduino

I am using ADXL345 sensor connecting with Arduino via I2C interface, I am able to test the data at tri-axial axis but as there are some other features also, which I am going to try with Tap detection ...
0
votes
1answer
36 views

Trying to measure distance using an ultrasound sensor

I am relatively New to Arduino and need your help. Actually i made a code and the problem is that the ultrasound sensor doesn't work at all. It isn't displaying the distance between the object and and ...
0
votes
1answer
33 views

I need some help getting data from a rangefinder

I have wired up my range finder (CJVL53L0XV2) to a breadboard for testing and have run the arduino example code for the rangefinder. The rangefinder works, but I do not know how to take the distance ...
0
votes
1answer
24 views

choosing prober controller to measure engin speed changes

In order to monitor engine speed changes in real time, sensor is detecting the motion of few magnets around a disk driven by the motor. 1st approach Hall effect sensor signal is regulated by LM393 ...
2
votes
1answer
19k views

Getting BPM from the given code

I have found code that can blink an LED on Arduino according to Heart Beat. I am using AD8232 as a sensor for Heart Rate. Code for it is: // Variables int PulseSensorPurplePin = 0; // Pulse Sensor ...
0
votes
2answers
87 views

ESP32-CAM not reading BME680

I am trying to read BME680 on ESP32-CAM with following code : (Before trying BME680, I have suscessfully connected BME280 to ESP32-CAM over S/W SPI) #include <Wire.h> #include <SPI.h> #...
0
votes
1answer
29 views

Compass heading not varying linearly

I am using an HMC-5983 magnetometer compass on my arduino uno to find the heading of a car I'm building.But my compass readings aren't varying linearly.For example when I physically turn my compass by ...
0
votes
1answer
44 views

How to get air speed, which sensor to use?

I want to measure the airspeed on a flying vehicle and get the data with arduino. Note that, there will not be any control mechanism on the flying object, it will be flying mechanicaly/passively, I ...
0
votes
2answers
48 views

Will an Arduino Uno be able to read 3x incremental encoders?

Encoders are quadrature 600ppr encoders with X2 counting. Therefore 1200 counts per revolution for each encoder. Is there an edge rate limit? I currently have one encoder hooked up using code with ...
-1
votes
1answer
40 views

How many sensors can be used in arduino for my project?

I'm doing a project on water purity finder. I dont know which arduino board can be used for the project. It uses upto 15 sensor modules excluded display, WiFi module. Can you tell me which board is ...
0
votes
2answers
482 views

detecting presence inside - PIR or ultrasound?

(I am professionally a software guy working in the GCC compiler with MELT, so I am fluent in software, but much less in hardware - I did use a solder for a 74LS00 nand gate based stuff in the 1990s. ...
0
votes
0answers
30 views

line following IR sensor not giving readings at 3m wire length?

I am using line following IR sensor with arduino mega. I need the sensor 2-3m away from arduino since the length of rover is 2m (sensor front & motor back). However, I cannot get accurate analog ...
0
votes
3answers
677 views

Gas Sensor output voltage to concentration

I am using figaro tgs gas sensor (2600, 2602 and 2620) to sense breath from human. What I obtained is the output voltage. However, I would like to convert the voltage to concentration in ppm? Since ...
0
votes
0answers
21 views

Laser light detection - Photoresistor or Laser sensor module?

I understand you can use with either a basic photoresistor or this non-modulated laser sensor. But which is more reliable for basic light detection? I am wanting to detect the beam from a basic laser ...
0
votes
0answers
21 views

Micro controller Recommendation for Data Acquisition System?

I am doing a project involving connecting multiple environmental sensors to a MCU in order to collect data during an experiment. I need a minimum of 15 analog differential input channels, with a ...
-1
votes
0answers
12 views

combining code for multiple analog gas sensor in one program using arduio uno(atmega328p) [duplicate]

I am working on air quality monitoring system. I am using 3 gas sensor one pir sensor. I want to interface all sensor with arduino uno and write one program. What should be the way to join all sensors ...
0
votes
0answers
18 views

My GPS coordinate does not show. Only my ultrasonic output came out

#include <TinyGPS++.h> #include <SoftwareSerial.h> static const int RXPin = 4, TXPin = 3; static const uint32_t GPSBaud = 9600; // The TinyGPS++ object TinyGPSPlus gps; // The serial ...
1
vote
3answers
258 views

Issue connecting heartbeat & temperature sensor on arduino uno but working individually

So the code is working individually for temperature sensor and for heartbeat sensor but when i combine it together it shows wrong values for the temperature sensor I'm using lm35 temperature sensor ...
0
votes
1answer
190 views

bh1750 lightsesor won't work

ok, im having problems with my bh1750, here is all info i got: board: esp32s nodeMCU v. 1.1 Pins: Wiring: (the 2 reds go to pin 21 and 22) code: #include <BH1750.h> #include <Wire.h> ...
0
votes
0answers
39 views

Bluetooth toggle between two master device (Using UART)

we are currently using a BLE Tiny Circuit broad with UART codes. Is it possible to allow two master to connect to the circuit board and the circuit board will be able to transmit data to both ...
0
votes
1answer
651 views

Problem with Pulse Sensor signal

I'm making alarm with input from pulse sensor. When it detect high heart rate then it send a text message. Everything works fine when i am using potentiometer (as input) for simulating triggering SMS. ...
0
votes
1answer
8k views

Reading 4 to 20ma pressure sensor using uno

I have a OsiSense™ XMLP pressure sensor that I want to read from my Arduino uno. This is the circuit I am looking at building for measure 4 to 20 milliamp. I've read online to find out how to build ...
0
votes
1answer
54 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 ...
0
votes
0answers
30 views

Will this code for braking of dc motor using sensor work?

#define trigPin 13 #define echoPin 14 #define e1 10 // Enable Pin for motor 1 #define t1 8 // Control pin 1 for motor 1 #define t2 9 // Control pin 2 for motor 1 #define led 3 #define led2 5 #...
0
votes
0answers
11 views

nodemcu nack error bh1750

I am trying to run a simple example of bh1750 on my nodemcu, code is #include <Wire.h> #include <BH1750.h> */ BH1750 lightMeter(0x23); void setup(){ Serial.begin(9600); Wire.begin(...
2
votes
1answer
1k views

PIR sensor and sleep (interrupt) on Mega2560

So I was starting to gain some knowledge on the PIR sensor and how to let the Arduino 'sleep' while there is no movement detected by the PIR. I found the following code somewhere and looked fairly ...
0
votes
1answer
806 views

How can I connect the MP503 to an Arduino Uno (Smoke, Alcohol Sensor)?

I don't know how I can connect an MP503 sensor to my Arduino. Please help. http://eleparts.co.kr/data/design/product_file/SENSOR/gas/MP503%20(Ver1.4)%20-%20Manual.pdf
0
votes
3answers
66 views

Does a pulldown resistor use less battery power than a pullup resistor?

I am designing a circuit connected to a simple open-close sensor, like a switch. For ease of construction, the circuit with the sensor switch closes to ground, and uses a 1 MΩ pullup resistor to Vcc ...
0
votes
0answers
28 views

Reading from an oven humidity sensor

I have been trying to solve the problem of humidity sensors in a harsh environment (BBQ/Pizza Oven) and I came across this: enter link description here But I don't see any documentation on how to ...
0
votes
0answers
36 views

PIR Sensor Gives False High in 55 Minutes (Can't find a way to solve)

I have built a system to identify motions and fire alerts. System can send a SMS in case if it's identify such alerts. System consist of two parts, Part 1: Armed and Disarmed using a PIN (Using ...
-2
votes
5answers
3k views

BH1750 Light sensor always giving output as 54612lx

urgently need some inputs, Connection: VCC-5v GND-GND SCL-SCL(analog pin 5) SDA-SDA(analog pin 4) ADD-NC or GND Code pasted below used library from GIT : https://github.com/claws/BH1750 #include &...
0
votes
1answer
21 views

Arduino uno + 5 IR obstacle sensor

I have IR sensor with current draw 100ma i have to connect 5 of them is i can connect all 5 with arduino directly or i have to use external power suplly for them
2
votes
2answers
72 views

Noise on piezo analog read due to Arduino power supply

I am making a device that measures temperature and vibrations and records the values onto an SD card. It will be a standalone device. The hardware used: - Arduino Uno - PCF8523 RTC clock - MAX3186 + ...
2
votes
1answer
62 views

Does AWG size affect signal from sensors?

Would using a thicker cable like 16 AWG affect the signal being received from an RFID or Ultrasonic sensor? I understand AWG can make a significant impact on voltage when a thick cable is used over ...
0
votes
0answers
57 views

Arduino code does not function when relays are powered

I have a mega arduino, which is supposed to to power 4 relays using 4 touch sensors TTP 223, the relays are 5V coil and 220V. the arduino is powered by a 5 V adapter "mobile phone charger" and it ...
0
votes
1answer
88 views

Can you connect BH1790GLC and TMP117 sensors to an Arduino board?

I would like to use those two components for an upcoming project : BH1790GLC heart rate sensor TMP117 temperature sensor I especially like the fact that they’re so tiny. Could I connect them ...
0
votes
1answer
29 views

Serial.println Issue with Flame Sensor

I'm really new to coding and Arduino so I would be eternally grateful for the help. I'm trying to make a really basic flame sensor that beeps, lights up an LED and displays the distance from the ...
0
votes
2answers
101 views

Which sensors to choose to detect movement direction

So I'm planning to build a sort of light switch for my Philips Hue bulbs with an Arduino. This project will be mounted on a shelf next to my door to the room, parallel to the walking direction. In ...
0
votes
1answer
78 views

Ultrasonic Sensor - JSN-SR04T 2.0

I would like to use the JSN-SR04T 2.0 in order to find the depth of a body of water. Once I test the sensor in a body of water, the distance measurements are then constant at about 20 cm. I then ...
1
vote
0answers
35 views

ESP32: Share I2C bus among multiple freeRTOS tasks - do I have to expect synchronization issues?

I recently inherited some firmware with weird problems in regards to the duration of reading sensor values. The board is based on the ESP32 Wrover MCU and has multiple sensors connected via the I2C ...
1
vote
1answer
112 views

Spikes in CO2 and TVOC measurements with CJMCU-811 sensor

Firstly, I'm not sure if this is the right SE to ask this question. Please feel free to direct me somewhere else if needed. I am observing large spikes in CO2 and TVOC measurements using the CJMCU-...
1
vote
1answer
651 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 ...
0
votes
1answer
60 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 ...