Questions tagged [sensors]

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

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

Processing Serial data

I have a PM10 sensor that I'd like to get the values from. Here's the official documentation from the sensor: I've looked as serial communication, but how do i process byte by byte of information ...
R0b0tn1k's user avatar
  • 187
1 vote
1 answer
7k views

What if Ultrasonic sensor doesn't detect object?

I am trying to write a sketch where a function will only be triggered when the ultrasound doesn't return back. Thus when the echo pin is checked after 1 second after the trigger pin was written high, ...
HDatta's user avatar
  • 71
0 votes
1 answer
302 views

Details on OV7670

I am thinking of working on a project based on a camera module OV7670. I am making a security system using an arduino where detected motion (I am also using a PIR sensor) will trigger the camera ...
HDatta's user avatar
  • 71
5 votes
4 answers
707 views

Briefly "wake up" Arduino in response to an event

I want to connect a device to a door handle, so whenever someone opens the door I'll be able to send a message via my arduino that is connected to a WIFI shield. I have a simple orientation sensor, ...
Avenger's user avatar
  • 237
1 vote
4 answers
3k views

I want to pour 500ml of Water in jar with Arduino water flow controller?

I want to pour 500ML of water with Arduino water flow controller with maximum accuracy. How will I get the maximum accuracy with this sensor? Could someone can give suggestion for accuracy or any ...
Sagar Lone's user avatar
6 votes
1 answer
8k views

Compute yaw from magnetometer and accelerometer

I use an Arduino and a 9 DOF sensor (gyroscope, accelerometer and magnetometer) and I'm trying to use the pitch, roll and yaw that the sensor gives me to rotate an object in unity. I managed to ...
BAmadeusJ's user avatar
  • 163
2 votes
1 answer
437 views

Module and library for self healing large sensor network

I have to build a wireless sensor network with arduinos on my project. It does not need to be a mesh network, but it needs to have self healing capabilities. I would like to use something cheaper ...
Eduardo Santana's user avatar
1 vote
1 answer
9k views

ACS712 sensor reading for AC current

I'm trying to track down a clearly/simply articulated piece of code to take a reading from the ACS712 current sensor (link to download PDF data sheet). I understand that these sensors are noisy, and ...
Grant's user avatar
  • 385
2 votes
3 answers
2k views

Arduino ultrasonic distance meter doesn't display correct distance

The Arduino distance meter that I made doesn't display the correct distance. It just displays "0.0 inches". Here's the code I used: #include <LiquidCrystal.h> LiquidCrystal lcd(12, 11, 5, 4, ...
kaveendra alwis's user avatar
4 votes
2 answers
410 views

How to have precise measurements

I need to display measurements of a sensor which need to be presented on a precise time-scale. Since the loop function is not quite precise, how can i make sure that i can measure at say for example ...
user15977's user avatar
  • 141
0 votes
2 answers
546 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. ...
Basile Starynkevitch's user avatar
2 votes
0 answers
211 views

Declaring Variables in a For Loop

I am trying to use a for loop for getting readings on two parallax ping sensors and want to find the difference between both readings. But am having trouble doing so. Whenever I declare print ping(1), ...
Umbus's user avatar
  • 143
1 vote
3 answers
1k views

Options for measuring position of garage door

I'd like to be able to measure the position of my garage door. Determining if the garage door is fully open or fully closed should be fairly simple with some magnetic reed switches but I'd like to ...
jcollie's user avatar
  • 111
0 votes
1 answer
2k views

RobotLinking 18B20 pinout and circuit board weirdness

I have a Dallas Semiconductors 18B20 temperature sensor on a RobotLinking board. It's part of the RobotLinking 37 Sensors Kit. The board has a LED to indicate activity. It resembles this: Here's what'...
Aren Cambre's user avatar
2 votes
0 answers
224 views

How do I change the default number of parameters SDI 12?

