Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [sensors]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
389 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 ...
8
votes
4answers
3k views

How to move from arduino to physical prototype

I've been reading a bit about moving from Arduino to PCB and it seems a bit daunting. For now, all I really want to do is take something I've built, and make a few changes so that I can actually ...
5
votes
2answers
15k views

What is the difference between Accelerometer, Gyro, and Magnetometer Sensor?

I'm starting in the arduino world and I'm building an autonomous smart vehicle. So, after some weeks building and adjusting the vehicle, I got to a point in this project that I want to log it's ...
13
votes
4answers
19k views

How to get weight data from glass electronic bathroom scale sensors?

I am doing a small project with a bathroom scale but I run into some problems. I am using an Arduino Uno V3, HX711 module amp and a scale. Scale: HX711 amplifier: I disassembled the scale to get ...
2
votes
2answers
4k views

Detect movement on moving robot? PIR Sensor

I am working on a human following robot project and I am trying to achieve this with 1 Ultrasonic sensor that makes sure the robot won't crash into something and 3 PIR sensors that will detect human ...
5
votes
2answers
11k views

Multiple I2C sensors with the same address

I am trying to find the simplest way to connect multiple (preferably around 10-20) IMU sensors to one controller. There are two constraints: sampling at 60Hz and reasonably simple wiring as I want to ...
9
votes
8answers
6k views

Best way to determine if a 5 gallon water jug is getting empty

I have an espresso machine that gets its water from one of those 5 gallon blue water bottles (I would plumb it, but our water here is WAAAAY too hard). If I ever accidentally let the bottle run out ...
9
votes
3answers
3k views

How to measure total energy usage of an arduino board

I have a project that I'm currently working on. We have built a green wall, wich consists of plants on a wall Now, we have a pump situated at the bottom that waters all the plants. There is an ...
1
vote
0answers
168 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)...
1
vote
1answer
588 views

How to add Ultrasonic Sensor to the board?

I am making an RC car , have combined the Arduino UNO R3 with the AR 293d, and pluged in the HC-SR04 sensor to the SRO4 hole at the left top corner in the below graph. However, besides one sensor I ...
0
votes
2answers
2k views

It is possible to control brightness of an LED strip (connected using a relay and having a seperate power supply ) using output from an arduino?

The circuit contains a relay interfacing with 12v power supply and LED strip. Can the brightness for this strip of LEDs be controlled using the analogWrite command? This works perfectly for a single ...
13
votes
10answers
16k views

Sensor for underground water tank level

In a similar way to the question "best way to determine if a 5 gallon water jug is getting empty", I'm looking for a way to measure water in a container. This is so it can be connected to an Arduino ...
8
votes
4answers
33k views

What is the work of pulseIn?

I have code for an ultrasonic sensor which I found from a site. Here is the code: #define trigPin 12 #define echoPin 13 void setup() { Serial.begin (9600); pinMode(trigPin, OUTPUT); pinMode(...
8
votes
3answers
12k views

Grove sensors without a Grove shield

There exists a large variety of sensors in the Grove System. Usually these are accessed via a special shield (Grove base shield). Can I access these sensor directly without a shield. In particular I ...
5
votes
6answers
8k 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 ...
4
votes
6answers
13k views

Detect and stream if a chair is occupied

I am planning to build a device able to detect and tell a server via Wi-Fi if a chair is occupied. How would you do it? And how cheap do you think the device could be?
8
votes
2answers
23k views

The use of 4.7kOhm resistor with DS18B20 temperature sensor [closed]

I was using a temperature sensor DS18B20 with Arduino. I've read that you should connect the digital input line and the 5V line with a 4.7kOhm resistor - like in the picture. Can someone explain ...
5
votes
8answers
9k views

Two sensors on one input

I got this question from my teacher the other day and I can't figure it out: If you have two sensors from two different outputs but want them to go into one input, what do you need, and how can you ...
5
votes
1answer
13k views

How to connect 5V sensors to 3.3V digital input (Due)?

I'm completely new with Arduino and microcontrollers in general. I have several 5V sensors, and need 3.3V because that's the max for the Due. Is it possible to use a resistor to connect it to the ...
4
votes
3answers
1k views

Moving motion sensor?

Long story short, I'm trying to build some form of device that you can wear and it will detect when something moves behind you. I wanted to use PIR sensors for the motion detection, but I have no idea ...
4
votes
2answers
7k views

Why is the constrain function used after the map function?

I am reading some sample code and they use this method of mapping data from IR sensors: sensor1 = analogRead(0); adj_1 = map(sensor1, s1_min, s1_max, 0, 255); adj_1 = constrain(adj_1, 0, 255); ...
2
votes
1answer
2k views

Using the Waspmote Sensor Board

Spanish company Libelium makes this pretty impressive sensor board: http://www.libelium.com/products/waspmote/sensors/ for their Waspmote series of boards. These are not meant for Arduino ...
2
votes
1answer
408 views

Understanding Digital IMU 6DOF sketch

I am looking at the following code and getting confused by a few elements in it: 1) Why is there a writeto function being performed to the memory locations x053,0x31,x09 for accelerometer and 0x68,...
0
votes
3answers
14k views

Simultaneously reading data from multiple serial ports

