How do remote controls work?
How do car wheels move when the car is driving in different directions?
How would you make a remote control from your computer keypad to control Phiro's wheels to move?
Create a remote control for Phiro using Make a Block in Snap4Arduino to enable your computer's keypad arrow keys to make Phiro move.
By the end of this lesson, learners will be able to
How do remote controls work?
How do car wheels move when the car is driving in different directions?
How would you make a remote control from your computer keypad to control Phiro's wheels to move?
Imagine what you would need in Snap and Phiro to solve this challenge.
Create conditions to connect Arrow Key to Phiro Direction. Example, If Up arrow is pressed, Phiro moves Forward.
How many steps would it take to change Phiro's directions? How would you imagine decreasing the number of steps to make the process more efficient?
2 ways to do this:
1. Long Code
2. Short Code
Explore how Phiro's motors turn when moving forward, backward, turn right & left. Plan the conditions to incorporate the computer's key arrows to each of Phiro's movements.
Create Phiro's remote control program
1. Make a Block
2. Define the Block
3. Create remote control
Define the block with the given Input value speed - variable 'L' denotes speed.
Remote Control program
Remix your remote control to use Phiro's LEDs to flash different color lights for different directions!
Share your very own Phiro Remote Control creation using #MyPhiro and we will share it with the world!