Photos, Videos and Code (1 example)

By 26th February, 2016, the team has solved most of the problems apart from SENSOR stability. It means the automatic tank will not be automatic. Though the competition is over, the project is not. So the team will continue to work to make the tank work - automatically avoiding obstacles in its path.

Below are some photos and videos to show work in progress.

The tank with sensor on it (though not working as desired)

SENSOR in the middle with IR transmitter shown as the BRIGHT spot.

 

laptop used for programming and testing the code in python.

 

A few VIDEOS showing work in progrss (NOT AUTOMATED yet).

Link 1 Video showing sensor works by generating the correct level of voltage

 

 

Link 2 -

Link 3 -

Link 4 -

 

The code - only the one for testing the sensor is here, more to follow at a later stage:

 

import RPi.GPIO as GPIO
import time
GPIO.setwarnings(True)
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.IN)
GPIO.setup(20, GPIO.OUT)
GPIO.setup(26, GPIO.OUT)

while True:
          if GPIO.input(23) == GPIO.LOW:
                print ("Forward")
                GPIO.output(20,1)
                GPIO.output(26,1)
                time.sleep(0.1)
          else:
                print ("Obstacle")
                GPIO.output(20,0)
                GPIO.output(26,1)
                time.sleep(0.1)