Robot Head – Sonar

LOFI_Robot_Sonar

Do you know what connects a submarine and a bat? They both use sound to move around the surroundings. This is a very interesting fact, especially that today we will build a SONAR – a device that detects objects in front of you, and in addition, we will create a visualization of the environment in LOFI Blocks!

Connecting electronic modules

  • Distance sensor → port Distance.
  • Servo → OUTPUT1.
  • Power supply → USB cable → computer.

The code