Best Microcontroller Projects


XML RSS
What is this?
Add to My Yahoo!
Add to My MSN
Add to Google

Home
LCD-KEYS OnePort
Digital Downloads
C Course
State Machines
Interrupt Secrets
Schematic Tool
PIC Introduction
PIC Programming
PIC Programmers
PIC Compilers
PIC Projects
Tips & Techniques
Store
My SECRET
Oscilloscopes
Contact Me
About Me
Terms of Use
Search This Site
Freebies
Articles
Problem?-Solution
MicroBlog
Books
Resource Links
Site Map
Your Projects
Video du Jour
Rant/Rave
Privacy Policy

I use and
recommend Firefox
for the best internet
browsing experience. Click below for your
free copy today:

CLICK THE IMAGE:


Note: I find it faster
and easier to use and
it has great plugins.  

It even imports all your current
browser settings!

There's no risk as your existing browser is not affected in any way - you can just choose which one to use.


Find Out How This
Site Works
Like any engineering problem with the right tools it's Easy.
CLICK HERE 

Social Bookmarking
Click & Add:
add to BlinkBlink
add to Del.icio.usDel.icio.us
add to DiggDigg
add to FurlFurl
add to GoogleGoogle
add to SimpySimpy
add to SpurlSpurl
Bookmark at TechnoratiTechnorati
add to YahooY! MyWeb
Find out Why social bookmarking is
Useful For You.

Readers comments

"I wanted to thank
you so so so much
for all the information
you have provided in
your site it's

SUPERB and FANTASTIC."


- Ranish Pottath


"This site really is
the best and my favorite.
I find here many useful
projects and tips."

- Milan

bursach<at>gmail.com

Learn PIC C Now
Wondering how to program your next project using C and need a great start?


"Awesome site,
very, very easy and nice
to navigate!"


- Matt
matt_tr<at>
wolf359.cjb.net


"I am a newbie to PIC
and I wanted to say
 how great your
site has been for me."


- Dave

de_scott<at>bellsouth.net

Learn Microcontrollers
"Interested in
Microcontrollers?"


Sign up for The
Free 7 day guide:

FREE GUIDE : CLICK HERE

"Your site is a great
and perfect work.
congratulations."


- Suresh

integratredinfosys<at>
yahoo.com

"I couldn't find the correct
words to define
yourweb site.

Very useful, uncovered,
honest and clear.

Thanks so much for
your time and works.
Regards."


- Anon





Beginners guide to the PIC Microcontroller

Project Update:

"Measuring Analogue Voltages

Without An ADC"


FREE )

Warning: This project could be Removed at
any time and will NOT be available indefinitely.
To avoid disappointment get it Now.


Remember this is a project with full description and fully debugged C Source code - and it's not available from the main website.

You can only get it through this newsletter.


To get exclusive access enter your
Name and Primary email Now:


Primary Email
First Name

Don't worry -- your e-mail address is totally secure.
I promise to use it only to send you MicroZine
Note: Look through the back issues for your
No-ADC method).


P.S. The newsletter also has essential information for you as well.

More Resources...

Part 2 : 

I/O Ports - using microcontrollers to communicate with the 'real' world.

A microcontroller is not much use if you can't control or measure real-world-signals and you do this using an I/O port.

An I/O port is usually as wide as the CPU part of the microcontroller and for mid range PIC is 8 bits wide.

Each port is usually labeled as PORT followed by a capital letter starting at A.  So the first port is PORTA and the  second is PORTB etc.

Common Port Functions

Each port has a basic functionality that is the same whichever port you use and this is digital I/O.

Each pin of the port corresponds to a pin on the microcontroller which you can set to either digital input or digital output.  

Digital input

So for each port pin set as digital input:

Any voltage below 0.8V is read as logic zero.
any voltage above 2.0V is read as logic one.

Note: This is for a 5V or 3V system (check the data sheet for exact levels when using other power supply voltages).

Digital output

For digital output the following is true (when not loaded)

logic zero output : output voltage <= 0.6V
logic one output  : output voltage >= Vsupply - 0.7V

Note: The actual output voltage depends on the loading at the pin - if a high current is drawn the the output voltage will be lower (I/O pins can sink/source up to 25mA)

Specialized PORTs

Since devices have a small number of pins compared to the number of peripherals in the device each pin is usually multi functional.  You can either use it in its basic digital I/O mode or you can use one of its shared functions.  

Shared functions from internal modules have fixed positions on the device i.e. a USART receive pin in a 16F877 is on pin 26 - this pin is one of the following:

* PORTC bit 7 (RC7) - Digital I/O.
* USART Rx - RS232 Receiver input.
* DT - Data input: synchronous reception.

So you have to decide what you want to use the pin function to be before you wire up the circuit!

Project Update:

"Measuring Analogue Voltages

Without An ADC"


FREE )

Warning: This project could be Removed at
any time and will NOT be available indefinitely.
To avoid disappointment get it Now.


Remember this is a project with full description and fully debugged C Source code - and it's not available from the main website.

You can only get it through this newsletter.


To get exclusive access enter your
Name and Primary email Now:


Primary Email
First Name

Don't worry -- your e-mail address is totally secure.
I promise to use it only to send you MicroZine
Note: Look through the back issues for your
No-ADC method).


P.S. The newsletter also has essential information for you as well.

More Resources...

Analogue input

A common feature of the modern PIC microcontrollers is a built in 10 bit ADC - you can find this in the following devices (as well as many others):

* 12F675
* 16F88
* 16F877(A)

This internal peripheral lets you read an analogue input (as long as it is within the range of the microcontroller power supply) and not only that - it has a multiplexer that lets you read analogue voltages from different pins.

Note: The exact pins that are allowed for reading analogue voltages are device specific so you need to read the data sheet to find out that information.

One of the device I find amazing is the 8 pin 12F675 - it has a full 10bit adc built into it, multiplexed to four pins, so you can make it into a 4 channel volt meter.  Or measure the output of an LM35 temperature sensor.

Note: With suitable opamp preconditioning circuitry you can extend the range of the voltage input.

Using the ADC

With a high level language such as 'C' reading the ADC is a trivial task as all the hard work is done for you: Here is the code to read an ADC using the MikroC compiler:

val = ADC_Read(0);

This reads a value from ADC input zero - and that's all the code you need to know about! - no register setup - no data sheet - totally easy.

Next time...

... Internal timers.

Project Update:

"Measuring Analogue Voltages

Without An ADC"


FREE )

Warning: This project could be Removed at
any time and will NOT be available indefinitely.
To avoid disappointment get it Now.


Remember this is a project with full description and fully debugged C Source code - and it's not available from the main website.

You can only get it through this newsletter.


To get exclusive access enter your
Name and Primary email Now:


Primary Email
First Name

Don't worry -- your e-mail address is totally secure.
I promise to use it only to send you MicroZine
Note: Look through the back issues for your
No-ADC method).


P.S. The newsletter also has essential information for you as well.

More Resources...




Don't forget to Sign Up for your

Microcontroller Newsletter

With "Essential tips and techniques",

..."New Site Info" and more...

Including a free project :

How to drive an LCD and 12key keypad using "Only One 8 Bit Port" with no interface logic!...

(Works for any microcontroller)

This costs you : Nothing...
Just fill out the form below and you'll get full C source code and project schematic and description.



Email

Name

Then

Don't worry -- your e-mail address is totally secure.
I promise to use it only to send you MicroZine.
Google
 
  Best Microcontroller projects.