I have found only 4 core wire on amazon . Can I leave one wire floating?
Sure can.
Or use two cores for ground.
Or splice the cable end to a second sensor.
Leo..
What is the difference between that 4 core cable to regular 4 core cable? is that the black thing surrounding the cable? what is the purpose of that?
The four cores are inside a black pvc sleeve for extra protection.
Leo..
That black pvc is protecting from nature disaster or protecting from electric/magnetic/radio interfaces?
This is unshielded cable, so only environmental protection.
Leo..
So you think I should have no problem running 50 meter unshielded cable between Arduino and sensor (+5V,GND,Signal) ? the pvc type cable is only for environmental protection
Only you can find that out.
Leo..
You also suggest a 100nF between D2 and GND. What is the role of that capacitor to ground? is acting as type of filter?
try to use UTP/STP Cat6e Cable for communication. works well with my Ultrasonic sensor
this type? seems cheap for 1000ft (which is good)
Yes.
The cap shorts interference to ground, so you can (in most cases) use cheaper cable.
Leo..
Yes this type cable, or you can choose according to your requirement
so I just need to cut is ends and solder 3 out of its 4 cores? 1 core I leave floating ?
Cat6 cable have 4 pair cable, u can use according to your need, simply yes you can use according to your requirement & leave the rest
"Quiescent" current draw. Active current isn't specified. The output signal voltage is maximum 3.3V, which drastically reduces the input logic threshold margin, when connected to a 5V logic input. That makes it susceptible to noise. With such a long cable run, that should at least have a logic level converter.
what is logic level converter? how can I implement that?
The Cat-6 cable you linked to is CopperCladAluminium, and can't be soldered.
The sensors OP is using have a 1k resistor in series with the output.
You could have internal pull up on the pin, to give them that extra bit of lift.
So in setup().
pinMode(sensorPin, INPUT_PULLUP);
Leo..
The sensor pin is going HIGH when movement is detect so if using resistor at the input pin is should be pull-down resistor isn't it?
Wiring as this?
@hk_jh you are misled, the 1k resistor is already embedded in the module, it's in series with the output. Please re-read post #38.
pull-down resistor isn't it? Wiring as this?
You show a pull up.