Interface BOE with 4DSystems Display
Pridbor
Posts: 30
I'm trying to put a system together using the BOE as a data acquisition system, just a few parameters,
and want to display values of these on one of 4dSystems LCD displays. I have seen that Parallax also offers these
displays, and was wondering if there was somebody who could give me a few hints how best to interface
with one of these.
If possible then I would like to feed 2 displays, serial multi-drop of sorts, and only forward, no duplex communication
with the display
Thanks in advance
Preben
and want to display values of these on one of 4dSystems LCD displays. I have seen that Parallax also offers these
displays, and was wondering if there was somebody who could give me a few hints how best to interface
with one of these.
If possible then I would like to feed 2 displays, serial multi-drop of sorts, and only forward, no duplex communication
with the display
Thanks in advance
Preben
Comments
I think some displays are use 3.3V logic so you would want to make sure the 5V TTL signal from the BS2 wouldn't be a problem (I doubt it would).
I also don't see a problem with using two displays.
I have looked through the misc downloadable docs but can't seem to find an example for
a simple RS 232 like interface
Thanks
Thanks
There is a Propeller Board of Education but in general the words "Board of Education" or "BOE" as in "BOE-Bot" refers to the Basic Stamp version.
IMO, the Propeller version is way cooler than the BS2 version.
The main thing to worry about with the display is if you're receiving a signal from the display and the display uses 5V logic, then you'd need to use current limiting resistors on the receiving I/O pin.
IMO, having a PropBOE makes this a much easier task.
Which display did you want to use? (A link would help.)
The Display I have chosen is this one: uLCD-32 PTU
Somehow I couldn't get the ctrl C/V to work here for a direct link (it's too long for me to manually enter :-)
My plan is to only feed the display data as a dumb terminal, but if I was to change my mind later, could you please
point me to a diagram of what you mea. E.g is it a voltage divider or a serial resistor, my electronics knowledge
is a bit rusty
I should have added that it's for my car, older Citroen, where the old LCD displays are getting very unreliable
due to their elastomeric connectors, so I can't read them half of the time :-(
This project is actually more just for the fun of it to keep my mind a bit active and restore/upgrade the car a bit,
as I'm retired and mostly do my stone sculpting and on and off fiddle with he car.
I have gone through a lot of the Spin examples, and a number of C programs as well, and I am trying to get
the C "libraries to work" get an error msg when hitting the include simple libraries, or something like that.
But that's tonight's problem t be solved :-)
Thanks for your insight d help!
Preben
Yes, it is/was a very early uC but it's still very popular (despite my best attempts of converting people over to the Propeller).
There are very many more Basic Stamp versions of the Board of Education (BOE) than there are Propeller Board of Education devices in the world (my guess is the BS2 version still out sells the Prop version).
The names "Board of Education" (BOE) and "Propeller Board of Education" (PropBOE) are comparable to "sugar" and "brown sugar". If one says "sugar" without "brown" it's assumed to be white sugar. The same goes for the "Board of Education". If "Board of Education" is used without the word "Propeller" or "Prop" it's assumed to be the Basic Stamp version.
Yes and no. It can be very helpful when communicating on the forum. But it's not a big deal.
It just now noticed this thread is in the Propeller forum. That should have been a clue. (I check the forums with the "What's New" button and I don't always pay attention to which forum the post is in.)
I found this display at SparkFun (Parallax has one too) which I'm guessing is about the same as the one you're thinking of purchasing?
It looks like the display uses 5V logic so a wire from the Propeller I/O pin (tx) would be connected directly to the display's rx pin. If/when you want to receive information back from the display, you want to make sure there is a resistor between the display and the Propeller's receive pin. This series resistor should be at least 3K. I generally use 10K resistors when receiving 5V signals. A Propeller input pin can tolerate 5V but only at very low currents. The clamping diodes can be damaged if more than 500uA (microamps) pass through them.
I just realized I linked to a touchscreen display. If you were to use a touchscreen version then you would need to be able to receive data to know where the screen had been touched.
I didn't see a non-touchscreen version of the display (though I didn't look very hard) so I don't know what the price difference is. It might be worth having a touchscreen even if you don't use now. It could be added once you're ready to add that feature.
I hope you take pictures of your project to show us how you end up using the display.
uOLED-128-G2:
http://obex.parallax.com/object/718
Video DEMO:
http://www.youtube.com/watch?v=8Ou2VjV_3IE
uLCD(SK)-32PTU Touch Screen
http://obex.parallax.com/object/722
Video DEMO:
http://www.youtube.com/watch?v=gTWvkO_BC3E
Setup Video instructions for Serial configuration:
http://www.youtube.com/watch?v=ZIlAoABmQ0w
I just use Full Duplex Serial object to communicate with the display. I wrote my own driver object but I see Beau has submitted one to the OBEX that should work fine. You could get by with only sending data to the display however you won't be able to monitor the return messages from the display to indicate any error messages. Some commands take longer than others and if you just send a bunch of data to the display willy nilly without regard to timing you'll tear your hair out wondering why it doesn't show up on the screen. Also if you are usiing a touch version and want to get the "touch" message back from the display you would need a receive seial channel for that.
You can run multiple instances of FDS and send to different displays. Shouldn't be any problem.
Hope this helps.
I read through all of the references and watched the videos and I begin to see a few things that I need to consider.
First of all I did buy the Displays, and several weeks before I purchased the PropBOE, and had I researched well before
ordering, I would have noticed that I could have got the same display from Parallax. I had my eyes on a Oled display and
changed my mind while messing around on the 4Dsystems site. Well there's always another time.
And yes I did end up picking a Display with touch and you are all right in telling me that I will need some feedback. I will dwell a bit on what exactly the role of each of the components will be. I was thinking of either multi-dropping the serial from the Prop to the displays (2) or using the 2 serial interfaces to each a display.
Now where I fail is to find the proper serial interface connection points on my module. I'm under the impression that there are
2 serial interfaces on the module, but I haven't been able to find/figure out the pins for these. I assume that one might be the USB connector? I see all kinds of CLS, RTS etc but no Rx, Tx except at 2 LEDs at the PCI connector.
Thanks again all
Preben
It looks like there's a tx and rx in the bottom row of the 2x5 header.
I think I see "+5V TX RX GND RES".
The Display pins are nicely marked like Duane indicated with the image.
Any of the I/O pins P0 through P15 could be used as TX and RX pins. The pins used to control servos would also probably work P16 the P19 but I think the servo pins use series resistors which can interfere with some serial communication tasks (there was a recent thread about someone having trouble using the servo pins when interfacing with an XBee using a Propeller Activity Board).
I have just found the object which Beau had attached, and I not noticed, and
that is very helpful!
Thank you all for your help, I might be back when I have the Displays in hand :-)
Preben
Now you gents have already answered the question on which pins to use for Rx, Tx, and Res, namely any, but the display program defines some pins which I shall then use.
The question is: Can I safely power the display via the Propeller module? +5V. I assume that the USB and the module have limits as to how much current they can provide?
or do I need an external supply which I then need to have a common ground between the two modules?
Asking to be safe rather than sorry :-)
Preben