Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 9th June 2008, 09:18 AM   (permalink)
Default Which PIC to choose for newbie project

Hi

I suppose such questions have been posed upteen times but I guess a newbie like myself, searching thru the internet, get more confused than enlightened as I try to consolidate the answers for different sub-component. So I guess I might as well asked in one place. Thanks for your patience!

I am trying to build a system that involves a PIC microcontroller. Am trying to determine which one to choose. My requirements :

1) a LM75 temperature sensor - how many pins needed on PIC
2) 2 x 16 or 24 LCD display - 7 pins on PIC?
3) a photocell - how many pins needed on PIC
4) a speaker for simple beeps - how many pins
5) a 4x4 matrix keypad - how many pins
6) clock to tell time - "
7) USB port for upload/download to PC - "
8) RS232 port to send 5V signal to another relay device (??) - "
9) battery operated for normal usage


Based on the above, how many ports on a PIC would be needed? Any recommendations on the type of PIC (16F & 18F??) needed?

Many thanks!
Urahara is online now  
Old 9th June 2008, 09:38 AM   (permalink)
Default

You need at least 28 pin package unless you do a compact design under a 18 pin PIC.

The PIC must have following modules to meet your requirements.
AD/USART/TMRX etc...........

From PIC 16F series 16F87X,16F88X or in 18F series PIC18F45XX (+USB)....
__________________
Gayan

My Website
http://gsmicro.blogspot.com/

Last edited by Gayan Soyza; 9th June 2008 at 09:48 AM.
Gayan Soyza is offline  
Old 9th June 2008, 01:36 PM   (permalink)
Default

Quote:
Originally Posted by Gayan Soyza View Post
You need at least 28 pin package unless you do a compact design under a 18 pin PIC.

The PIC must have following modules to meet your requirements.
AD/USART/TMRX etc...........

From PIC 16F series 16F87X,16F88X or in 18F series PIC18F45XX (+USB)....
hi,
I would go with the 18FXXXX 40 pin series, if you really want USB.

It may be an overkill on the number of available pins, but you do have the option for expansion.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 10th June 2008, 09:57 AM   (permalink)
Default

Quote:
1) a LM75 temperature sensor - LM35DZ, analogue output, 1 pin..
2) 2 x 16 or 24 LCD display - 6 pins
3) a photocell - 1 pin
4) a speaker for simple beeps - buzzer? 1 pin
5) a 4x4 matrix keypad - 8 pins
6) clock to tell time - built into program - no pins, use a 1307 - 2 pins
7) USB port for upload/download to PC - 2 pins
8) RS232 port to send 5V signal to another relay device (??) - USART? 1 pin
Probably the 18F4550 would do you just fine, and it gives you some headway for additional pins if required...
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net

Last edited by gramo; 10th June 2008 at 09:57 AM.
gramo is offline  
Old 10th June 2008, 01:07 PM   (permalink)
Default

Quote:
Originally Posted by gramo View Post
Probably the 18F4550 would do you just fine, and it gives you some headway for additional pins if required...
That would be a fine choice, just be warned USB is not exactly beginners stuff. You'll need either C18 or Swordfish BASIC (the SE version does not support USB but the commercial version does)
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 10th June 2008, 01:35 PM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics View Post
That would be a fine choice, just be warned USB is not exactly beginners stuff. You'll need either C18 or Swordfish BASIC (the SE version does not support USB but the commercial version does)
hi Bill,
For your memory database, Oshonsoft Simulator 18F4550 has USB support, its an addon option to the standard 18Fxxxx simulator, reasonably priced.

Regards
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 10th June 2008, 01:49 PM   (permalink)
Default

A little off topic, can you load the .hex files into the simulator?
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is offline  
Old 10th June 2008, 01:58 PM   (permalink)
Default

Nevermind.. just reading through the costs of the program, $65 for the compiler which requires the simulator license of $55.. thats pretty hefty Is that in euro too?

I think I'll stick to the SF HID Software that it creates for each USB program


Urahara, take a look in the Swordfish help file under USB - this is not a good place to start for beginners with micro controllers, but none the less you have to have something to inspire too

