Questions tagged [sensors]

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

Filter by
Sorted by
Tagged with
0
votes
3answers
2k views

(ultrasonic sensor code : No such file or directory)

I'm beginning in Arduino I do not understand what the error means. Please tell me where I can find the resources to understand it and allow the code to compile. #include <RCSwitch.h> #include &...
0
votes
2answers
586 views

Connecting two Arduinos via I2C while I2C Pins A4/A5 are already in use

I have the following problem: Since the BH1750 Sensor only supports two different I2C adresses, but i need to use 6 of those sensors, i wanna use 3 arduinos, 2 nanos, 1 uno and send the data from the ...
0
votes
1answer
79 views

IoT gabage monitoring system with my own Android application [closed]

I'm developing a device system in our campus - my aim is to provide three IoT smart garbage containers that will get the fill level (to determine the space of garbage inside and to inform the garbage ...
2
votes
2answers
72 views

Using two sensors with delay concurrently

I want to use an ultra-sonic sensor and the led concurrently. I want the led to blink every 0.2 seconds and the ultra-sonic to measure distance without regard to the blinking. The problem is I have ...
-1
votes
1answer
669 views

Arduino direction sensor

I am working on a school project for next week And I need my Arduino to 'sense' at which direction it is moved is it possible? Are there any direction sensors that 'sense' at which direction the ...
0
votes
1answer
88 views

Correlated signal from two sensors in one circuit

I have water level/humidity sensor and a LDR diode hooked to arduino like this (the resistor is 10k) On A0 I can read signal from water sensor (blue) On A1 I can read signal from light sensor (yellow)...
0
votes
1answer
26 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
2answers
34 views

Ping a sensor for error checking

Is it possible to ping a sensor, like DHT22 or 18B20, to check for connection. I want to do an error check in void setup() and make sure all sensors are connected properly.
1
vote
1answer
2k views

Vacuum pressure sensor for Arduino

I have an application that is being controlled by an Arduino. At one point in the process, it needs to determine the level of vacuum in a chamber and adjust it to within a range of values. I can ...
0
votes
1answer
169 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 ...
1
vote
1answer
213 views

How do I select Sensor using chip 74HC138 on Wemos D1 Mini?

I have a project for my graduate degree. It's about Monitoring Temperature and Humidity using Message Queuing Telemetry Transport on Serial NodeJS. To get sensor data to Wemos D1 Mini and NodeJS had ...
1
vote
1answer
101 views

Looking for a waterproof SPI temperature sensor

In my current project I'm using a DS18B20, which seems to be the only temperature sensor to show up when googling for waterproof temperature sensor for an arduino. The sensor itself is fine, however, ...
0
votes
3answers
1k views

Can the Arduino interface with a fingerprint sensor on my mobile?

I own a OnePlus 6 and it has a fingerprint sensor. Instead of using a fingerprint scanner module like the R305, could I just use my mobile for scanning the fingerprints? If yes, how do I implement ...
0
votes
1answer
200 views

Stabilitiy Problem for Interrupts Code related to Flow sensor

There is a problem with code related in link Interrupts Problem with Flow sensor. Code is working but when I stop the pumps, flow value on lcd is frozen until I reset the arduino. And when I start the ...
2
votes
1answer
106 views

FSR wiring using internal pullup resistors?

What are the disadvantages to using Arduino's internal pullups with a force force sensitive resistor (FSR) sensor? All the wiring examples I see for FSRs place the sensor on the high side and use a ...
1
vote
2answers
71 views

Detecting Ultrasonic sensor malfunction within the arduino sketch [closed]

Is it possible to write code in the sketch that checks the functioning of the ultrasonic sensor? Say if the sensor stopped working then the arduino will alert the user in the serial monitor.
0
votes
1answer
2k views

Interfacing with an SSI sensor?

I'm trying to interface with version RM08S of this rotary encoder using an Arduino Mega. The sensor supports a "Synchro serial interface (SSI), single ended" interface. I'm unfamiliar with this ...
0
votes
2answers
105 views

Run piece of code based on a feature

