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

learn more… | top users | synonyms

4
votes
4answers
60 views

Is there an advantage to set pinmodes via bitmask and register?

I'm working with the capacitive sensor library currently and the author does not use digitalWrite(), but instead sets the output of a pin via functions changing the bitmasks of certain registers: ...
0
votes
1answer
26 views

Sensor connected to I2C wrong measurement [on hold]

I have 2 slaves and 1 master. Pins SDA, SCL, Vcc (5v) and ground of each are all connected together. I only use the supply voltage of the microcontroller as the all sensors supply. The problem is the ...
4
votes
1answer
46 views

Understanding Soil Moisture Sensor Values

I have soil Moisture sensor inserted into the pot soil, wet in state. (not too damp) and soil moisture sensor is connected to Arduino Mega 2560. This is the soil moisture sensor I am using: Soil ...
0
votes
1answer
103 views

Multiple if statements - stuck

I have a robot that uses two motors to skid steer. The robot gets input from three ultrasonic sensors (left, middle, and right) and a passive infrared sensor. If the robot detects a person in front of ...
0
votes
0answers
41 views

How can I improve the accuracy of color sensor?

I'm working on a project that uses TCS34725 adafruit color sensor. The measured object is touched by project and the color sensor from hole is measuring its color. I understand that these sensors can'...
0
votes
1answer
21 views

How to increase sensitivity of Capacitive Touch Switch?

I am working with Capacitive Touch Sense technology.In that I am using TTP224 Touch detector IC. I am getting good sensitivity when I am using Touch pad without putting any non electric material over ...
1
vote
1answer
22 views

Pattern detection in sensor data

I'm using a heart rate sensor along with an Arduino for a project of mine. I have to determine whether the heartbeat is following a particular pattern (eg: when when heartbeat regularizes a lot after ...
3
votes
0answers
28 views

Replace Wire library with TinyWireM

I want to integrate Pololu's vl53l0x Time of Flight distance sensor into a project of mine. They created a library to interface with the vl53l0x over I2C, which works great on my Uno. The only problem ...
0
votes
1answer
22 views

Arduino Mega prototype analog timer interrupts: newbie question

I am currently using an Arduino Mega with a fast vibration sensor to trigger the components operation (force sensor, temperature sensor) and also toggle sleep mode. I am very new at this and I have ...
0
votes
1answer
19 views

Set pins to LOW over time

I've written a simple sketch that adds threshold to an PIR sensor. If the PIR sensor sends 3 HIGH ex. HIGH...LOW...HIGH...LOW...HIGH (The LOW == no movement) it will trigger and alarm. I want to ...
1
vote
1answer
47 views

Peak counting in serial Arduino

I want to count peak of photocell data with serial communication in Arduino. Here is the question. My problem is when I count one of the peaks it continues the counting and doesn't stop counting. My ...
0
votes
0answers
42 views

Serial Monitor stops printing data

I have an IMU sensor (MPU 6050) connected with arduino UNO. Pin maps are as follows: MPU6050 --> Arduino Vcc --> Vcc Gnd --> Gnd SCL --> A5 SDA --> A4 (Not using any pull up resistors) I am using ...
0
votes
2answers
34 views

How to calculate the time it takes before the water valve stops dispensing water in an Automatic Water level controller?

I am making a project about an automated water level controller using ultrasonic, potentiometer and Arduino board. I need a mathematical calculation on how it works. So here's a simple scenario: I ...
0
votes
1answer
32 views

How to measure ultrasonic sensor without pulsein method?

I am a front-end developer so I don't really know Arduino. Anyway, my teacher gave me a project. In short, I have to measure distance with HC-SR04. But the problem is that the teacher wants me to ...
0
votes
0answers
24 views

Measure water flow using arduino yun but has no pulse reading

I have water flow sensor (paddle wheel type) with arduino yun board. I am trying to get the pulse as the paddle wheel rotates. The water flow sensos's name is 515 Rotor-X Paddlewheel Flow Sensors. ...
0
votes
1answer
41 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 ...
-1
votes
0answers
31 views

Is it possible to make a tracking program in Arduino Uno using RFID?

So uhm, I'm an 9th grade student. I wanted to know if it is possible for arduino to track objects that are tagged by an RFID and display it in the tft touch screen. Considering arduino' specs.
0
votes
1answer
39 views

Are these components connected correctly?

