PIC and LCD Recomendations


Closed Thread
Results 1 to 14 of 14
  1. #1
    Join Date
    Dec 2010
    Location
    Michigan
    Posts
    31

    Default PIC and LCD Recomendations

    I need a pic to do the following:
    1) Drive a 2 line LCD.
    2) Be able to use the data stream from an optical encoder (from a mouse)
    3) Have at least 2 outputs that can via a transistor turn a relay on and off.
    4) Use a separate input to Zero the display.
    5) Be able to show a negative number.
    6) Be able to remember the pulse count when powered off
    7) be easy to program.

    I understand the basics of a pic but not sure how to use it with a LCD display.

    Thanks
    Bob

    See also :[URL="http://www.picbasic.co.uk/forum/showthread.php?t=14075&p=97121"[/URL]

  2. #2


    Did you find this post helpful? Yes | No

    Default

    i'll give you the easy answer...

    16F877a will do everything you want and things you havn't realised that can be done...

    Later on when you start doing lots of maths you can switch to the almost pin compatible 18F4550...

    Thats the easy answer to your question because i know the two chips...
    LCD connections... well you need to look it up because their is lots of info on it

  3. #3
    Join Date
    Dec 2010
    Location
    Michigan
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    I am looking at some of the basic development boards. TOO many to try and choose from.

    Bob

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Here are a few options from least expensive, to most expensive.

    Name:  PIC-MT-USB.jpg
Views: 1726
Size:  31.3 KB
    http://www.sparkfun.com/products/27 $36.95
    • ICSP/ICD connector for programming with PIC-MCP-USB, PIC-MCP or PIC-PG1, PIC-PG2, PIC-PG3, PIC-PG4 and debugging with PIC-ICD2, PIC-ICD2-POCKET, PIC-ICD2-TINY or is PIC16F87X microcontroller is used PIC-ICD1
    • DIL-40 for PIC microcontroller
    • LCD 16x2 alphanumeric display with backlight
    • 2 Buttons
    • bi-color LED
    • Power supply taken from USB port
    • Virtual USB-RS232 port
    • 20 Mhz crystal
    • FR-4, 1.5 mm (0,062"), green soldermask, white silkscreen component print
    • Dimensions 95x36 mm (3,7x1,4")
    • Four mounting holes
    • Extension headers for PIC unused ports

    Name:  PIC-MT.jpg
Views: 1506
Size:  32.9 KB
    http://www.sparkfun.com/products/26 $38.95
    • ICSP/ICD connector for programming with PIC-MCP-USB, PIC-MCP or PIC-PG1, PIC-PG2, PIC-PG3, PIC-PG4 and debugging with PIC-ICD2, PIC-ICD2-POCKET, PIC-ICD2-TINY(* for the PICs with ICD support) for PIC16F87X there is low cost PIC-ICD1
    • Dallas touch button port
    • Frequency input
    • 0-10V and 0-5V ADC input with buffer OAMP
    • RS232 DB9 female connector
    • RS232 interface circuit with Tx, Rx signals
    • RS232 TTL levels output connector
    • Voltage regulator +5V, 78L05 and filtering capacitors
    • Quartz crystall oscilator circuit 20Mhz
    • DIL28 microcontroller socket
    • Relay with 10A/250VAC contacts
    • Buzzer
    • Status LED on RB4
    • Four mounting holes
    • Power plug-in jack
    • FR-4, 1.5 mm (0,062"), green soldermask, white silkscreen component print
    • Dimensions 120x36 mm (4,7x1,4")

    Name:  PIC-LCD3310-2.jpg
Views: 1603
Size:  66.7 KB
    http://www.sparkfun.com/products/8855 $50.95 (probably shouldn't be in here, as you can't change the pic chip, but I like it.)
    • MCU: PIC18F67J50 with 128KB Flash memory, 3904B SRAM, 10-bit 8-channel ADC module, PWM, SPI, I2C, EUSART, 2 Analog comparators and 8/16-bit Timer/Counters
    • ICSP connector for PIC-ICD2/PIC-ICD2-POCKET debugger/programmer
    • LCD NOKIA 3310 black/white 84x48 pixels
    • Two status LEDs
    • Joystick with LEFT, RIGHT, UP, DOWN and CENTER action
    • mini USB connector
    • SD/MMC card connector
    • MMA7260 accelerometer
    • Extension connectors for all PIC ports
    • +(4.5–6.0) battery connector
    • PCB: FR-4, 1.5 mm (0,062''), soldermask, silkscreen component print
    • Dimensions 65x65 mm (2.56 x 2.56")

    Name:  easypic6_550_1.jpg
Views: 1462
Size:  191.5 KB
    http://www.mikroe.com/eng/products/v...opment-system/ $139.00 without blue LCD displays -- More info: http://www.mikroe.com/eng/downloads/...ticle_v100.pdf
    Sure it's huge, but it does 10F, 8,14,18,28 and 40 pin chips (as long as they are 5 volt varieties)

    Name:  LABX1A_2004.jpg
Views: 1494
Size:  21.5 KB
    http://store.melabs.com/prod/boards/LABX1A.html
    $199.95

    • Inputs: 16 switch keypad, 3 potentiometers, IR, temperature, real time clock
    • Outputs: LED bargraph, 2x20 LCD module, speaker, DTMF, PWM, IR, 2 RC servo connectors
    • I/O: RS232 interface, RS485 interface
    • Serial EEPROM: I2C, SPI, Microwire
    • Misc: Reset button, 5-volt regulator, 40-pin ZIF socket for PICmicro MCU (device optional)
    • Jumper selectable oscillator from 4MHz to 20MHz
    • In-circuit programming/debug connectors
    • Prototyping area for additional circuits
    • Available assembled, as a kit or as a bare PCB
    • Size is 5.5" x 5.6"
    Last edited by ScaleRobotics; - 19th December 2010 at 17:32.
    http://www.scalerobotics.com

  5. #5
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    MELabs makes the LAB-X series of boards and the Epic programmers themselves, and they gave me excellent customer service with mine (almost 10 yrs ago). When I thought I had a hardware issue, I called them, and within a minute or two I was up and running with a simple pebkam fix. I would definitely recommend them. Buy it from rentron.com and you'll be supporting a great contributor to the forum, as well as get yourself a second great resource. He offers discount bundles. (At least, he used to.)

    MikroE boards are huge and lower priced, if that's what you want.

  6. #6
    Join Date
    Dec 2010
    Location
    Michigan
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    I went with a P16F1827
    Has enough pins to do what I want. I also have MPLAB and a PICKIT3.
    Now to just figure out a simple code to make the 2x16 LCD say "Hello" in 4 bit mode.

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Follow the example in the manual. Just be sure to turn of any analog functions on the pins you use.
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Dec 2010
    Location
    Michigan
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    I managed to write/copy a sample Basic code using Mikrobasic pro. But I think I also need a bootloader which I am still searching for.
    I have a USB UART that my computer and the program sees but it does not see the pic.
    Not sure if I need a 5th wire running from RST to MCLR on the Pic.

    Such fun learning a new endeavor.

  9. #9
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Mikrobasic pro
    Dave
    Always wear safety glasses while programming.

  10. #10
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

  11. #11
    Join Date
    Dec 2010
    Location
    Michigan
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    Most that I have found DO NOT support the 16F1827. May have to find a more common chip.
    Better yet, guess I need to learn C

  12. #12
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Curious.
    Why do you want a bootloader? I know they are handy but if you have a good programmer.......
    Dave
    Always wear safety glasses while programming.

  13. #13
    Join Date
    Dec 2010
    Location
    Michigan
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    Finally figured out that I don't.
    Wrote/copied/modified some basic code to just display text on the LCD. Kept getting different errors every time I tried to compile it. Was going to take the HEX file and use the PICKIT3 to program it. Guess I need to learn C since most examples are written in it.

    I will figure this out is a day or month or so

  14. #14
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    There are tons of examples here if you are using Pic Basic or Pic basic Pro.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts