Questions tagged [sensors]

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

Filter by
Sorted by
Tagged with
-1
votes
2answers
542 views

Is there a digital/ultrasonic Anemometer for Arduino?

I use Arduino DUE and I noticed that many forum users use the TX-23U Wind Sensor. https://www.amazon.com/Crosse-Technology-TX-23U-Weather-Stations/dp/B0016MYA7U Also, many people tried to create a ...
1
vote
2answers
48 views

Two sensors using I2C

We have two sensor one of them(MPU6050-gyro) is communicating using I2C, the other is via SPI(SD card reader). Now, we need an additional component as a sensor that the barometer which communicates ...
0
votes
1answer
30 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 ...
0
votes
1answer
209 views

LM393 Speed sensor - Counting pulses

I'm trying to calculate de rotation speed of a dc motor. I'm using the sensor shown in the picture and a slotted disk attached to the motor. The results I was getting made no sense and after several ...
0
votes
1answer
27 views

I am not able to set the correct configuration of sound module

I have been trying to make sound reactive LED lights but my sound module is detecting only very close voice the LED react only when I press it to the speaker with my hands I have tried to set the ...
0
votes
2answers
187 views

Value read is not changing while rotating pot in arduino?

I am trying to read voltage using analogRead in Arduino Uno from a voltage divider circuit consisting of 1k resistor and 10k pot. The Pot used is bourns 3296. The values obtained only range from 1011 ...
0
votes
0answers
20 views

how spilt the sensor values then use them to control servos in nodemcu v3?

#include <ESP8266WiFi.h> #include <WiFiUdp.h> #include <Servo.h> const char* ssid = "Ece Control"; const char* password = "myphonewifi"; WiFiUDP Udp; unsigned int port = 5514; char ...
0
votes
1answer
104 views

Connection of a DS18B20 on a Arduino pro mini

I'm actually trying to connect a DS18B20 sensor to a homemade board build with a ATmega328P processor running with a power of 3.3V and at 8 Mhz. In order to get the address I wired the board as the ...
0
votes
1answer
57 views

What is the maximum number of sensors that can be operated on a single Aurdino unit

