Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Conscripted on December 14, 2010, 10:24:34 PM

Title: Designing small line follower
Post by: Conscripted 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
Title: Re: Designing small line follower
Post by: Soeren 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
Title: Re: Designing small line follower
Post by: Conscripted 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