0% found this document useful (0 votes)
6 views11 pages

Ed Py

The document provides an overview of key AI concepts related to sequencing, LEDs, movement, and variables in programming robots. It emphasizes that robots follow instructions in a specific order, the use of LEDs for status communication, and how variables control robot movement. Additionally, it includes practical examples, important learning points, and practice questions for self-checking understanding.

Uploaded by

fwania669
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views11 pages

Ed Py

The document provides an overview of key AI concepts related to sequencing, LEDs, movement, and variables in programming robots. It emphasizes that robots follow instructions in a specific order, the use of LEDs for status communication, and how variables control robot movement. Additionally, it includes practical examples, important learning points, and practice questions for self-checking understanding.

Uploaded by

fwania669
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

EdPy & Edison Robot – Student Revision Notes

Topic: AI Concepts, LEDs, Movement & Variables

💡 Key Concept:

👉 Robots and AI helpers follow instructions exactly in order (sequence).

🧠 What is Sequencing?

 Sequencing means giving instructions step by step in the correct order.

 If the order changes → the output also changes.

🧠 Example Code (Sequence)

import Ed
[Link] = Ed.V2

[Link]([Link])
[Link](1000, Ed.TIME_MILLISECONDS)

[Link]([Link])
[Link](1000, Ed.TIME_MILLISECONDS)

[Link]()

⚠️ Important Learning

 Robots do not think → they only follow instructions.

 Changing order = different result

 Beep first → then lights

 Lights first → then beep

🌍 Real-Life Connection (AI)

 AI systems (like robots, machines) follow step-by-step instructions

 Example: Safety procedures, factory machines


LEDs & Signals

💡 Key Concept:

👉 Robots use lights (LEDs) to show status (like AI systems).

🔦 LED Commands

Command Function

[Link]([Link]) Turns ON left LED

[Link]([Link]) Turns OFF left LED

[Link]([Link]) Turns ON right LED

[Link](time, unit) Adds delay

🧠 Example: LED Blink Code

import Ed
[Link] = Ed.V2

[Link]([Link])
[Link](500, Ed.TIME_MILLISECONDS)
[Link]([Link])
[Link](500, Ed.TIME_MILLISECONDS)

🔁 Loop Example (Repeat)

for i in range(5):
[Link]([Link])
[Link](500, Ed.TIME_MILLISECONDS)
[Link]([Link])
[Link](500, Ed.TIME_MILLISECONDS)

⚠️ Important Learning

 LEDs = communication signals


 Changing wait time = faster/slower blinking

🌍 Real-Life Connection (AI)

 Traffic lights 🚦

 Charging indicators 🔋

 Robot status lights 🤖

📝 Remember

✔ LEDs show signals


✔ TimeWait controls delay
✔ Loops repeat actions

Movement & Variables

💡 Key Concept:

👉 Variables help control robot movement (like AI parameters).

🚗 Movement Command

[Link](direction, speed, distance)

📌 Example

[Link]([Link], Ed.SPEED_10, 10)

👉 Moves forward with speed 10 for distance 10


📦 What is a Variable?

👉 A variable is a container that stores a value

🧠 Example with Variables

speed = Ed.SPEED_10
distance = 10

[Link]([Link], speed, distance)

🔄 Changing Variables

distance = 20

👉 Robot will move further

⚠️ Important Learning

 Increasing distance → robot goes further

 Changing speed → robot moves faster/slower

 No need to rewrite code → just change variables

🌍 Real-Life Connection (AI)

 Self-driving cars adjust:

o Speed 🚗

o Distance 📏

 AI systems change parameters automatically

📝 Remember

✔ Variables store values


✔ Easy to change behavior
✔ Used in AI systems
Practice Questions (For Self-Check)

1. What happens if you change the order of commands?

2. What does [Link]([Link]) do?

3. What is the use of [Link]()?

4. What is a variable?

5. What happens if distance increases?

6. How do AI systems use parameters?

🎯 Exam Tips

✔ Read code carefully


✔ Look for:

 Missing commas

 Wrong spelling (Led vs LED)

 Missing Ed.

✔ Remember:

 Sequence

 LED signals

 Variables

1. What happens if you change the order of commands?

If you change the order of commands, the output of the program will change. The robot will perform
actions in a different sequence, which may lead to a completely different result.

2. What does [Link]([Link]) do?

It turns ON the left LED light of the Edison robot.

3. What is the use of [Link]()?


[Link]() is used to pause the program for a specific amount of time before moving to the next
instruction.

4. What is a variable?

A variable is a container that stores a value (such as speed or distance) which can be changed when
needed.

5. What happens if distance increases?

If the distance increases, the robot will move further.

6. How do AI systems use parameters?

AI systems use parameters (like speed, distance, or timing) to adjust and control their behavior
automatically based on different situations.

You might also like