Table of Contents

Interfacing Motor with evive

Interfacing Motor with evive
Example Description
AI Emotion Detection is a computer vision project that uses Artificial Intelligence (AI) to identify and recognize human emotions from facial expressions captured through a camera. The system analyzes facial features and predicts emotions such as Happy, Sad, Angry, Surprised, Neutral, and Fearful.

Introduction

Face detection is a popular application of Artificial Intelligence (AI) and Computer Vision that enables computers to identify and locate human faces in images and videos. In this project, TOBI in PictoBlox uses the webcam to detect faces in real time and count the number of people visible in front of the camera. The detected face count is displayed instantly, making the system interactive and easy to use.

This project helps learners understand how AI can process visual information and recognize human faces automatically. Face counting technology is widely used in attendance systems, security monitoring, crowd analysis, and smart surveillance applications. 

Setting Up the Stage / Sprite

  1. Open PictoBlox and create a new project.
    pictoblox getting  started screen
  2. Select a suitable backdrop for the stage.
    select suitable backdrop
  3. Add the Face Detection Extension.
    face detection extension
  4. Add the TOBI Face Detection extension.
  5. Turn on the webcam.
  6. Position the camera to capture faces clearly.
  7. Save the project before proceeding to the next step.

Step-by-Step Block Coding Guide

  1. Drag the When Green Flag Clicked block from the Events category.
    Block Image_Green Flag
  2. Add the Turn On Video block to start the webcam.

  3. Create a variable named Face Count.
    new variable edition
  4. Add a Forever block to continuously detect faces.
    forever block
  5. Inside the Forever loop, use the Detect Faces block from TOBI.
    face detect in forever loop
  6. Add the block that returns the Number of Faces Detected.
    no of face detected
  7. Set the Face Count variable to the detected face count.
    set-the-face-count-varible-to-detect-face-count
  8. Test the project by showing one or more faces in front of the camera.
    faces infront of the camera
  9. Observe how the face count updates in real time.
    get faces block

Output

interfacing motor with evive final

Conclusion

We successfully learned how to interface a motor with Evive and control its movement using simple programming. This activity helped us understand the basics of motor operation, speed and direction control, and the role of motor drivers in embedded systems. By completing this project, students gain practical experience in robotics and automation concepts, building a strong foundation for creating more advanced projects involving motors and intelligent systems.