Start blinking an LED.

Originally Posted by
mubashir
Hi
I am a electronic technition.I can design and analyze a cct but i was stucked a lot while trouble shooting a micro controlling based cct or pic based cct.I need help to take a start for these.
best regards
mubashir
Hi mubashir,
Welcome to the MELabs PICBASIC Forum.
If you start with PIC Microchip microcontrollers:
Do you have a programmer, compiler and compiler editor?
Mentioned often on this forum:
PICkit 2 programmer, PicBasic Pro compiler and MicroCode Studio compiler editor
Please look at and make note of the difference between these compilers:
PicBasic compiler (PBC)
PicBasic Pro compiler (PBP)
You may want to start with a well used PIC model. Most here would discourage using the PIC16F84, it is now quite limited, and difficult to obtain. There are many newer PICs that are less expensive and more powerful.
For instance the cheaper PIC16F628, does everything the old PIC16F84 does, and a lot more.
http://www.rentron.com/PIC16F628.htm
There are different techniques used to build the electronic circuits. Some use a fairly complex “development” circuit board. Some use the “solder-less bread-board” and just plug components in. Some wire “point to point” or “wire wrap”. Some lay-out circuits on a “printed circuit board”. We would recommend that you don’t start with the more permanent type prototype method. The development board or the solder-less bread-board seem to be a better method.
Also, most everyone on the forum will recommend that you start small.
Because you are familiar with electronic design, you are far ahead of a lot of the beginners.
But, still start with the simplest of PIC programs, simplest of circuit layouts.
The NOW famous, “blink an LED” is the most recommended start project. We all still revert all the way back to it to test our set-ups and eliminate non complex error possibilities. The code should be cut and pasted to eliminate typos.
Look for: blink.bas (bottom of page)
http://www.rentron.com/PicBasic/prod...CBASIC-PRO.htm
There are code examples at these sites:
http://www.rentron.com/PicBasic1.htm
http://www.rentron.com/PicBasic2.htm
Please do not try any complicated programs until you have built a few of the simpler ones.
Start blinking an LED.
Make the LED come on when an input is switched.
Make the LED dim and brighten.
Later, you can add a LCD display, or more fancy stuff.
Anyone else have more advice for mubashir?
Hope this helps,
-Adam-
Ohm it's not just a good idea... it's the LAW !
Bookmarks