SEROUT not LCDOUT ?
greenglue
Posts: 22
Hi!
I have a OLED display from another microcontroller and all is working fine, but is there a way to clear the screen with SEROUT? It is connecting to my BS2 with 1 wire (on pin 0) and the ground and 5V. Also, why wouldn't I be able to use LCDOUT on the BS2, it says it needs at least a BS2p?
Thanks!
Michael
I have a OLED display from another microcontroller and all is working fine, but is there a way to clear the screen with SEROUT? It is connecting to my BS2 with 1 wire (on pin 0) and the ground and 5V. Also, why wouldn't I be able to use LCDOUT on the BS2, it says it needs at least a BS2p?
Thanks!
Michael
Comments
If so, that is a serial device not a standard Hitachi 44780 parallel LCD. The BASIC Stamp LCDOUT command is for use with parallel displays.
You need to use serout with a serial LCD and various serial LCD displays have different command sets.
The AXE133 uses an ascii 254 followed by a an ascii 1 and a 30 millisecond pause - see page 3 http://www.picaxe.com/docs/axe133.pdf
Yes! It is the PICAXE AXE133Y OLED! How did you know?! Anyways, I type this code into my editor and upload it to the BS2, but, no success: any idea why?
Thanks!
Michael
Because I am a member of the PICAXE forum also.
The test code in the AXE133Y manual is
The N2400 in the PICAXE code means inverted 2400 baud and the16780 in the BS2 code also is correct for inverted 2400 baud.
Maybe you need to insert a PAUSE 500 like the example. I that doesn't try 396 for True serial rather than inverted...
I've tried with both baud rates...
If you program the 18M2 you are overlaying the program code used to drive the LCD!! Did they provide you with the code orginally loaded to the 18M2?
Do you have the original code which was loaded onto the PICAXE when you received it?
What BS2 board are you using? (e.g Board of Education, Carrier Board, HomeWork Board, Professional Development board. etc).
It doesn't even work wehen I connect it to direst power, not through the Board of Education...
So you have the display V+ and ground connected to the Board of Education 5V+ and ground and the display "IN" wire connected to pin 0 on the BS2 - right?
If so, I don't know what else to try. Did you ever test the display with a serial connection to second PICAXE chip (not the 18M2 on the display board)?
What did you mean you connected it to direct power - batteries (nothing greater that 5 volts I hope)
If you hooked it up to the Board of Education VIN connection instead of the 5V, you might have burned it out (the display and/or 18M2).
I have several serial LCD modules - they all use control codes to clear the screen, control and place the cursor, etc, etc.
I like NewHaven displays but be careful - some "serial" displays are SPI not RS232.
Not sure where you bought your AXE133Y but PHANDERSON http://www.phanderson.com/picaxe/ sells them.
Do you know if this screen comes with some sort of backpack like on the 133Y? http://www.parallax.com/StoreSearchResults/tabid/768/List/0/SortField/4/ProductID/52/Default.aspx
Just go to that link and scroll down to find the docs link...
Looks like I will be ordering a couple of those! Especilly since they have a backpack, with a peizo!!!