Intro to PIC Microcontrollers

84,512

172

58

Posted

Introduction: Intro to PIC Microcontrollers

a minimum of what you need to get started programming PIC micros for use in electronics projects (robotics, etc)

Step 1: What You Need for the Project

NOTE: seems like if you have windows XP, there is no free PIC programmer software that can download code to your PIC throught the serial port. This meens you will have to buy or make a more expensive USB programmer circuit. If you have DOS on windows 95, the stuff below will work.

Look at the list of stuff you need below. Then look at the picture I made below. It has everything on it you need to get started with Pic micros. You can see how to make a simple circuit with the PIC and an LED, you can see code for a simple program, and you can see instructions on how to put the code onto your PIC. Once the code is downloaded onto your PIC, put your PIC back into the LED circuit, give it power, and watch the LED blink, whee!

#################################################################
TO BE ABLE TO READ THE DIAGRAM, CLICK ON THE 'i' IN THE TOP LEFT CORNER OF THE PICTURE, THEN CLICK 'largest' (ON THE LEFT OF THE PAGE), THEN CLICK THE PICTURE.
Also, download the PIC16F877StarterProject.zip It contains a more detailed picture.
#################################################################

==========Stuff used in this project:==========
(I am in no way saying you have to buy the things below, they just happen to be what I used when I started with PICs)

a PIC16F877
This is a PIC microcontroller. It's a mini-computer.
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=74

a PIC-PG2B JDM programmer
This is a circuit board which interfaces your computer to your PIC so you can program it (I bought one off ebay for around $15).
http://www.olimex.com/dev/pic-pg2b.html

PICBasic
This is the compiler used in this demo to (similar to Basic language) program the PIC.
http://www.picbasic.co.uk/
You could also use the -free- PICClite compiler (similar to C language).
http://www.htsoft.com/products/PICClite_comparison.php
You could also use a free assembly language compiler (assembly language is annoying).

IC-Prog
This program allows you to download your code to the PIC.
http://www.ic-prog.com/

USB to Serial Adapter
If you're using windowsXP you'll probably have problems using your serial ports (I did). A USB to serial converter (I have the 'Aten USB to Serial Adapter') may help.

one LED

one 4mhz chrystal oscillator

two 22pf capacitors

one 4.7k resistor

one 470 ohm resistor

one 5v power supply

###########################
Here's a Great PIC Intro Book
###########################

Share

    Recommendations

    • Microcontroller Contest

      Microcontroller Contest
    • Science of Cooking

      Science of Cooking
    • Pocket-Sized Contest

      Pocket-Sized Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    58 Comments

    can i use a PIC instead of atmega MCs in arduino?

    I need a 5 PICs each that is programmed to give randon ( or psuedo random) movement to 4 small servo's. I am uing to built a turtle prop. I can build electronic circuits and do soldeing, but I do not know PIC programming. Please anyone can program and send me these PIC's together with the schematic to make it work, I will pay for it. and Many thanks for reading.

    This looks interesting...
    http://pp06.sourceforge.net/index.html
    But windows just keeps getting sicker and less useful.
    I'm searching for a technical bootable-linux-CDROM-distro. For free, of course!

    puppy linux, look it up. You don't even need a hard drive. Check out the instructions on the website for how to install it etc, it's very very easy but they have great animated instructions. I put it on a cd, rebooted the computer (after changing the bios settings) and it worked beautifully.

    Running from a live CD is a lot slower, though, and if you only have 1 CD drive (like me), you can't use CDs or DVDs. I love linux, though.

    Puppy Linux boots to ram, so the apps start up lighting fast, and you can take the CD out. Try it, you will be surprised...

    Cool, I will definitely try it out!

    Let me know how it goes...

    I like to use Suse linux with KDE. Its a little harder to get customized but has a lot of power.