Example Code For Automatic Quantitative Feeder

When the vision module recognizes a "sheep" card approaching, it automatically controls the servo to open the feeding trough's gate.

Hardware Preparation

Building Block Expansion Board*1 micro:bit *1 Boson:AI Vision Sense
360° Servo*1 Building Blocks

Software Preparation

Development tools: Makecode.

Wiring Diagram

Sample Code

Makecode Sample Program:

Result

Demo Videos:

Was this article helpful?

TOP