I have three sensors latched on to three different Arduino devices. The respective Arduino devices are connected on to an Arduino Mega on Serial1, Serial2 and Serial3. The data from each device ...
6
votes
2answers
518 views

Why is that any sensor signal need to be hooked up to the interrupt pins on Andruino boards?

I have come across some Andruino Sensors like Motion, Light and all recommend to be connected to pin 2 or 3 on Andruino Uno board which are interrupt pins. This is especially true if you are looking ...
5
votes
3answers
3k views

Arduino Due and BNO055 address in i2c mode

I have a project where I need to have several IMUs, the BNO055 shuttle board (I explained my project here), I manage to get the Euler angles from one BNO055 sensor, which have the address 0x29, ...
3
votes
3answers
401 views

How does the Space Replay record audio?

The Space Replay A hovering object that explores and manipulates transitional public spaces with particular acoustic properties. By constantly recording and replaying these ambient sounds, ...
3
votes
1answer
5k views

How do I listen for a sound that matches a pre-recorded sound?

I'm working on a project that uses an Arduino Uno to listen for a bell ring and then uploads to a web server the exact time the bell was rung using a WiFi Shield. I want to know how I can listen for ...
3
votes
2answers
3k views

Connect Arduino to MySQL database online problem

I'm trying to connect Arduino with MySQL database on my online server. I manage my project to work on WampServer locally on localhost, but when I try to move everything online I have problem... on ...
2
votes
3answers
599 views

Problems coding a 12 pin 7 segment display and grove temperature sensor with Arduino Uno

I am trying to code my 12 pin seven segment display to display the temperature from my grove temperature sensor. I am new to this and I have been struggling, so if anyone could help that would be much ...
2
votes
1answer
761 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 ...
2
votes
1answer
732 views

“tamper” circuit of a reed switch: can I connect the two wires to an INPUT and an OUTPUT pin?

While working for the automation side of my new house, I'm currently in the process of installing several reed switches on top of external doors and windows. Even if this could be used as a "...
2
votes
1answer
535 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 ...
2
votes
1answer
242 views

Does a moisture sensor need warm-up time?

I am trying to use a moisture sensor to identify the moisture value of my plants. (As every one does.) The sensor was connected to VCC all the time and my battery goes empty after a short time. So I ...
1
vote
0answers
1k views

Grove temperature sensor with Arduino Yun

I try to test Grove - Infrared Temperature Sensor on Arduino Yun with the sample code but it does not work. In the console it shows that the object temperature is out of range all the time. However, ...
1
vote
2answers
2k views

code for automatic door

I want it running as a normal automatic door so both sensors work as a separate activate. The only problem I've seen is that the servo remains active waiting for another high read and you can hear the ...
1
vote
0answers
128 views

What are the specific pins to connect the following : DHT 11, ULTRASONIC SENSOR, ESP8266 and arduino uno? [closed]

I researched a lot on how to connect this devices to each other to get the data from ultrasonic sensor and DHT11. But it wasn't clear on how I will connect the devices on their pins. I found one ...
1
vote
2answers
125 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
1answer
11k views

Arduino Uno Sensor DHT11 Failed to read from DHT sensor

I get this error every time. I used the DHT tester file from this library. Which gives me an error. And then I realized that in my code Arduino recognizes only the readTemperature function, not ...
1
vote
1answer
7k 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 ...
1
vote
4answers
2k views

Which sensor to detect light?

I have a kit of 37 sensors as described here: http://www.instructables.com/id/Arduino-37-in-1-Sensors-Kit-Explained/?ALLSTEPS https://tkkrlab.nl/wiki/Arduino_37_sensors I want to create a simple ...
1
vote
1answer
4k views

How to connect a Pressure Sensor-MPX10DP to an Arduino?

I'm very new to Arduino, I'm trying to connect an air pressure Sensor without success. I followed this tutorial: Arduino Air Pressure Measurement The values I'm getting are very weird and the ...
1
vote
1answer
969 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 ...
1
vote
1answer
208 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 ...
0
votes
2answers
1k views

DHT11 and Pulse sensor incompatibility?

I am working on an IoT project to send data acquired from DHT11 and PulseSensor to a website. I can send the data properly when I use each of sensors alone but when I write a wrapper to use both ...
0
votes
0answers
306 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 ...
0
votes
2answers
970 views

Motion Tracking Using Arduino?

I'm trying to make a human following robot.Tried using ultrasonic sensors to follow a specific person by Having ultrasonic sensor with the person to send echo to the robot,But it didn't workout. Any ...
0
votes
2answers
2k views

What sensor would work for soccer ball detection efficiently using Arduino?

I want to make a soccer goal counter using Arduino and some sensors. I built using an ultrasonic sensor, but it does not detect if the ball is moving too fast. Are there any other sensors I can use to ...
0
votes
1answer
177 views

3 AC current sensors using one Arduino Uno board measuring at 200Hz

I'm new to electronics and need some help please. I'm planning to measure current of a 3-phase output using one sensor for each phase (thus 3 sensors would be required). The frequency of data ...
0
votes
2answers
569 views

Setting reading frequency SCT013 current sensor code using Arduino Uno

I found this code below for the Arduino platform to obtain current measurements from the SCT013 sensor, and I am wondering how can I define the 'delay' or 'frequency' of my readings? I'd be looking ...