I intend to use two ultrasonic sensors as input and a vibration motor as its output, is this connected correctly? As part of my project, I intend to use an ultrasonic sensor to feed in distance data ...
1
vote
0answers
27 views

How to create a heart rate detection system that uses a chest strap?

I want to create a system that uses a chest strap from available Bluetooth-based heart rate monitoring systems. The straps seem very convenient compared to available Arduino pulse detection systems ...
0
votes
1answer
70 views

ATtiny85 AC Phase Control for dimming a light bulb

I'm trying to dim a light bulb via an ATtiny85, which accepts commands sent over I2C. My problem is that the bulb is barely dimming and is flickering quite a bit. My circuit can be seen here: The ...
0
votes
1answer
92 views

ArduCam ESP8266 and (Not-Mini) OV2640 Camera Module interface?

I bought ArduCam ESP8266 and a OV2640 Module. However it is not the mini-version. At the time it didn't seem like it was necessary. I might have made a big mistake here. The board has 8 female pins ...
0
votes
0answers
37 views

Real Time 3D environment mapping

Im tasked with exploring different ways of real time 3D environment mapping and the goal of the project is to be able to mount this device to a drone and have it be able to map at minumum 10 feet ...
0
votes
1answer
95 views

Sending data to an Android phone

I'm trying to read 4 sensors and multiplex them in one channel (audio jack or USB input) in an Android phone. I've tried FDM by modulating the channels then using the audio jack, but I didn't get any ...
2
votes
1answer
81 views

What is micro C in a circuit diagram?

This is probably a simple question but I am a beginner with these things. What does the micro C part of the circuit diagram mean? The diagram is from the datasheet of the tssp77038 IR receiver. Does ...
0
votes
0answers
73 views

Why is IF statement staying true even when argument inside is false?

Once the third IF statement in my program goes true it will remain true for several iterations, even when the temp has fallen below the set variable, which should make the statement false. But it ...
0
votes
1answer
51 views

2 if-else in one program

