Pretty cool display and development board PIC_LCD3310


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530

    Default Pretty cool display and development board PIC_LCD3310

    I ran across the Olimex PIC_LCD3310 some time ago, but since the PIC18F67J50 was a bit greek to me, and had more pins than I could solder, I did not read much more. Later I was searching for PIC18 chips that had USB, and two serial ports, the PIC18f67j50 and a couple other J devices kept coming up.



    I searched for the board a couple different ways on the forum, but I don't see anyone talking about it. It is a pretty good deal for $50.95 at sparkfun.com. (I am not affiliated with them in any way). Some graphic LCD's alone cost more than this! The board has:

    Description: PIC-LCD3310 is development board with a PIC18F67J50, NOKIA 3310 BW 84x48 pixels LCD, joystick, and 3 axis accelerometer. The board has a SD-MMC connector and all PIC ports available on two extension connectors. It's perfect for motion datalogging and analysis. The USB port allows for logged data to be easily transferred to PC.

    Features:

    * 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 3 axis accelerometer
    * Extension connectors for all PIC ports
    * +4.5–6.0V battery connector
    * PCB: FR-4, 1.5 mm (0,062''), soldermask, silkscreen component print

    I bought a couple to program. Their pins stick out the bottom for easy breadboarding, or making your own pcb adapter.
    Attached Images Attached Images   
    Attached Files Attached Files
    Last edited by ScaleRobotics; - 18th April 2011 at 17:15.

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


    Did you find this post helpful? Yes | No

    Default Hello World! example for Olimex board

    Here is an include file from the forum that has been modified/updated to work with the Olimex PIC_LCD3310 PIC18F67J50 board. Also included an example.

    Here is the LCD_3310ex.txt:
    Code:
    DEFINE OSC 48
    
    include "modedefs.bas"
    include "LCD_3310.pbp"
    start:
    pause 100
    
    gosub Lcd_Init                     'Initialize LCD
    gosub Lcd_Clear                     'Clear contents of screen
    pause 50
    
    PosX = 30                          'position 30 of 84 in the x direction
    PosY = 1                           'row 1 (of 0-5)
    gosub Lcd_GotoXY
    Lcd_Data = "H"
    gosub Lcd_SendChar
    Lcd_Data = "E"
    gosub Lcd_SendChar
    Lcd_Data = "L"
    gosub Lcd_SendChar
    Lcd_Data = "L"
    gosub Lcd_SendChar
    Lcd_Data = "O"
    gosub Lcd_SendChar
    
    
    PosX = 30                        'position 30 of 84 in the x direction
    PosY = 4                         'row 4 (of 0 to 5)
    gosub Lcd_GotoXY
    Lcd_Data = "W"
    gosub Lcd_SendChar
    Lcd_Data = "O"
    gosub Lcd_SendChar
    Lcd_Data = "R"
    gosub Lcd_SendChar
    Lcd_Data = "L"
    gosub Lcd_SendChar
    Lcd_Data = "D"
    gosub Lcd_SendChar
    Lcd_Data = "!"
    gosub Lcd_SendChar
    
    pause 5000
    
    end
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by ScaleRobotics; - 24th March 2009 at 17:09.

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


    Did you find this post helpful? Yes | No

    Default

    This include file makes it a little easier to print to these 3310 displays. Otherwise a lot of code is required for printing each character. This simplifies printing text, as well as variables.
    To use printstr and printvar:

    Code:
    @ PrintStr 0,0, "If I write more than one line, it will scroll to the next one, and next."
    
    @ PrintVar 0,0, _anyvariablehere
    A few more details in these two posts:
    http://www.picbasic.co.uk/forum/show...3456#post73456
    http://www.picbasic.co.uk/forum/show...3728#post73728

    Include file:
    http://www.picbasic.co.uk/forum/atta...1&d=1271491258
    Last edited by ScaleRobotics; - 17th April 2010 at 10:08.

  4. #4
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    Hi,
    Looks very tidy. Have you been able to use the SDcard and other peripherals?
    Does any demo software come with the unit?

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


    Did you find this post helpful? Yes | No

    Default

    It comes with some C code, which has been handy to take a look at some of the way they did things. The manufacturer's site is here: http://olimex.com/dev/pic-lcd3310.html

    I have not gotten around to the SD-CARD yet, but that is on my wish list. I did play around with the tilt sensor. Art, I have really enjoyed your youtube examples, (scrolling leds, and the odometer lcd rolls!) so I have one for you, only mine is too long, and less entertaining.

    Here is the tilt sensor thread: http://www.picbasic.co.uk/forum/showthread.php?t=10880

    Last edited by ScaleRobotics; - 18th April 2011 at 17:18.

  6. #6
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    Cool, I can see a tilt controlled car racing game as long as you
    can set a pixel anywhere on the screen.

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