Autonomous Car
You are now going to use all of your coding skills to programme the mBot to be an autonomous car.
Definition. An autonomous car is a vehicle capable of sensing its environment and operating without human involvement. A human passenger is not required to take control of the vehicle at any time.
What does your car have to do?
What does your car have to do?
Have remote key start ... follow a black line on the road ... indicate when it is going to turn ... stop when pedestrians walk in front of it ... make a warning sound when it stops for a pedestrian.
Have remote key start ... follow a black line on the road ... indicate when it is going to turn ... stop when pedestrians walk in front of it ... make a warning sound when it stops for a pedestrian.
Task 1 - Planning using a flowchart
Task 1 - Planning using a flowchart
Make a flow chart using a Google Drawing to plan what your mBot is going to do. You can break the task down into parts first if you like so you can make seperate flowcharts for each task. Then try and put it all together in one flowchart.
Make a flow chart using a Google Drawing to plan what your mBot is going to do. You can break the task down into parts first if you like so you can make seperate flowcharts for each task. Then try and put it all together in one flowchart.
Task 2 - Coding using Defined Blocks
Task 2 - Coding using Defined Blocks
When design your code, make sure you try to use at least SOME defined blocks as part of the whole code for your mBot.
When design your code, make sure you try to use at least SOME defined blocks as part of the whole code for your mBot.
Task 3 - Testing
Task 3 - Testing
You need to test your code by making your mBot try and do the following
You need to test your code by making your mBot try and do the following
React to a key being pressed on the remote control by moving forward onto the black line.
Follow the black line, indicating when it is turning either left or right.
Stopping when an obstacle is put in front of it.
Making a warning sound when an obstacle is put in front of it.
If any of these things are not working correctly you need to check through the debugging list and fix it.
If any of these things are not working correctly you need to check through the debugging list and fix it.
Make a note of all the changes that you do - take screen shots and write notes about what you changed / fixed and what effect your changes had.