I am an engineering student completely new at using Arduino so my following question might be silly but still. I do not think you'll need to get the entire code so I am only going to expose the idea. ...
2
votes
1answer
547 views

Interrupts Problem with Flow sensor

#include <Wire.h> //I2C lib #include <LCD.h> #include <LiquidCrystal_I2C.h> // LCD lib LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); const int pot_pin = A0; const ...
1
vote
1answer
64 views

Arduino sensing its 'Motion'

I am working on a project where I need the Arduino to 'sense' at what direction its moving. For example, I want the Arduino to 'sense' that it is moving towards 'forward' direction, 'backwards' ...
0
votes
1answer
526 views

Caluclate lux value from LDR

I am using an LDR (Iduino SE012) to measure light. It returns a 10-bit value of the incoming voltage and I don't know how to convert this into lux, lumen candela or any other light-intensity unit. I ...
1
vote
1answer
1k views

How to detect water presence with only 2 wires

I don't know if this question belong here or on electronics SE. A manufacturer just sent me a personalize device which include an ESP-32 and a Water Sensor. My problem is that I don't know how to ...
-1
votes
1answer
76 views

I can't manage to upload multiple sketches [closed]

I'm doing a gardening project. It involves multiple sensors and even having the sketches for them, I don't know how to make them run together and get a reading on them at the same time. I'm really new ...
1
vote
1answer
423 views

DHT11 Sensor : Stand-by or Shut down?

I have an ATmega328P monitoring room temperature and humidity. It is enough for me to monitor every 8 seconds. In these 8 seconds, I am putting my Atmega to sleep. Now , I want to know : Does ...
0
votes
1answer
28 views

How to properly link an Arduino and its sensors [closed]

To finalize a prototype, I would like to have a proper structure containing the arduino (uno here), its shields and its sensors. I would like the sensors to be soldered to the arduino+shields block, ...
1
vote
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
1answer
1k views

hx711 and load cell read out 0 for calibration

I'm using this tutorial from Sparkfun https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide And using THEIR code. The only difference is I added a delay so it wouldn't ...
1
vote
3answers
243 views

How to filter or eliminate earths magnetic field readings around 3D Magnetic sensor?

Im using the SparkFun MAG3110 3D sensor: https://www.sparkfun.com/products/12670 My application is essentially to make a contactless "magnetic joystick" using a local magnet for accurate and constant ...
0
votes
1answer
56 views

State machine waiting for input state isn't getting input states for unknown reason

I have a state machine program used to monitor sensors and activate relays that has been used and adapted on multiple machines and it typically performs exactly as needed. I am attempting to adapt the ...
1
vote
2answers
134 views

Powering Atmega328P-Pu externally [closed]

Please I'm new to Arduino and I need assistance. I'm working on a project which makes use of the ultrasonic sensor to make a certain pin high if a certain distance is attained. When I used the USB ...
1
vote
3answers
396 views

Touch Sensor - Determining Pressing/Hold Length and Modifying Program Flow Accordingly

The code below is used for controlling a relay with an Arduino. Pressing the touch sensor connects and disconnects the relay. If the user presses/touches/holds their finger on the touch sensor for ...
0
votes
2answers
97 views

Trying to connect FT sensor to Arduino Mega using RX TX

I am trying to interface this sensor, https://www.robotous.com/forcetorquesensor (RTF60-HA01-C), with the Arduino Mega. The sensor has an input voltage of 5Vs and communicates using CAN/RS232/RS422. I ...
0
votes
1answer
245 views

Make system with ultrasonic sensor and servo

I want to create a system where the servo will make the ultrasonic sensor move and detect the area in front of it. I have made the program but when run the ultrasonic sensor can not detect as usual. ...
0
votes
1answer
68 views

MAX6675 gives a climbing reading

I am using a MAX6675 board and a k-type thermal couple to measure temp. The problem is even when running the example the temp value keeps climbing. MAX6675 test 27.25 C = 27.25 F = 130.10 109.00 C = ...
-2
votes
1answer
225 views

