Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
i'm using a robot wit 2 wheels run by separate dc motors from a atmega16 via a H-bridge.
i'm using a 5 sensor array at the front to detect the line. how can i make an accurate 90deg turn on reaching an intersection??
You'll need encoders on each wheel; you can probably get by with a simple pulse encoder (a disk on the wheel with alternating black/white sections, and an IRLED/Phototransistor pair to detect light/dark changes facing the pattern, so as the wheel turns, the pulse output is read by the microcontroller). You might also want to check into quadrature encoders on the wheels, but it probably isn't necessary for your application. At any rate, as the wheels rotate, you monitor the pulses - so many pulses on the wheels will equal 90 degrees of turning. It won't be perfect (wheel slippage), but it will likely be close enough (maybe close enough for the error to be almost unmeasurable).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.