Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Technical guide for helpers

GovSohal edited this page May 13, 2019 · 3 revisions

For Helpers

Please refer to the general purpose guide for connecting to the PI, making changes and how to control the robots.

How to check if the robot is working correctly

  1. Ensure that the laptop is connected to the Pi's wifi network and you have connected to it over SSH with the Application Putty.
  2. In Putty type:
cd Wi-Fi-Robot/webserver
python3 server.py

Now with a web browser, visit 192.168.4.1:8000.

You can check all the sensors are working correctly by putting your hand over the sensors and the corresponding sensors on the web interface should go red.

For movement, simply use the keyboard's arrow keys to see if the robot moves accordingly.

What can go wrong and how to fix it:

  1. One motor is working and the other is not:

-> Call Govind

  1. The robot is moving in opposite direction (e.g goes backwards instead of forward)

-> Call Govind or Vicky

Hints for Tasks

Task 1: Go forward and stop on an obstacle

Hint 1: Can you make the robot go forward indefinitely? (Press CTRL+C to cancel) Hint 2: Can you detect when there is something in front of the front sensor? Hint 3: Can you use an IF statement to put Hint 1 and Hint 2 together?

Task 2: Turn based on obstacle

Hint 1: Can you get readings from the left and right sensor? Hint 2: Can you make the robot turn left or right indefinitely? Hint 3: Can you something you learnt for Task 1?

Task 3: Drive autonomously

Hint 1: Float the idea of an ELIF statement block to them Hint 2: Walk through the logic of how you'd set this up

Task 4: Follow a wall

Same hints as Task 3 and 4.

Solutions

Can be found in the Solutions branch of this repo

Clone this wiki locally