Cyber:bot ultrasound sensor 4-PIN
I gave a Cyber:bot to my kid as a present and he is following the tutorials.
The recommended utrasonic sensor for the cyber:bot in the tutorials comes with 3 pins, sold by Parallax.
I have about 10 similar sensors, but they are the 4 pin version (generic, for Arduino, the ones sold on Amazon).
I know the ones from Parallax gives you the distance on one the same pin used for the trigger, and it is already calculated and free of noise, but I was wondering if I can use the 4-pin generic ones instead.
The ping function from the cyber:bot library gets only one pin as parameter for input and output,, so I probably cannot use that.
What options do I have here?
Maybe using the ping function and connect the pin to the "trigg" pin on the sensor, and read the echo via a different pin on the cyber:bot?
Using these generic sensors will open a lot of possibilities, since I have a few spare ones.
Thanks a lot.