Theory
🤖🚗 16. Robot catches sensors
Step 1: 🌟 Start Your Adventure:
- Open the Magic Portal (Google): First, we need to find the Open Roberta Lab. Go to Google and click on the search bar.
Step 2: 🔍 Find Open Roberta Lab:
- Type the Secret Words: In the Google search bar, type “Open Roberta Lab” and press the enter key on your keyboard.
- Choose the First Magic Door: You’ll see lots of results, but we need to click on the very first link. It’s like choosing the first door in a game!
Step 3: 🔭 Explore Open Roberta Lab:
- Enter the Lab: Wait for the Open Roberta Lab page to load. It’s like waiting for a game to start!
- Choose Your System: On the page, you’ll see an option that says “Choose your system”. Click on it and select “Open Roberta sim”.
Step 4: 🛠️ Start Building Your Robot:
- Control Block: Imagine you’re the boss of your robot. Click on the “Control Block” to start giving orders.
- Repeat Command: In the control block, choose the “Repeat” block. It’s like telling your robot to do the same cool move many times!
Step 5: 🏃 Make Your Robot Move:
- Action Block – Move Forward: Go to the “Actions Block” and choose “Drive Forward”. It’s like telling your robot to start walking!
Step 6: Control Block – Wait Command:
- Go back to the “Control Block” and choose “Wait Until”. This is like telling your robot to wait for your next command.
- Change Sensor to ‘Distance CM Ultrasonic’: This is like giving your robot special glasses to see how far things are. Click and choose the “Distance CM Ultrasonic. Sensor”.
Step 7: 🔄 Turn Your Robot:
- Action Block – Turn: Go back to the “Actions Block” and choose “Turn”. This is where you tell your robot how fast to turn and how much to turn.
- Set Speed and Angle: You can decide how fast and how far your robot turns. Maybe you want it to turn super-fast or just halfway!
Step 8: 🖼️ Change the View:
- Simulation View: Click on the simulation view to change the scene. It’s like choosing the background in a video game for your robot.
- Add Obstacles: If you want, you can add obstacles. This is like adding handles in a race for your robot to navigate.
Step 9: ▶️ Start the Show:
- Start Your Program: Now, click the start button. It’s showtime! Watch your robot come to life and follow your commands.
Step 10: 👀 Watch Your Robot:
- Observe: See how your robot moves, turns, and catches sensors. It’s like watching your character in a game complete a level!
Step 11: 🎉 Celebrate:
- You Did It! You’ve successfully programmed your robot in Open Roberta Lab. Great job!
- Remember, if something doesn’t work the first time, don’t worry! Just like in games, sometimes you need a few tries to pass a level. Keep trying and have fun learning! 🤖