You'll have to decide on what combination of distance sensor + microcontroller you want to use. I've tried them all, and found the following configurations to work well.
- Trinket + Parallax Ping)))
- Trinket + Maxbotix Proximity Sensor
- Trinket Pro + HC-SR04
- Trinket Pro + Seeed Studio Ultrasonic Ranger
Of all the sensors that I tried, the Parallax Ping))) was the easiest to use with Trinket. All you need is GND, VCC, and 1-pin for measurement.
Snap the sonar into the mount.
The servos wires end in female connectors, which you will need to convert to male.
You can do this two ways, replace them with male ones.
Or pull out the female connectors...
Extract a few pins from standard headers.
Insert the pin into the female receptacle.
And solder in-place.
Sweet.
Here is the circuit diagram to get all the wires in the right place. With the servos, remember that ground is often brown / signal is orange.
Page last edited March 08, 2024
Text editor powered by tinymce.