A better newbie project would be to program your first PIC! This might help?
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net

Last edited by gramo; 10th June 2008 at 02:00 PM.
gramo is offline  
Old 10th June 2008, 02:05 PM   (permalink)
Default

Quote:
Originally Posted by ericgibbs View Post
hi Bill,
For your memory database, Oshonsoft Simulator 18F4550 has USB support, its an addon option to the standard 18Fxxxx simulator, reasonably priced.

Regards
IMO the OshonSoft simulator (and your Junebug emulator) are top notch. I can't say I'm a fan of OshonSofts BASIC or Assembler. It's a good BASIC but Swordfish is a great BASIC.

Apparently they're working on debug support for Swordfish. Personally I found a quick fix in just sending debug data through the UART much like the old BASIC Stamp.

Quote:
A little off topic, can you load the .hex files into the simulator?
Yes, that's the only way I've found but it's not so handy as you can't compare your source code to the assembled code.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 10th June 2008 at 02:08 PM.
blueroomelectronics is offline  
Old 10th June 2008, 02:24 PM   (permalink)
Default

Quote:
Originally Posted by gramo View Post
Nevermind.. just reading through the costs of the program, $65 for the compiler which requires the simulator license of $55.. thats pretty hefty Is that in euro too?
Hi Gramo,

The 18Fxxxx for personal use is Euro29 and the USB add on is Euro49.. [ £23GBP and £38GBP as per todays exchange]

You can buy bundles for the complete set of Sims, at a discount.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 10th June 2008 at 02:28 PM.
ericgibbs is online now  
Old 10th June 2008, 02:49 PM   (permalink)
Default

Thanks Eric,

It does look nice, downloading some trail software now
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is offline  
Old 10th June 2008, 03:25 PM   (permalink)
Default

Quote:
Originally Posted by gramo View Post
Thanks Eric,

It does look nice, downloading some trail software now
Hi Gramo aka Spency,
When you try the 18F, download Bills JPUG June Issue,from the BlueRoomElectronics site, try the Junebug Tutor 18F1320 Simulator for the Oshonsoft.

Regards
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 10th June 2008, 08:38 PM   (permalink)
Default

Hi All

Thks for the responses! Will post further queries if I need more help!

Rgds
Urahara is online now  
Old 25th June 2008, 06:58 AM   (permalink)
Default

Some more questions :

For my project, I would like to have to hv the capability for my PC to download data with a pre-defined format to the EEPROM (say a 24CXX module). The PIC would then pick up the data and perform the necessary operation such as displaying the data, apply a mathematical formula against it, etc.

The 'problem' with present PCs is that they only hv USB ports. My notebook has 3xUSB ports with no RS232 port (didnt notice that when i bought the notebook, assuming that all PCs hv RS232 ports and mistook the video port for one!! ).

I hv come across drivers that simulates a USB port as a COM port. Is this a simpler way to transfer data from PC to the 24CXX? So to connect the PC to the PIC, does it mean then that I am now restricted to the 18Fxxxx that comes with USB? Or is there a way to still use the 16Fs but how do I connect it to the PC that only has USB ports? Putting things in context, is it still better to go 18F or 16F?

Thks!
Urahara is online now  
Old 25th June 2008, 07:09 AM   (permalink)
Default

You can use USB to Serial cable I used that cable for many projects of mine & it works fine.
__________________
Gayan

My Website
http://gsmicro.blogspot.com/
Gayan Soyza is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Newbie Project Question XxSFHxCxX Electronic Projects Design/Ideas/Reviews 8 8th July 2004 07:58 AM
Newbie Project - any help please... elgeordio Electronic Projects Design/Ideas/Reviews 1 6th July 2004 11:38 AM
newbie project-please help!!!!! elgeordio Electronic Projects Design/Ideas/Reviews 2 30th June 2004 07:45 PM
Newbie need project help.. Marcus_uk General Electronics Chat 8 3rd November 2003 03:24 PM
newbie with a new project L0D|Mr_B Electronic Projects Design/Ideas/Reviews 3 15th October 2003 09:05 PM



All times are GMT. The time now is 09:22 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker