Scratch With Arduino:
Traffic Light Simmulation
BY AKHMAD ZAIMI
LEARN
SHARE
CONNECT
Game Story
• There are 3 vehicles ridding the street during Green Light. In the
corner, a young ballerina need to step across the street via Zebra
Cross.
• During normal condition (gree light on), Circuit board showed a Green
LED on, controlled by Arduino
• If pressing SPACE key, a Green LED will be OFF and a Red LED will be
ON. At the same time:
 The 3 vehicles will stop just right before Zebra Cross
 While a young ballerina will step across the street
LINK DOWNLOAD
Pre-requisite Windows 10
• Please install these softwares as the order:
1. Scratch:
https://downloads.scratch.mit.edu/desktop/Scratch%20Desktop%20
Setup%203.6.0.exe
2. Arduino IDE:
https://www.arduino.cc/download_handler.php?f=/arduino-1.8.10-
windows.exe
3. Scratch for Arduino: http://s4a.cat/downloads/S4A16.zip
Sprites
Codes
Arduino1 red1Car1, Car2, Mat1
Codes
Green1
Sprite1
Circuit Board
220
220
-
+
-
+
ARDUINO
BOARD
GND
DIGITAL
PIN 12 DIGITAL
PIN 13
Resistor
Resistor
LED
LED
Arduino and Circuit Board
Screen Game Arduino
Screen: X and Y
Coordinate
Thanks To
Made a Bag by HEART
Question?
Contact me: Akhmad Zaimi
Email: djimie@gmail.com

Scratch with Arduino: Traffic Light Simmulation