Leçon 1, Chapitre 1
En cours

Robot intelligent – Logique programmation

Yann KIDSHAKER 18 mars 2025

Introduction

You’ve been well-informed agents that your mission is to build a Smartphone controlled robot. It will be controlled using the evive Gamepad app. Once the robot powers up, all he must do is carefully understand the instructions that you give and then move according to them; and he should stay where he is unless you give any instruction.

On the Gamepad in the evive App, there are four buttons:

  1. Up
  2. Down
  3. Left
  4. Right

Instructions

When we press Up, the robot should move forward.smartphone controlled robot_forward

When we press Down, he should move in the backward direction.smartphone controlled robot_backward

When we press Right, he should turn towards his right.smartphone controlled robot_right

And, we when Left, he should turn towards his left.smartphone controlled robot_left

In case nothing is pressed, he should budge even an inch.smartphone controlled robot_stop

Flow Chart

Below is the complete flowchart:

Smartphone Robot Flowchart