PDA

View Full Version : Pretty cool display and development board PIC_LCD3310



ScaleRobotics
- 21st March 2009, 03:49
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.

http://www.picbasic.co.uk/forum/attachment.php?attachmentid=3263&d=1237607147http://www.picbasic.co.uk/forum/attachment.php?attachmentid=3262&d=1237607129

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.

ScaleRobotics
- 24th March 2009, 15:49
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:


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

ScaleRobotics
- 17th April 2010, 08:58
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:



@ 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/showthread.php?p=73456#post73456
http://www.picbasic.co.uk/forum/showthread.php?p=73728#post73728

Include file:
http://www.picbasic.co.uk/forum/attachment.php?attachmentid=3382&stc=1&d=1271491258

Art
- 17th April 2010, 09:09
Hi,
Looks very tidy. Have you been able to use the SDcard and other peripherals?
Does any demo software come with the unit?

ScaleRobotics
- 17th April 2010, 09:29
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


http://www.youtube.com/v/PFVfjWyK9vs

Art
- 17th April 2010, 10:05
Cool, I can see a tilt controlled car racing game as long as you
can set a pixel anywhere on the screen.