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?
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
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)
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.
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! **broken link removed** might help?
hi Bill,
For your memory database, Oshonsoft Simulator 18F4550 has USB support, its an addon option to the standard 18Fxxxx simulator, reasonably priced.
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.
A little off topic, can you load the .hex files into the simulator?
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 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.
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?
Did a quick google for info and price of such cables. For the price it commands, and the fact that I am starting from scratch, think it might be a good idea to go USB instead.
Guess my questions then are :
1) can I use a 16F and still hv USB phyiscal connectivity (thru some external circuit?).
2) even though I use USB, the best (ie simplest) way to tx data from PC to PIC is to simulate the USB port as a RS232? Or since we are on USB, we go USB's way of doing things (if that question means anything!)?
3) From an implementation perspective (cost, coding, etc), better to take the 18F route?
Did a quick google for info and price of such cables. For the price it commands, and the fact that I am starting from scratch, think it might be a good idea to go USB instead.