Connecting the Ultrasonic Ranging Module HC - SR04
Here I want to describe how is the Ultrasonic Ranging Module connected. It has 4 terminals
1. VCC (power 5V +)
2. GND (ground -)
3. TRIG (trigger)
4. ECHO (echo)
TRIG is an output from Arduino. We have connected it to the output "d1".
ECHO is an input to Arduino.We have connected it to the input d0.
For connections we have used a modified wire bit (see in the picture). However, it can be done using proto-modules too.
We have connected the VCC and GND terminals through modified wire bits. They can also be connected to the proto bits if you use those modules.
Please let me know if you have any question regarding connection of this component.
Assemble the device
Connection of littleBits modules can be done according to the sketch. It is straightforward.
You can feel free to design the packaging the way you like. We decided to mount bat wings to the buzzer module and it looks cool.
The bits are mounted on a standard mounting board. Two hair bands are mounted through the corner holes of the mounting board using zip ties. It allows to wear the device on your hand. Please see the picture attached.