I currently have an Aurdiuno uno and a motor driver shield: (http://www.hobbytronics.co.uk/arduino-motor-shield). Now, I would like to run the following mechatronic devices: 3 bi-direction motors, 1 ...
0
votes
0answers
94 views

Help Connecting Lidar sensor over SPI to arduino Due?

I'm very new to Arduino and have never used the SPI protocol before. I've tried following tutorials online, but my SPI.transfer always returns a value of 255 whether the sensor is connected or not. ...
0
votes
1answer
927 views

How to calibrate and use MQ-7 gas sensor? [closed]

Could anyone help me calibrate and use the MQ-7 sensor? I've read guides, but some say I need RO, offset or heating cycles for calibration.
1
vote
0answers
175 views

What sensor do I use to measure the intensity of direct sunlight?

I'm trying to measure how bright the day is on a particular day to see how it affects plant growth. The brightest sun can be 120,000 lux. It possible to measure such a large brightness? What sensor do ...
1
vote
1answer
106 views

How to get 3v3 pins on Arduino Mega Sensor shield v2.0?

I am using Arduino mega and a sensor shield (picture attached below). I need to connect three different wires to 3.3 V input. Can anybody suggest how can I achieve the same? What voltage do the VCC ...
1
vote
1answer
234 views

Triggering an ultrasonic sensor

I made a smart blind stick for my class project. It uses an ultrasonic sensor to detect obstacles and I was asked this question in VIVA... Why is it necessary for giving a digital high for 10 &...
1
vote
1answer
54 views

My Code turns on my LED even when my switch is not pressed

I am trying to create a circuit that will turn my motor when I clap. When the first limit switch is low, and there is only one clap, a solenoid pin is supposed to be engaged (currently an LED), but ...
0
votes
0answers
357 views

MQ7 Flying Fish output format

I am new to Arduino project. I used MQ7 flying fish sensor to sense the CO. Ok now I connected everything as mentioned in various tutorials, such as Arduino CO Monitor Using MQ-7 Sensor. Also wrote ...
2
votes
0answers
79 views

Problem in integrating speed sensor LM393 with L298N

I am currently working on a project that has an automatic support wheel for bicycle. The mechanism of this project is when the speed sensor is detecting the RPM of the rear bicycle wheel it will ...
-3
votes
1answer
42 views

Please answer this [duplicate]

what is the difference between transmitting and receiving leds(circled) connected to sensor board and ir emitter and receiver diode shown in second pic?Will the output change it i replace the former ...
0
votes
1answer
148 views

How to calibrate the MQ7 sensor module?

I recently bought a MQ7 sensor module like the one in the attached picture. I have read several tutorials, and they're all different. Some of them says that i need to connect the module directly to 5v ...
-1
votes
2answers
49 views

May mulitple sensor connect to one arduino uno board since they shared same pin? [closed]

i am a Arduino beginner here. I start knowing about Arduino since my supervisor give me this project. In my project , i need to invent a car safety system to avoid animal hurting that hide under ...
-1
votes
1answer
71 views

Why LCD 16x2 cannot display “water leaking” when rain sensor detects water?

#include <SoftwareSerial.h> #include <LiquidCrystal.h> LiquidCrystal lcd(12, 11, 5, 4, 3, 2); SoftwareSerial mySerial(0, 1); int gas_sensor = A5; int water_sensor = 8; int buzzer = 9; int ...
0
votes
0answers
223 views

Multiple Servo motors with an ultrasonic sensor

I am building a robot arm with 6 servo motors that works with an ultrasonic sensor. The purpose of the program is when an object is detected at 20 cm (fixed position) from the sensor, the buzzer and ...
1
vote
1answer
206 views

I'm getting NaN for readings on my DHT22 sensor when using 3v3 pin, but not 5v pin

I have a DHT22 temperature sensor and DS1302 RTC module connected to the 3v3 pins on an Arduino Nano. Both the sensor and the RTC module are rated to work on either 3.3V or 5V, but the recommendation ...
2
votes
0answers
170 views

How to build image with ultrasound sensors HC-SR04 [closed]

There is a simple algorithm on Wikipedia: how to build ultrasound image. And I want to build one. Resolution and presision are of no importance, I just want to do this for the case of study - I want ...
0
votes
0answers
48 views

Arduino stuck when I disable Timer 2 Interrupt

#define TIM2_EN() (TIMSK2 = 0x02) #define TIM2_DIS() (TIMSK2 = 0x00) //HEART SENSOR // Include Libraries #include "Arduino.h" class PulseSensor { public: static void begin(int pulsePin); static ...
0
votes
1answer
69 views

Prioritizing one sensor [closed]

I want to ask is there a possible code to prioritize a specific part of a code? So I'm doing this project where I want to utilize muscle sensor, servo, and a button on an app over Bluetooth. The ...
0
votes
1answer
192 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
49 views

Analog pins giving off the same value

So recently I made code that used two custom sensors that are connected to the analog pin A0 & A5. Schematic can be seen here (http://inmoov.fr/test-your-finger-sensor/). const int ono = A0; ...
1
vote
1answer
60 views

Field Hockey Ball Tracker

I'm brand new to development and planning a project with my daughter to track speed and time in motion of a ball. Example, ball is at rest. It is then put into play, timer starts, and speed is ...
0
votes
1answer
346 views

Using a water sensor with a NodeMCU make it less sensitive?

I'm trying to digitalRead from a water sensor (the one in the picture) using NodeMCU v3,when I try the sensor with an Arduino board it works fine, but when I try it with an ESP8266 NodeMCU v3 it ...
0
votes
0answers
38 views

Music Reactive Fountains

I want to make Music Reactive Fountain. When You say "Holaaaaaa" The fountain (PWM arduino signal) should increase making the fountain reach it's maximum height according to the amplitude of my voice ...
0
votes
0answers
68 views

How to connect 3 MPU9250 to Node Mcu together?

I don't know how to connect 3 MPU9250 together on Node Mcu. There is not much information available. I am using bolder flight library for imu sensor - https://github.com/bolderflight/MPU9250 Can ...
1
vote
1answer
294 views

Ultrasonic sensor underwater calibration

Does anyone knows how to calibrate AJ-SR04M using the Arduino? I am working on AUV. underwater reading from current code; it is giving continuous 20cm while moving inches. http://shop2.hanjindata1....
-1
votes
1answer
27 views

Light Sensor - how to wait for specific setting then continue on Leonardo?

I have an analog light sensor working on my Micro Pro Leonardo board. I want to reach a part of my code which include keyboard presses where it monitors to see when an LED flashes and then continues ...
0
votes
2answers
88 views

Arduino analogRead fluctuates from sensor unless USB connected

I have an Arduino connected to a 4-20 mA sensor through a current to voltage converter. When connected to the power supply the sensor reading fluctuates, as soon as I also connect it to a USB port it ...
0
votes
0answers
16 views

How can I fix my HRLV-MaxSonar-EZ ultrasonic sensor so it does not give gibberish feedback?

I have hooked up my ultrasonic sensor to my Arduino correctly, I know this because I am getting feedback from it, but when I run this code: int mode = 2; double distance; double calibration; void ...
0
votes
2answers
177 views

Connecting multiple MAX30100/30102 via I2C

I want to connect multiple (up to 4) MAX30100 or MAX30102 oximeter sensors to an Arduino via I2c. But I could not find a solution to change/assign the I2C address. implementing-pulse-oximeter-using-...
0
votes
2answers
440 views

How to combine two different sensor sketches to one complete sketch?

How to combine two different sensor sketches to one complete sketch for a complete circuit that attaches to one Arduino Uno? Sharp Dust Sensor int measurePin = A0; // Connect dust sensor to Arduino ...
1
vote
0answers
31 views

Help with app controlled Arduino sensors [closed]

(I'm a beginner in using Arduino and MIT App Inventor) We have this project (an app-controlled aquaponics system) where our group decided to use an app to control the arduino sensors and then show ...
0
votes
1answer
110 views

Serial plotter isn't displaying my supplied data

I want to use serial plotter feature of Arduino by using DHT11 as humidity sensor at a time. But I'm getting problem as plotter is not loading by the code I have. Please help me what is the problem ...
-2
votes
1answer
35 views

Use 2 DHT22 AND PASS THE DATA TO SD Error File data does not exsist

anyone can help me please to fix this error when I try to compilate says File does not exsist. It would be great if anyone can post the entirely code. Link of code below if anyone can help me please: ...
0
votes
1answer
123 views

sensor for illegal parking detection [closed]

I want to create a system that will detect illegal parking. I will place the sensor s to specific locations and when a car parks there the system will send a message to local authorities. My question ...
0
votes
1answer
57 views

Do all pins of Arduino Uno output 5V?

I am currently working on a project which uses PIR motion sensor and 5V relay. Since you might be familiar that both the motion sensor and the relay requires a 5V connection. My problem is, I don't ...
0
votes
1answer
218 views

Not able to find right library for MPU9250

I am using an Arduino Uno and learning to use the motion sensor. Currently I was not able to find the library which looks simple and would like to get your suggestion. I found this https://github.com/...
0
votes
2answers
223 views

Arduino library redeclaration error

This is my first time here and I hope someone can be of help! I'll try to keep it as concise as possible. So I have two sensors/modules, 1 is an LCD screen from elecrow and another is the DS1307. ...
0
votes
1answer
51 views

Use 2 DHT22 AND PASS THE DATA TO SD?

I have the code to pass the data from dht22 to sd but for only one and i want to pass the data from 1 dht22 with one file and the data from other sensor to other file and logging in to sd. Anyone can ...
-1
votes
1answer
313 views

NPN sensor to Arduino

I have a beam sensor providing NPN and also PNP output. It as 4 wires and works on 24V. I hooked the brown(+) and blue(-) to a small 24V power supply and the sensor is working!!! Yeah! Now I would ...
0
votes
2answers
293 views

Combining 2 sensors in one code with 1 push button

I am trying to create a circuit with one tactile pushbutton, and LCD and two sensors: 1) temperature, and 2) pulse sensor. When the circuit is on, the LCD initially shows the reading from the temp ...
0
votes
2answers
446 views

Combining code for multiple sensors in a single program [closed]

I need to operate 3 different sensors (taken 6 sensors of each type) by Arduino Mega2560 :- DHT11 (temperature-Humidity sensor) MQ5 (gas sensor) and Soil Moisture sensor {taken 6 of each type (total=...
1
vote
1answer
908 views

Why is dtostrf() not working for this one value?

I'm building a weather station using an ESP32 and BME280. I'm feeding the data via MQTT and Python into a database that is then used to make a nice dashboard for the data. The MQTT message needs to ...