a code problem for arduino GSM 1400 to send a SMS when tilt movment is detected using accelerometer [duplicate]

There is a mistake in the design implementation of the code probably in if statment - when using the serial monitor it repeatedly shows printf() statements from the code instead of "Sending SMS ...
0
votes
1answer
45 views

Using a DFRobot Voltage Divider

I'm reading on the DFRobot website to implement this Voltage divider: Analog Voltage Divider SKU: DFR0051 void setup() { Serial.begin(9600); } void loop() { float val; float temp; ...
2
votes
1answer
913 views

Communicating with magnetic sensor - TLV493D-A1B6 over I2C

I'm using the TLV493D-A1B6 sensor connected to an Arduino Uno: I've attached all necessary documentation at the bottom. This is a 3D magnetic field position sensor that detects the magnetic field ...
0
votes
0answers
319 views

Reading data from Adafruit SGP30 Air Quality Sensor

I am trying to conect Adafruit SGP30 Air Quality Sensor to arduino nano and get values from it, but it seems that my code is not working properly. I followed instruction on the adafruit webpage, ...
0
votes
0answers
81 views

Grounding analogue signals through ads1115

Quick question - I have some pretty expensive gas flow sensors outputting a 0-5V signal, which need at least 2.5 KOhms minimum load. Can I connect them to the Adafruit ADS1115 breakout (ADS1115 chip, ...
1
vote
1answer
78 views

What is this? Looks like a sensor

I got an Arduino kit from my dad. But inside this box is a thing, maybe a sensor. But I can't find what it is. Anyone recognize this 'thing' on the picture?
0
votes
1answer
74 views

Shock sensor is not running in the file

I have faced an issue where the shock sensor is not running in the file. My idea is that when the ultrasonic sensor sense that when it is 4cm, the garage door will open. When the car reverses, the ...
0
votes
1answer
195 views

Waterlevel sensor disrupts PH reading

I have a water level sensor and a PH sensor connected to my nodemcu via an ADS1115 . When I insert only the PH sensor into the water then everything works fine. But when I insert the waterlevel sensor ...
3
votes
2answers
850 views

What is a simple way to measure the ambient light?

I want to install some LED stripes on my motorcycle, i.e. as brake light and indicators. I use WS2812 LED stripes which can be very bright - especially with many LEDs on at the same time. I want to ...
-1
votes
1answer
161 views

How to track a pressure sensor from analog inputs? [closed]

I am a beginner with arduino. I have been researching pressure sensors composed of 2 conductors that sandwich a layer of velostat. My understanding is the velostat when compressed creates resistance ...
1
vote
0answers
49 views

Can I track 70 pressure sensors from Arduino Mega?

I am a beginner at Arduino which I just received in the mail. My understanding is my Arduino Mega has 54 digital inputs and 16 analog inputs making for 70 inputs all together. I would like to track ...
-1
votes
1answer
2k views

How to make my servo slow down in it´s movement

I want to make my servo react on the data that my light sensor tells him by the amount of light that it is catching. I want the servo to go fast to the left when there is shadow/darkness and then I ...
2
votes
2answers
66 views

How to measure room light without LEDs interfering?

I'm trying to measure the light in a room with a simple circuit: a phototransistor connected in series with a resistor. An LED strip changes brightness according to the brightness level in the room. ...
-1
votes
1answer
74 views

I want a code for 6 LDR/LED pair

Each LDR is connected to one LED because I am doing a parking lot model. I have tried but with no luck. Help! int ledPin = 11; int sensorInput = A0; boolean ledIsOn = false; void setup() { ...
0
votes
1answer
123 views

Arduino or Raspberry? Self Balancing robot

Here's another one, as you probably have seen before. I'm finishing college, and I'd like, base of my subscription to be a self balancing robot that can send data to a screen. What kind of data? I am ...
0
votes
2answers
43 views

Sensor to measure distance on inverted pyramid filled with maize

I'm struggling with the following problem: I have an inverted pyramid, supported in four points, filled with maize up to 600KG. I want to keep track of the level of maize inside the inverted ...