Comment on page
RUS-04 is a new module that integrates RGB LED and ultrasonic ranging. Only one GPIO is needed to operate the ultrasonic transceiver, and while the ultrasonic probe is measuring the distance, the left and right probes can emit 7 colorful lights.
Connecting to the NyBoard with wire as shown in the following picture:
Currently only supports the product Nybble, the software version 2.0, the mode can choose "Ultrasonic" or "RandomMind_Ultrasonic".
Use the latest OpenCat code to finish the setup. As shown below:
If you have already uploaded the latest OpenCat code to make Nybble walk, you only need to uncomment the
#define ULTRASONICat the beginning of OpenCat.ino then upload the code.
Ultrasonic module code realization function: According to the different distances monitored by the ultrasonic module in real-time, the probe inside the ultrasonic module lights up with lights of different colors, and Nybble will make different action responses at the same time.
The demo video is as follows: