8
www.rapidonline.com sales@rapidonline.comEdison 2.0
Edison can be programmed using free browser-based or downloadable applications
which cater for all age groups and skill levels.
EdBlocks
The online EdBlocks programming environment is simple to use on both
computers and tablets. EdBlocks contains more than 150 blocks, making it
easy to experiment with programming. All the blocks are accessible through
WKH PDLQ PHQX RUJDQLVHG LQWR ÀYH GLIIHUHQW FDWHJRULHV 6LPSO\ RSHQ RQH RI
the menus by clicking on it in the app, then select the block you want. Drag
DQG GURS HDFK EORFN WR WKH ¶VWDUW· EORFN LQ WKH PDLQ SURJUDPPLQJ DUHD WR DGG
LW WR \RXU SURJUDP ,W·V WKDW HDV\
A free 39 page teachers guide containing 23 activities for your students
is available to download.
www.edblocksapp.comEdPy
EdPy is based on Python, a popular text-based computer programming
language renowned for being easy-to-learn with high readability. Programmers
use Python to develop everything from the latest apps to business software.
Facebook, YouTube and Pinterest are just some of the many applications that
XVH 3\WKRQ (G3\ PDNHV WH[W EDVHG SURJUDPPLQJ IXQ E\ OHWWLQJ VWXGHQWV VHH
their code come to life in their Edison robot. With EdPy, students are learning
the core of a real programming language and are able to take their exploration
of robotics and coding to a more advanced level.
www.edpyapp.comEdWare
The next level up from EdBlocks, Edware allows more complex programs
and structures whilst still maintaining a simple drag and drop graphical
environment.
A free 67 page booklet titled “Your EdVenture into Robotics” is available to
download and gives 10 lesson plans and other resources to make teaching
with EdWare easy.
www.edwareapp.comEdBlocks Example Program – Obstacle Avoidance
EdPy Example Program – Obstacle Avoidance
EdWare Example Program – Obstacle Avoidance
MORE THAN
JUST A ROBOT
#-------------Setup----------------
import
Ed
Ed
.EdisonVersion =
Ed
.V2
Ed
.DistanceUnits =
Ed
.CM
Ed
.Tempo =
Ed
.TEMPO_MEDIUM
#--------Your code below-----------
#turn on obstacle detection
Ed
.ObstacleDetectionBeam(
Ed
.ON)
#set up variables
SideTurn
=
0
obstacle
=
0
#loop forever
while True
:
#start Edison driving, without a duration, so Edison is moving while checking
for obstacles
Ed
.Drive(
Ed
.FORWARD,
Ed
.SPEED_5,
Ed
.DISTANCE_UNLIMITED)
#read obstacle detection state into a variable
obstacle =
Ed
.ReadObstacleDetection()
#check if any obstacle has been detected
if
obstacle
>
Ed
.OBSTACLE_NONE:
#turn on both LEDs and back up
Ed
.LeftLed
(Ed.ON)
Ed
.RightLed
(Ed.ON)
Ed
.PlayBeep()
Ed
.Drive(
Ed
.BACKWARD,
Ed
.SPEED_5, 3)
# turn away from obstacle (if obstacle ahead turn a random
direction)
if
obstacle
==
Ed
.OBSTACLE_LEFT:
Ed
.Drive(
Ed
.SPIN_RIGHT,
Ed
.SPEED_5, 90)
elif
obstacle
==
Ed
.OBSTACLE_RIGHT:
Ed
.Drive(
Ed
.SPIN_LEFT,
Ed
.SPEED_5, 90)
elif
obstacle
==
Ed
.OBSTACLE_AHEAD:
if
SideTurn
==
1:
Ed
.Drive(
Ed
.SPIN_RIGHT,
Ed
.SPEED_5, 90)
else
:
Ed
.Drive(
Ed
.SPIN_LEFT,
Ed
.SPEED_5, 90)
DIWHU WKH REVWDFOH KDV EHHQ DYRLGHG WXUQ WKH /('V RҬ
Ed
.LeftLed(Ed.OFF)
Ed
.RightLed(Ed.OFF)
#change the direction variable. Value changes rapidly, giving a sudo-random
direction
if
SideTurn
==
1:
SideTurn
=
0
else
:
SideTurn
=
1
£27.49
Order code 70-6555
Engage your students with Edison,
the programmable robot
(GLVRQ LV D FRPSOHWH 67(0 WHDFKLQJ UHVRXUFH IRU FRGLQJ DQG URERWLFV HGXFDWLRQ
for students in
Keystage 2 and 3
.
Easy-to-use with no coding experience required, Edison offers unparalleled
value-for-money and is supported by free downloadable lesson plans and
activities.
Edison has built-in sensors, lights and sound so that you can concentrate
on programming.
Edison can:
• Respond to light and sound • Follow lines and avoid obstacles
• Read pre-set barcode programs • Communicate with other Edison robots
$QG VR PXFK PRUH
From only
1+ £34.99 10+ £28.99 20+ £27.49