Hey guys i have made an automatic plant watering system. Its really basic. the code is:- char yo = 0; void setup() { pinMode(2, INPUT);//moisture sensor pinMode(3, OUTPUT);// pump Serial.begin(...
0
votes
1answer
44 views

Trouble using a TSSP77038 with an Arduino

I have a Vishay TSSP77038 IR receiver that I would like to read the output of. It is connected as shown in the picture - Vs to 5V, GND to GND and the output to a pin on the Arduino. My problem is ...
3
votes
0answers
39 views

2G/3G vs 4G/LTE Cell Connectivity for Sensor Prototype?

Would love any advice on Arduino cell connectivity. From what I understand: 2G (GSM/GPRS) is a dying technology. AT&T is shutting down its 2G network on Jan 1, 2017. 2G (CDMA) will have a longer ...
0
votes
1answer
38 views

Arduino leonardo. Encoder mouse movement

I want to connect my sensonrs to an arduino leonardo. The principal idea is use it like a scratch (like dj hero or beatmania??), if I move the scratsh up, the mouse will go up ( y Axis ), and if it ...
0
votes
1answer
33 views

2D Tracking of an object - which sensor?

I'm currently working on a project for which I require a sensor. I've made a quick and simplified drawing of what the result is supposed to do: Basically, I want one LED of a LED-Strip to light up ...
0
votes
1answer
23 views

ML8511 Sensor, unable to achieve meaningful results. Output voltages are atypical

Problem: ML8511 Sensor, unable to achieve meaningful results. A mapping to the voltage output yields values that are unrealistically high. Variance is greater than expected [by me], and sensitivity, ...
1
vote
1answer
66 views

Using MMA8451 accelerometer to count steps

I'm trying to use an Adafruit MMA8451 accelerometer to create a pedometer-type device that counts steps. I'd like to initiate a counter that says "if the x-axis readout is > some threshold, add 1 to ...
1
vote
1answer
40 views

Can I detect with software when a PIR sensor is physically connected to Arduino?

I'm creating a circuit using an Arduino Nano + ESP8266 to allow LED remote (via mobile app) activation and configuration (RGB colour, timeout, etc.). The circuit also has an optional PIR sensor to ...
1
vote
1answer
34 views

Arduino ultrasonic sensor to trigger LED when path is blocked

I'm working on a project which has falling objects non stop, I only want to detect when objects block the sensors set trigger area. Any suggestions would be great! #define echoPin 7 // Echo Pin #...
0
votes
1answer
30 views

Interfacing IMU and GPS with Ardunio

I am using an Arduino UNO board and trying to interface IMU sensor (GY-521) and GPS sensor (Ublox Neo-6M) at the same time. The connections of the IMU and GPS are as follows IMU to Arduino : Vcc --> ...
0
votes
2answers
92 views

Alternative distance-meter, HC-SR04 doesn't work very well

On door to my room there is HC-SR04 that triggers led-wave. The shorter the distance, the faster the led-wave (8 leds). The circuit works fine in synthetic tests – moving hand or flat object towards ...
-2
votes
1answer
42 views

How to turn on Solenoid based on Soil Moisture value?

I am powering solenoid with 24 volt as required however I am using TIP122 transistor that has base connected to Arduino Digital Pin 6 via a 1K Resistor. And the collector is connected to negative ...
1
vote
1answer
54 views

Motor Control Help

Here is my objective: If the value of EMGv is at or above 900, start moving the motors left. The motors should continue to move left for a maximum of one second, provided EMGv stays at or above 900. ...
1
vote
0answers
22 views

How to use Honeywell NBP Series Sensor with Arduino

I am trying to use HONEYWELL NBPDANN100PAUNV Pressure Sensor. I found a example here http://www.circuitstoday.com/interfacing-pressure-sensor-arduino As this example says as instrumentation ...
1
vote
2answers
66 views

What is an easy way to power a 3.3v BMP-180 barometer board from a 5v Arduino Nano?

Scenario: I have a functioning weather station (temp/humid, MQ-2 smoke sensor, anemometer), and want to add a barometer. The weather station is outside, linked to my inside display and RTC by the ...
0
votes
1answer
23 views

connecting lv maxsonar ez arduino

I am not 100% sure this question relevant here , but question is I have lv maxsonar ez which need 5v. I am powering my uno with 9v battery. And I have few other sensors also connected to 3.3v. But I ...
1
vote
0answers
31 views

DHT22 reading weird values

I just hooked up a DHT22 I had laying around in a parts drawer to test something and it is giving out some crazy wrong values, I am running the adafruit library's unified example and this is the ...
0
votes
1answer
38 views

SPI Overflow in 328 slave with i2c sensor

I am working on creating sensor poller that is going to be polling multiple sensors and then, on request, provides its data to the master. The master polls the slave (SPI) at 50hz and the slave is ...
0
votes
1answer
23 views

Arduino ov5642 camera yuv422 output

Currently, I'm implementing arduino camera ov5642. But especially, I can't understand the camera output at yuv422. that spec wrote as yuv420 output sequence YYYY.../YUYV... Actually, I don't ...
2
votes
0answers
61 views

Faster output of Serial.print() data coming from TSL1402R sensor [closed]

I am reading a TSL1402R with an Arduino Mega2560. The code is based on the sketch from the arduino playground here:http://playground.arduino.cc/Main/TSL1402R The application is a digital caliper for ...
1
vote
2answers
60 views

The easiest and most time efficent way to connect to the internet regardless of the cost

I am working on my graduation Project. I want to use the cayenne (mydevices) platform to control my Arduino. Mainly I want to be able to control a servo Motor through the Cayenne app and I want to use ...
1
vote
2answers
36 views

How can I deal with rapid fluctuation of Anemometer readings?

In my little weather station I collect temperature, humidity, MQ-2 smoke sensor, and wind speed readings for display on a 20x4 LCD display, every 500 ms. The Anemometer readings jump up and down by ...
3
votes
2answers
84 views

Record Ping time using ultrasonic sensors and calculate speed

I'm trying to find the speed of remote control toy car passing by two ultrasonic sensors. I need help on my code and suggestion on max speed car should go to record time. Opposite direction not ...
1
vote
1answer
43 views

how to measure level shock using vibration sensor and arduino

My project title is about crash detection, by using this kind of vibration sensor. When the sensor reads the shock (which is when I knock the sensor) more than 50, it assumes it's a crash and will ...
1
vote
2answers
32 views

Thermosensor Error - 'Wire' does not name type?

Here is the code I am using: #define D6T_ID 0x0A #define D6T_CMD 0x4C int ReadBuffer[35]; float ptat; float tdata[16]; #include <Wire.h> void setup() { Wire.begin(); Serial.begin(9600); ...