Code Monkey home page Code Monkey logo

line-tracker's Introduction

line-tracker

Line tracking car with Arduino, which attempts to follow a black duct tape line on a white background.

How it works

  • Two colour sensors check if they are above the line or not
  • This is because readings would vary base on the surroundings and the sensors are low quality
  • If one side is off, it corrects the motion by turning until both are on the line, to prevent the car from "escaping"
  • If both sides are similar, the car is on the line, or the sensors are placed accross the line, so it moves forward

Calibration

  • Sets threshold values for state detection
  • 100 readings at 20 millisecond intervals
  • Average of "white reading" and "black reading"
  • Car has to be placed on pure white, followed by pure black
  • This process can be ignored by setting the hardcoded values and setting calibrate to 0 instead of 1

Hardware

  • TCS230 / TCS3200 Colour Sensor
    • Left
      • S2 - Digital Pin 2
      • OUT - Digital Pin 3
    • Right
      • S2 - Digital Pin 4
      • OUT - Digital Pin 5
    • Only one input is used as it is black and white
  • L9110 Motor Driver
    • IA2 (A-IA) - Analog Pin 0
    • IB2 (A-IB) - Analog Pin 1
    • IA1 (B-IA) - Analog Pin 2
    • IB1 (B-IB) - Analog Pin 3

line-tracker's People

Contributors

ngmhprogramming avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.