Author Topic: Designing small line follower  (Read 722 times)

0 Members and 1 Guest are viewing this topic.

Offline ConscriptedTopic starter

  • Robot Overlord
  • ****
  • Posts: 291
  • Helpful? 10
Designing small line follower
« on: December 14, 2010, 10:24:34 PM »
Good evening. I'm in the planning stage of a small line follower robot. I haven't decided on a final size yet however I would like it to be reasonably small. I looked at the ATTINY85 for the brain but I'm concerned that if I use 2 lines to PWM the motors I only have 4 inputs left for the line sensor. Is that enough inputs?

Conscripted

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: Designing small line follower
« Reply #1 on: December 14, 2010, 10:50:05 PM »
Hi,

I looked at the ATTINY85 for the brain but I'm concerned that if I use 2 lines to PWM the motors I only have 4 inputs left for the line sensor. Is that enough inputs?
I recently made plans for something similar, but with a PIC10 (6 pins in a SOT-23 package) - but it won't be 'till I can lay my paws on a pair of pager motors (got a handfull, but all different).

As long as you don't plan anything fancy, you have plenty of lines, some 'bots use only two line detectors (some by detecting one edge of the line*), so you could replicate that and have two pins for other purposes.


* One sensor (say the left) see the line and the other see the background. Now if the left sensor senses the background, you turn left until it see the line again and vv. It will probably wiggle its tail a bit, so better give it a girly name ;D
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

Offline ConscriptedTopic starter

  • Robot Overlord
  • ****
  • Posts: 291
  • Helpful? 10
Re: Designing small line follower
« Reply #2 on: December 15, 2010, 10:48:47 AM »
Right now i'm thinking about using 3 sensors. That will give me one over the line and one on each side. That leaves me one open pin for future growth. Right now I'm planning on using transistors to drive the motors. (I don't think I'll need to go backwards). What arrangement do you recommend for the actual line sensor? I have a handful of photoresistors. Should I make a voltage divider out of them (per $50 robot) or is their another way of doing it?

Conscripted

 


Get Your Ad Here