Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: winnie on April 17, 2008, 08:31:56 PM

Title: Microcontroller for Linetracer & Obstacle Avoidance
Post by: winnie on April 17, 2008, 08:31:56 PM
What's the suited microcontroller to be used that can linetrace and avoid obstacles using C, C++ or Java? Is it possible to just use 1 microcontoller to do both of these? What's the perfect microcontoller and how many pins?
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: airman00 on April 17, 2008, 08:53:29 PM
first figure out which sensors you will use

amount of pins --- find out how much inputs outputs you need

almost any micrcontroller can do this

Yes one microcontroller can do all of this , I've done it with one

Search google too , all of these can be answered by that
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: winnie on April 17, 2008, 09:07:48 PM
if there are extra pins after i have arrange the inputs and outputs, is there any effect with the whole project?

for example, if i only use/need 24 pins and i have used a 54pin microcontroller, can it effect the programming?
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: ellize on April 17, 2008, 09:15:28 PM
So, airman00 can you please tell me what microcontoller did you use, how many pins and what programming language did you use?
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: superchiku on April 18, 2008, 01:33:57 AM
well for beginners it is reccomend that u get a development board like the adruino or basic stamp because code debugging and implementation is easy  but if you are going for a normal microcontroller i suggest you try the $50 robot mcu coz it will accurately suit your requirements and you can be able to program it with C language
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: airman00 on April 18, 2008, 06:12:58 AM
my robot
http://www.societyofrobots.com/member_tutorials/node/55

please not  that I will update the program code this week ,so dont use it yet
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: winnie on April 19, 2008, 01:26:51 AM
well for beginners it is reccomend that u get a development board like the adruino or basic stamp because code debugging and implementation is easy  but if you are going for a normal microcontroller i suggest you try the $50 robot mcu coz it will accurately suit your requirements and you can be able to program it with C language

but i thought the basic stamp use only the "P?"BASIC language?
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: superchiku on April 19, 2008, 04:42:49 AM
yes it is , i told you its for beginners, if u are comfortable with C then go for more difficult controllers..
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: winnie on May 02, 2008, 09:48:20 PM
we have chosen a PIC18F4550 microcontroller but our problem is the compiler/programmer or something that can transfer our codes from computer to mcu.. and its worth a hundred bucks.. if we use atmel mcu can it do both our   specific requirement like line tracing and obstacle avoidance?
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: superchiku on May 02, 2008, 10:24:56 PM
avr or pic both are good avr's are better coz there compiler is free and they are cheap and easily available
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: winnie on May 04, 2008, 11:54:06 PM
i'm actually proposing ATmega128 but i have read somewhere in this forum that there "might" be some problems.. although i definitely like avr more than pic coz i have seen its manual and it is more understandable than pic's...
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: TrickyNekro on May 05, 2008, 06:46:25 AM
Man, what's your exp in electronics???
ATMEGA128 is difficult even to touch... almost the most advanced of the series (including it's bigger versions in memory etc...)
I suggest either an ATMEGA8 or an ATMEGA8535 (or 16 or 32 or...) anything in DIP...
And why not an ATMEGA168 which is more expensive than ATMEGA8 has the same structure externally but is more advanced plus easy...


It's your choice... but I do not suggest PIC... they have some nice features but are hell difficult to learn for a beginner... period!!!

Hope I helped...
Lefteris...
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: benji on May 05, 2008, 09:31:40 AM
just to mention that ATmega128 comes only in TQFP ,,no sockets available
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: superchiku on May 05, 2008, 11:44:16 AM
u always have development boards..
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: Admin on May 17, 2008, 04:55:29 PM
http://www.societyofrobots.com/robot_faq.shtml#best_microcontroller
Title: Re: Microcontroller for Linetracer & Obstacle Avoidance
Post by: winnie on May 18, 2008, 08:53:26 PM
Man, what's your exp in electronics???
ATMEGA128 is difficult even to touch... almost the most advanced of the series (including it's bigger versions in memory etc...)
I suggest either an ATMEGA8 or an ATMEGA8535 (or 16 or 32 or...) anything in DIP...
And why not an ATMEGA168 which is more expensive than ATMEGA8 has the same structure externally but is more advanced plus easy...


It's your choice... but I do not suggest PIC... they have some nice features but are hell difficult to learn for a beginner... period!!!

Hope I helped...
Lefteris...


FYI, we are actually JUST BEGINNERS.. That's why we are asking(for obvious reason) Thanks for info, it helped us... i guess... =)