PDA

View Full Version : Basic Stamp compatability with the Sparkfun serial backpack



Geekgirl
04-15-2010, 07:11 AM
Hi Team,

Has anyone had experience using the Sparkfun serial backpack to interface 4X20·LCD displays to·basic stamps, or is it just not compatable?

I'd like to use this bright, high contrast,·display:·http://www.newhavendisplay.com/index.php?main_page=product_info&cPath=2_87&products_id=2037

with some stamp projects.· ... hopefully with minimal code modifications.

Any help will be greatly appreciated.


Darlene

Tumbler
04-16-2010, 01:56 AM
What's wrong with this one? http://www.parallax.com/Store/Accessories/Displays/tabid/159/CategoryID/34/List/0/SortField/0/Level/a/ProductID/51/Default.aspx

The one at newhavendisplay is a parallel display, you can find some code to use with a bs2. Or if you want to use the sparkfun backpack: it's compatible.

electrosys
04-16-2010, 03:22 AM
Hello Darlene

Here you can look at the Sparkfun serial backpack PDF.file with all the commands and Sparkfun serial backpack codes:

http://www.sparkfun.com/datasheets/LCD/SerLCD_V2_5.PDF

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
At the end, everything will became Electrons...!

Geekgirl
04-16-2010, 03:41 AM
Tumbler said...
What's wrong with this one? http://www.parallax.com/Store/Accessories/Displays/tabid/159/CategoryID/34/List/0/SortField/0/Level/a/ProductID/51/Default.aspx

The one at newhavendisplay is a parallel display, you can find some code to use with a bs2. Or if you want to use the sparkfun backpack: it's compatible.
Not that there's anything wrong with it, just that it's not as well suited to my application as I think the Newhaven one will be. I have used that display numerous times. It's easy to use and reasonably priced for as easy to use as it is. The integrated·Parallax backpack makes it seemlessly integrate with the basic stamp's serout.

Like most black on green displays, it lacks in brightness and contrast, especially for underwater use, even with backlighting on.

I'm working on the PO2 display /·HUD controller for another rebreather project and wanted to try something besides the usual Parallax black on green·4X20.


Darlene

·

mikediv
04-16-2010, 06:44 AM
Geekgirl very cool can you tell us the details of your project? I was wondering about using the BS2 for some diving circuits I was thinking up but to be honest I really do not have a good way to water proof the boards.

Zoot
04-16-2010, 06:53 AM
Geekgirl -- that display is fully compatible with Stamps, as is any TTL/CMOS serial device with bauds available at or below 38.4khz.

It basically a question of using SEROUT to send the correct commands and display data (at the correct baud and serial parameters) to the device. In this case, their backpack "defaults" to 9600 baud, so that's the baud you'd use in your SEROUT. It looks pretty simple to use -- send some binary/hex commands
to put the cursor where you want, etc., then send ASCII text for actual characters.

e.g.




SEROUT Pin, Baud, Params, [ $0C ] ' turn display on
SEROUT Pin, Baud, Params, [ $01 ] ' clear display
SEROUT Pin, Baud, Params, [ $7C, 128+15 ] ' set at ~half brightness -- brightness value may be 128+0 (dim) through 128+29 (bright)
SEROUT Pin, Baud, Params, [ $80, 64 ] ' set display to cursor position 64 (first character of line 2)
SEROUT Pin, Baud, Params, [ "Hello World!" ] ' send some text




The datasheet discusses these. If you have specific questions after reviewing the sheet, ask the forum....

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST

1uffakind.com/robots/povBitMapBuilder.php (http://1uffakind.com/robots/povBitMapBuilder.php)
1uffakind.com/robots/resistorLadder.php (http://1uffakind.com/robots/resistorLadder.php)

Post Edited (Zoot) : 4/15/2010 11:59:14 PM GMT

Geekgirl
04-16-2010, 05:01 PM
Zoot,
Thanks man, I owe you a beer of your choice.
I'll order·a backpack·and give it a go.

Darlene



Zoot said...
Geekgirl -- that display is fully compatible with Stamps, as is any TTL/CMOS serial device with bauds available at or below 38.4khz.

It basically a question of using SEROUT to send the correct commands and display data (at the correct baud and serial parameters) to the device. In this case, their backpack "defaults" to 9600 baud, so that's the baud you'd use in your SEROUT. It looks pretty simple to use -- send some binary/hex commands
to put the cursor where you want, etc., then send ASCII text for actual characters.

e.g.




SEROUT Pin, Baud, Params, [ $0C ] ' turn display on
SEROUT Pin, Baud, Params, [ $01 ] ' clear display
SEROUT Pin, Baud, Params, [ $7C, 128+15 ] ' set at ~half brightness -- brightness value may be 128+0 (dim) through 128+29 (bright)
SEROUT Pin, Baud, Params, [ $80, 64 ] ' set display to cursor position 64 (first character of line 2)
SEROUT Pin, Baud, Params, [ "Hello World!" ] ' send some text




The datasheet discusses these. If you have specific questions after reviewing the sheet, ask the forum....