Tags:
tag this topic
create new tag
view all tags
<b><u>Lab 3 Tuesday, September 7, 2021</u></b> Topic: Selection Description: This lab session will deal with having the vehicle/block identify which input is specified and displaying the appropriate message on the screen. Components: 1 Go to *Units* and select *Robot Trainer*. Build the __Cuboid__ in the <b>Objects and Obstacles </b>tutorial (do not complete the rest of this tutorial at this time). 1 Connect a touch sensor, light sensor, and ultrasonic sensor to your vehicle. The vehicle will not be moving for this lab, so you dont need to attach the sensors with anything more than just the wires. 1 Using only one column of instructions, program your vehicle to respond to a button clicked and held on the block (tip: you might want to give yourself some time between starting the program and when it queries the buttons). When the appropriate button is clicked, the program should wait 2 seconds and then read the associated sensor. At the end, the program should display what sensor was read and the value that was read (where appropriate). It should do this only once per program execution. 1 Test your code using all three types of sensors in any order. Use the cuboid to get different color and distance readings from the appropriate sensors. 1 Create your own custom block that contains the embedded IF structure. Replace the appropriate components with your new block in the main stack.
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2021-08-23
-
craiggoehler
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback