Analog line follower

From XinCheJian
Jump to navigation Jump to search

First version

A simple analog line follower, designed by He Qichen and Edward Jiang.

This circuit use 2 LDR's to form a bridge to compare the difference of light received in them, so it would work under most of the lighting conditions. One need not adjust the robot before racing anymore!

analog line follower circuit diagram

The following PCB design is not the same than the circuit plan but very close :-) The PCB is designed for the workshop in the Campus Party 2012 in Berlin/Germany.

analog line follower PCB layout

The PCB is working and ready for production. here some pictures of the self-etched prototype.

analog line follower

analog line follower

And here is the Video of the working analog Line Follower

NOTE: As the sensitivity was not good enough we changed the LDR from 20KΩ to 1MΩ

Second version

Based on the first version we changed the circuit to the following:


analog line follower

  • 三极管 - Transistor
    • 2N3904 NPN [1], 200 mA, 40 volt, 625 milliwatt transistor with a transition frequency of 300 MHz, with a minimum beta or current gain of 100 at a collector current of 10 mA. [2]
    • 2N3906 PNP [3], 200-mA, 40 volt, 300-milliwatt transistor with an transition frequency of 250 MHz, with a beta of at least 100 [4]
    • 三极管的工作原理 [5]
    • 三极管工作状态
      • NPN 型,当B与E之间电压Vbe>0.5V时,如果三个管脚电压关系是Vc>Vb>Ve,则会处於放大状态;如果是Vb>Vc>Ve 则会处於饱和状态(相当於开关);如果此时Ve>Vc则仍会处於截止状态
      • PNP 型,当B和E之间电压Veb>0.5V时,如果三个管脚电压关系是Ve>Vb>Vc,则会处於放大状态;如果是Ve>Vc>Vb则会处於饱和状态(相当於开关);如果此时Vc>Ve则仍会处於截止状态
      • 注:三极管放大状态时,导通能力大小由基极电流Ib决定,因此三极管是电流控制型元件
  • Photoresistor

The only change is that we removed the potentiometer in the LDR bridge and we used 1MΩ LDRs to get a bigger potential difference between dark and bright areas. Also the new circuit got a LED as third wheel and to light up the surface between the LDRs. It might help in low light conditions but the benefit might not be that great.


analog line follower


To make the line follower less light dependent LDR's with a very big dark value should be used. It's very important to adjust the LDR'S by height and angle as well the width to each other.Besides this there is not much else to tell but that's a lot of fun building it and let it run (maybe in groups) on the line course or even as small as an A4 paper sheet. See picture in the right pane for printing a line on an A4 paper sheet.

Black Line Course A4