Author Topic: i need major help  (Read 924 times)

0 Members and 1 Guest are viewing this topic.

Offline mahmoshaTopic starter

  • Jr. Member
  • **
  • Posts: 15
  • Helpful? 0
i need major help
« on: September 13, 2011, 01:45:40 AM »
hi all i bought a pic16f84a recently and i bought the burner and bought 2 6v motors and the 5v regulator
and the resistors etc
all the stuff to make my robo car
now i need to understand how the pic works to program it how to control the i/o
i can program c++ and i have some exp for C
now i have everything to make a  .hex and .h files i need to understand the diffrence and i need to understand how to use the pic
thx for the help
and here's my email
by the way i am egyption so reading the microchip datasheet and understand all of it is almost Impossible

[email protected]

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,920
  • Helpful? 97
Re: i need major help
« Reply #1 on: September 13, 2011, 09:09:18 PM »
Ahh, the old PIC16F84A. That is the one I started with a am fond of it. It is a very capable PIC and used one in my first robot.
First about hardware: You will need some type of driver to control the motors from the PIC. A PIC's output pins can only sink/source 25mA max.
There are many projects on the web that use the PIC16F84 (or one of the other mid-range PICs). Do look them up and study schematics to learn how to wire them. You will need a 100nF cap on the Vdd to Vss pins of the PIC and a 10k pull-up resistor on the MCRL pin.

The best tutorial for learning how to use and program PICs is this one:
http://www.gooligum.com.au/tutorials.html

Do start with the Base-line PICs and assemble code. Once you get through the lessons the data sheet will make much more sense. Don't worry about not have the PICs used in the lessons as you can use the Simulator built into MPLAB to run code. Read the Help in MPLAB as it has much useful information.

You did download the Free MPLAB IDE from Microchip, right? If not then do so. After you learn assembler then go on to the C lessons in the tutorial and download the Free HiTech C compiler from Microchip.

Good luck and have fun.

 


Get Your Ad Here