From BU Computer Science
Jump to navigation Jump to search

Component 2

This lab deals with having the vehicle identify which input was specified on the vehicle and displaying the appropriate message on the screen.
  • Step 1: connect a touch sensor, light sensor, ultrasonic sensor and sound sensor to your vehicle. The vehicle will not move for this lab, so you don't need to attached it to the block with anything more than just the wires.
  • Using only one "line" of instructions, program your vehicle to respond a button clicked on the block. When the appropriate button is clicked, the program should read the associated sensor. At the end, the program should display what sensor was read and the value that was read. It should do this once per program