Intro to PIC Microcontrollers

84,806

172

58

About: www.leevonk.com

Intro: 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

    • Tiny Home Contest

      Tiny Home Contest
    • Audio Contest 2018

      Audio Contest 2018
    • Metalworking Contest

      Metalworking Contest

    58 Discussions

    0
    None

    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.

    0
    None
    leevonkVIRON

    Reply 11 years ago on Step 1

    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.

    0
    None
    Win7Maniacleevonk

    Reply 8 years ago on Step 1

    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.

    0
    None
    roland985Win7Maniac

    Reply 8 years ago on Introduction

    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...

    0
    None
    mattameo213leevonk

    Reply 10 years ago on Introduction

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

    0
    None
    omnibotVIRON

    Reply 8 years ago on Introduction

    For Linux there is <a href="http://piklab.sourceforge.net/">PikLab</a>.<br />

    0
    None
    Win7Maniac

    8 years ago on Step 1

    What does the 4MhZ crystal do? Does it set the frequency for the controller? I've seen this used in many platforms, such as Arduino (except 16MhZ), but I don't know what it does.

    0
    None
    12V

    9 years ago on Introduction

    i used a velleman k8048 and it works on xp with out paid software.

    0
    None

    does anyone know about an open source pic programmer that will run on vista? will this one? thanks for the info in advance.

    0
    None
    yourcat

    9 years ago on Introduction

    I think the PICAXE programming software can also do PICs, and that's free.

    0
    None
    FlyByPC

    9 years ago on Step 1

    If you use a newer microcontroller (the direct replacement would be the 16F887), you don't need the resonator unless you want to run at more than 8MHz. A 12F683 is great for small (4-I/O, 1-input) projects. There are several WinXP-compatible PIC programmer applications. If you do go the USB route, spend a little more and get an In-Circuit Debugger; it can work directly with MPLab, and can both program and debug instruction-by-instruction.

    0
    None
    Oldrunk

    9 years ago on Step 1

    There is free windows PIC programmer software called WinPIC for flashing the PIC with just about any programmer and a number of OpenSource compilers for C and Basic that work under windows and can be used with MPLAB IDE

    0
    None
    collard41

    10 years ago on Introduction

    its quite funny that you mention the PIC (personal introductory course) book, my friend wrote it.