Hi guys,
Anybody know how to hook up this sensor to an Arduino
I Can’t seem to find any easy explanations.
/Johan
Hi guys,
Anybody know how to hook up this sensor to an Arduino
I Can’t seem to find any easy explanations.
/Johan
That particular module has several pins of unknown function, but probably only three are important.
If you look around you can find similar modules, which likely work on the same principle, but have only 3 pins and function like PIR detectors (power, signal and ground).
See this forum post.
Here is how they work.
Thanks jremington,
I managed to find this link with sketch of the pin layout. Not sure if it is accurate.
It says
Pin
1: Vout
2: Vd
3: EN
4: GND
5: Vd
I tried to hook up GND, 2:Vd to 5v and Vout to a digtial pin on the arduino. Could only read a low signal.
Have i connected it wrong?
/Johan
It is a Doppler radar sensor. The target must be moving toward or away from the sensor to activate it. Doesn't say what speed is required to activate it. The EN ( I presume the "enable") pin doesn't say whether it is active HIGH or LOW.
Check to see whether the two "Vd" pins are connected together (show continuity on your DMM). If not, perhaps you must do so.
However, the pins Vd, GND and Vout are colored green in the diagram on your latest link, which suggests that they are the only required connections.
Also try connecting "EN" to either ground or 5V and check for operation. Let us know what you find!
Finally, the output goes HIGH or LOW for a period of time, which is evidently adjustable by changing resistors on the board. Make sure you have a loop that continuously reports the status of the Vout pin, or just use a DMM to check.
Edit: if you can't get that module to work, this one has three wires with a connector, and should be straightforward to use.
SurferTim:
It is a Doppler radar sensor. The target must be moving toward or away from the sensor to activate it. Doesn't say what speed is required to activate it. The EN ( I presume the "enable") pin doesn't say whether it is active HIGH or LOW.
Hi SurferTim thanks for the response, I have moved around a few meters. Sill nothing. Don’t have allot more information than in the links.
jremington:
Check to see whether the two "Vd" pins are connected together (show continuity on your DMM). If not, perhaps you must do so.However, the pins Vd, GND and Vout are colored green in the diagram on your latest link, which suggests that they are the only required connections.
Also try connecting "EN" to either ground or 5V and check for operation. Let us know what you find!
Finally, the output goes HIGH or LOW for a period of time, which is evidently adjustable by changing resistors on the board. Make sure you have a loop that continuously reports the status of the Vout pin, or just use a DMM to check.
Edit: if you can't get that module to work, this one has three wires with a connector, and should be straightforward to use.
Thanks for getting back to me.
Not sure about your first statement "show continuity" I tried to hookup both pin 2 and 5 to 5v this time. When I hook up pin 5. It seems like the Arduino crashes or something. Cannot attach serial monitor "Board at COM4 is not available"
I used some simple code
int inPin = 7;
int val = 0;
void setup()
{
Serial.begin(9600);
pinMode(inPin, INPUT);
}
void loop()
{
val = digitalRead(inPin);
Serial.println(val);
delay(100);
}
Always outputs 1 when pin 5 not connected.
I also tried EN on 5v and GND. Same result.
I am just looking for a simple alternative to a PIR with the bonus of no line of sight Maybe I should order the sensor you linked. I like the easy way
/Johan
Pin 1 is output, Pins 2 and 5 are 5v, pin 3 is enable, connect t0 5v thru resistor. Pin 4 is ground. When turned on you get a motion trigger. It stays in motion mode until it senses no motion for about 90 seconds. unit is very sensitive. hold very very still and watch output. I have one hooked directly to digital input on Arduino everything works fine. Also if you only want to detect motion in a specific area, aim rf with metal reflectors.
Slothworks:
Pin 1 is output, Pins 2 and 5 are 5v, pin 3 is enable, connect t0 5v thru resistor. Pin 4 is ground. When turned on you get a motion trigger. It stays in motion mode until it senses no motion for about 90 seconds. unit is very sensitive. hold very very still and watch output. I have one hooked directly to digital input on Arduino everything works fine. Also if you only want to detect motion in a specific area, aim rf with metal reflectors.
Thanks for this what do you mean by "connect t0 5v thru resistor" what is t0? What resistor in which circuit are you referring to?
Slothworks most likely meant "connect enable pin 3 to 5V via a resistor", which would be a pullup resistor.
Try 10K Ohms.
Slothworks:
Pin 1 is output, Pins 2 and 5 are 5v, pin 3 is enable, connect t0 5v thru resistor. Pin 4 is ground. When turned on you get a motion trigger. It stays in motion mode until it senses no motion for about 90 seconds. unit is very sensitive. hold very very still and watch output. I have one hooked directly to digital input on Arduino everything works fine. Also if you only want to detect motion in a specific area, aim rf with metal reflectors.
Thank you for answer !
What is a nominal of resistor for pin 3 ?
And what is area of this sensor - 180 or 360 ? - He "see" motion only forward or full view ?