Society of Robots - Robot Forum

Mechanics and Construction => Mechanics and Construction => Topic started by: livid86 on July 04, 2009, 06:36:54 AM

Title: Is it posible to get this circuit converted for pic16f84a
Post by: livid86 on July 04, 2009, 06:36:54 AM
Hello,

I'm quite a noob at all this robots stuff but i find it extremly interesting and spend days on end looking up cool line following robots on youtube and stuff like that. I finally have the money and courage to build my own.

I have seen some other tutorials but alot of the parts are expensive and hard to buy. I was hoping that someone could help me redesign this circuit for the pic16f84a. I would appreciate it so much.

http://www.tombot.net/beam/pics/circuits/blacklinefollowercircuitfull3.jpg (http://www.tombot.net/beam/pics/circuits/blacklinefollowercircuitfull3.jpg)

I would have to do the code by myself but hopefully i can cope with that as i already do programming on the computer (not so much on microcontrollers through)

thanks heaps
Title: Re: Is it posible to get this circuit converted for pic16f84a
Post by: SmAsH on July 04, 2009, 04:11:02 PM
yes, it is possible to do as long as they are both just standard microcontrollers.
first you will have to look up the datasheet for the original microcontroller.
then get the datasheet for your pic. you will have to see where each pin is going to and what it is.
anything that is going to a digital pin must go to a digital pin on your pic, anything thats going to vcc must go to vcc on your pic etc..
its not that hard a task but there is a fair amount of research involved and it takes up a fair bit of time.
Title: Re: Is it posible to get this circuit converted for pic16f84a
Post by: Soeren on July 05, 2009, 02:07:19 AM
Hi,

Why on earth would you replace a logic IC (Octal Buffer/Line Driver with 3-STATE Outputs) with a microcontroller?
You could do it of course, just program the logic into the PIC and you are set.

Why use such an outdated PIC by the way? The more recent PICs are cheaper and have got more program storage etc.
Title: Re: Is it posible to get this circuit converted for pic16f84a
Post by: livid86 on July 05, 2009, 03:42:47 AM
Hello,

Like i said i'm really new to this and find it very hard to find parts as im Aussie and it cost a fortune to order from America. I'm really not sure weather i should start by something a bit harder and learn alot or if i should start with something that is spoon feed to me.

Thanks.
ps. I like PIC because i brought a PICprogrammer and i feel weird if i change microprocessor.
Title: Re: Is it posible to get this circuit converted for pic16f84a
Post by: paulstreats on July 05, 2009, 12:37:49 PM
Quote
Why use such an outdated PIC by the way?

Its strange, so many people do. the 16f84a is sold by microchip as the perfect introduction to microcontrollers and a few packages use this as their beginner mcu.

It has many downfalls though, as you mentioned little storage space and other stuff along with no analog converters, no communication systems built in or any other expected features.

(go for a pic18f they have a better command set and free C compilers)
Title: Re: Is it posible to get this circuit converted for pic16f84a
Post by: livid86 on July 05, 2009, 07:41:57 PM
It was because it's all i know and all i can get at my local electronics shop. Although james has sent me to http://futurlec.com.au (http://futurlec.com.au). This site has a variety of micoproccessors and really cheap postage so i can order some from here.

What i am now asking is if someone could please reconmend a new microproccessor from this site..

Thanks heaps.
Title: Re: Is it posible to get this circuit converted for pic16f84a
Post by: SmAsH on July 06, 2009, 12:33:47 AM
are you set on pics? if not i would suggest some atmega8's and a look at the $50 robot tutorial...