I am a nooby so this might be an obvious answer kind of a question, but how do I change how many parameters arduino-uno reads from a sensor using SDI communication? My code (which was in public domain,...
LunnaZ's user avatar
  • 21
3 votes
2 answers
2k views

How to wire an analog IR sensor for digital input?

How do you wire a phototransistor so that it outputs a clean digital signal in response to certain light levels? I've wired a QRD1114 to an Arduino analog pin to detect a white or black surface. ...
Cerin's user avatar
  • 1,618
2 votes
2 answers
17k views

How to read temperature from multiple DS18B20 faster?

I am writing an Arduino sketch to read temp data from multiple DS18B20 sensors and then write it to serial. The problem is, as I am connecting more sensors, the delay between my temp data is written ...
serge1peshcoff's user avatar
1 vote
2 answers
4k views

How to connect an L293D and an MPU6050 to run together?

I'm wondering how to connect the L293D (H-bridge) and an MPU 6050. I'm using 1 Arduino Uno, 2 DC motors, 1 MPU6050 and an L293D. When I tried this, I got some sparks/smoke from the breadboard and ...
Marc's user avatar
  • 77
6 votes
1 answer
1k views

A good water flow meter to monitor home usage with Arduino

I'm searching for a good water flow meter to add to my home controller project with Arduino. I have been searching in several pages and I only found some devices that work for low flow. I need to ...
Juan Antonio's user avatar
1 vote
2 answers
246 views

Infrared distance sensor picks up distances that are not there

I have connected an Infrared sensor to my Arduino Uno and I've set this code up to blink whenever a distance of less than 50 cm is picked up. If there is an object less than 50 cm away, it does pick ...
ciprian's user avatar
  • 11
0 votes
1 answer
26 views

Printing Serial Readings for 2+ Parallax Ping Sensors

trying print values for two sensors, one works the other is 0, any tips on how i can use more than one? const int pingPin = 10; const int pingPinz = 11; unsigned int duration1, duration2, inches1, ...
Umbus's user avatar
  • 143
0 votes
2 answers
1k views

Read serial data from XV11 sensor

I am trying to read data from an XV-11 sensor using the description of the format found here https://xv11hacking.wikispaces.com/LIDAR+Sensor. This is the code I am currently using to communicate with ...
Markovian8261's user avatar
0 votes
1 answer
131 views

Wire over 1ft does not work with sensors SRF02

Im using an SRf02 ultrasonic sensor, and I need to make the wires long to elevate the sensor. They turn on and blink and are able to transmit a signal, yet they are not able to receive a signal. What ...
Umbus's user avatar
  • 143
1 vote
1 answer
265 views

minIMU 9 and Arduino reading Gyro angle

I'm using minIMU-9 https://www.pololu.com/product/1268 and I want to read pitch, roll and yaw angles. I applied this library https://github.com/pololu/minimu-9-ahrs-arduino but there is a slope when ...
acs's user avatar
  • 235
2 votes
2 answers
2k views

Is a HC-SR04 fast enough to make decisions on moving robot (4 Johnson motors 300 rpm)?

I am working on a project in which I have made a robot powered by 4 Johnson DC motors (300 rpm) and controlled by Arduino UNO R3. Now in my project I'd used ultrasonic sensor (HC-SR04) for detecting ...
Nishant Desai's user avatar
2 votes
4 answers
1k views

Low power + Logging motion detection

Scenario: I would like to monitor my closet's door as I highly suspect a family member is opening and using my items without permission. To respect privacy and also because my closet is nowhere near a ...
lone's user avatar
  • 21
0 votes
1 answer
50 views

Erroneous sensor reading while connecting extra load

I'm making a speedometer using arduino. I've made use of the interrupt pins to achieve the same. My problem is with the power source. I'm using a 12 V battery supply to power the arduino and I'm also ...
vpp's user avatar
  • 101
0 votes
1 answer
1k views

Measuring acceleration in g's

I am using adxl335 accelerometer with Arduino uno r3 to measure acceleration due to gravity along x axis. I am using 50 ms delay and printing to serial. I have two questions, which are; Can I ...
user avatar
2 votes
0 answers
223 views

Too many Bytes Using Ultrasonic Sensors

I need to send one transmission and record multiple distances with 4 receivers, but everytime I use more than 2 receivers, the serial data does not print. What can I do? P.S. I'm using 5 SRF-02 ...
Umbus's user avatar
  • 143
0 votes
1 answer
2k 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
Jacob.S.Lee's user avatar
0 votes
1 answer
37 views

Using 2 PING Senors at Once

I am trying to get values for two ping sensors, but am not getting any returns, can someone help me edit my code? Code void setup() { Serial.begin(9600); pingRange(2); pingRange(3); } void ...
Umbus's user avatar
  • 143
2 votes
0 answers
105 views

SRF-02 UART, transmitting from one address to another

So I just starting playing around with UART and SoftwareSerial while playing with these SRF-02 Sensors - http://www.robot-electronics.co.uk/htm/srf02techSer.htm I need help getting one to read to the ...
Umbus's user avatar
  • 143
0 votes
2 answers
1k views

Arduino : distance measurement between fixed points

I am creating a moving robot which needs to know its exact position on the map(known before, start point also known). My ideas were : GPS : this is not accurate enough for me, does not work indoors ...
Stepik's user avatar
  • 101
1 vote
1 answer
573 views

How can i connect the Mics-5132 to Arduino Uno (Carbon Monoxide Sensor)

hi. i don't know how can i connect Mics-5132 CO Sensor to my arduino. plz help
user14875's user avatar
0 votes
2 answers
784 views

Arduino Mega failure after first use of Mega Shield power connector

I have an XDRduino Mega clone with ATmega2560 and ATmega16U2 USB support chip. I also have a Sensor Shield (same vendor), which provides screw terminals to Vin and Ground. I connected the board with ...
HiTechHiTouch's user avatar
0 votes
1 answer
1k views

Algorithm to detect motion using ultrasonic sensor

I have a PIR sensor which sometimes give false readings and I have added a ultrasonic sensor to compensate for that. I think my algorithm can work, however currently it is very prone to give false ...
Linus's user avatar
  • 105
6 votes
2 answers
755 views

Why is my TMP35 giving me weird values?

A TMP35/36/37 is giving very high voltage readings, which results in high temperature readings. The serial monitor looks like this: As you can see, the sensor value is in the 900s, voltage is almost ...
MICROexchange6's user avatar
5 votes
6 answers
10k views

Using / calibrating pH sensor module

I've bought this sensor module board to link to an Arduino nano: http://www.ebay.com/itm/For-Arduino-Liquid-PH-Value-Detection-detect-Sensor-Module-Monitoring-Controller/321764233326 I assumed the ...
Jasper's user avatar
  • 115
1 vote
1 answer
356 views

Arduino number detection [closed]

I am planning for a project but i am stuck with a task and hope you could help me. My work is to note down a number which is actually a set of readings displayed on a meter and store it on a arduino. ...
SRk's user avatar
  • 11
1 vote
4 answers
772 views

Create a device to detect object state

Here is what I want to do or get it done (since I am not a embedded guy)... create a prototype with Arduino to detect open window/door of my room using camera(image processing/object state detection)?...
rushi121's user avatar
2 votes
0 answers
115 views

Teensy and MS5803 sensor

I'm trying to use the MS5803 pressure sensor with a Teensy 3.2. Compiling the Sparkfun, or other, libraries, however, results in no output. Can you provide guidance on how to modify the libraries to ...
Andrew Milich's user avatar
0 votes
3 answers
813 views

TMP36 probe reading 0 on analog

I've designed this system which is supposed to turn on the LEDs when the temperature of a particular probe exceeds 32 degrees. From what I can tell, this should be functional but the analog sensor is ...
Mikey G's user avatar
5 votes
3 answers
7k views

Humidity values returned by DHT22 sensors failing after some time

I've built a weather station using Arduino that measures temperature/humidity and pressure using an Adafruit 8266 HUZZAH. Temperature and Humidity are measured using a DHT22 sensor a ordered from ...
Stanley's user avatar
  • 151
0 votes
1 answer
290 views

Capacitive sensor MPR121 on Arduino Uno—how many will work?

I need to attach several capacitive sensors MPR121 with each of them using all of its 12 electrodes to an Arduino Uno. Could you please tell me, how many will work with the voltage and current ...
fooness's user avatar
1 vote
2 answers
1k views

How do I know which is ground and power in Piezo?

I have a piezoelectric sensor. Both pins are the same length. I have one like this: Piezo picture. On the Piezo it's written muRata and 01P. How do I know which do I send to the digital pins and which ...
Pichi Wuana's user avatar
0 votes
1 answer
341 views

Help with arduino car project

So in computer engineering I've got to make a arduino based car, I've added a whole bunch of features such as IR tracking, obstacle avoidance(proximity sensor), optical tracking(follow a black line), ...
Dark Pheonix's user avatar
0 votes
1 answer
65 views

Ping sensor with three or four pins?

I bought a Ping Ultrasonic Range Finder. It has four pins that you connect to the Arduino. I see in Internet that they have three pins. What does represent each pin and where to connect it to? I have ...
Pichi Wuana's user avatar
-2 votes
5 answers
4k 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 &...
ferraro's user avatar
  • 139
1 vote
2 answers
357 views

What type of sensor could I use to determine the mass of a small object (under 1 kg)?

I'm building a robot that needs to pick up a piece of material and then determine its mass. My robot will retrieve the material using a scoop at the ended of a mechanized arm. Once the material is in ...
user avatar
2 votes
2 answers
3k views

Servos and ultrasonic at the same time

So recently I started making a sonar out of ultrasonic HC-SR04 sensor and servo motor. The idea was to slowly rotate servo 180 degrees while measuring distance. Soon after I noticed that regular ...
boofati's user avatar
  • 25

1
18 19
20
21 22
25