Shop OBEX P1 Docs P2 Docs Learn Events
uOLED-96-PROP or µOLED-128-GMD1 — Parallax Forums

uOLED-96-PROP or µOLED-128-GMD1

AJ-9000AJ-9000 Posts: 52
edited 2010-08-10 01:32 in Propeller 1
What I would like to do is use the uOLED-96-PROP to display certain images on it's display determined by the position of a optical encoder disk. One problem I have is I can't program in Spin but I can in Basic and I understand there is a Basic interpiter called FemtoBasic for the PROP.
So Knowing everything what do you recommend for my project? uOLED-96-PROP or the µOLED-128-GMD1 using a BS2PX stamp.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-19 05:50
    Download uOLED-96-Prop Basic (the uOLED-96-PROP specific version of FemtoBasic) from the Object Exchange and read the documentation file. This describes the shapes that the Basic and the uOLED-96-PROP will directly support (lines, rectangles, text, some circles, individual pixels). There's no support for loading images otherwise. Some people have been working on loading images from the uSD card, but that hasn't been added to the Basic.

    If you must have actual images, the only way to do that currently without programming in Spin would be to use a Stamp and the uOLED-128-GMD1.
  • Fred HawkinsFred Hawkins Posts: 997
    edited 2007-12-19 05:54
    -96 has the sd card slot for the storage you will need for the images.
    -96 has a propeller chip and 6 available i/o pins.
    -96 is tiny.
    Spin might take a bit of work, but most of the difficult writing is done (sd card, managing display).
    The question then turns on whether you want to know everything or just get it going.

    -128 will need an sd slot and card added.
    -128 is bigger, but it's still small.
    -128 needs a microprocessor for control.

    Both need to be told how to use the encoder disk. The -96 only has a couple of pins to manage that. So how do you want to handle the encoder?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-19 12:41
    The Basic interpreter would not be fast enough to handle the IR detectors in Basic and it can't do the multiprocessing in Basic. It's easy to add support for something like an encoder, but that would require some coding in Spin.
  • AJ-9000AJ-9000 Posts: 52
    edited 2010-08-09 23:55
    Since I probably wouldn't have the time to develop this I decided to reveal what my project was in case some one might be interested. The idea was to develop a digital measuring caliper that would put emphases simplicity and funtionality including displaying a/b inch fractions instead of decimal inch fractions.

    What I mean by simplicity and funtionality is for example if you wanted to find the right sized wrench for a metric bolt you would select the metric wrench mode, it would then be easier to find because only metric wrench sizes would be shown when you took the measurement.

    The plan was to use a mechanical dial caliper (with dial part removed) and attatch a quadratic encoder to the dial gear that a uOLED-96-PROP would use to determine what stored images to display on the uOLED. The image shown would have both digital and graphic information that would correspond to the actual measurement.
    In the normal inch mode the sizes would be common sizes like 1/16, 5/64, 3/32, 7/64, 1/8, 9/64, 5/32, 11/64, 3/16, 1/4, ect... or if the metric mode was selected then 1.0mm, 1.5mm, 2.0mm, 2.5mm, 3.0mm, ect...would be displayed. For the wrench mode you would have sizes like 1/4, 5/16, 3/8, 7/16, 1/2 ect...in the case of inches.

    Note it might be easier to program the PROP to do all the caculations with results that would be displayed realtime rather then try to store all the images needed in advance I guess.

    Pictures below show examples of how the uOLED would look after taking a measurment;
    #1 shows the measurment is in between 2 & 1/8" and 2 & 9/64"
    #2 shows the measurment is 2 & 9/64"
    #3 shows the measurment is in between 2 & 9/64" and 2 & 5/32"
    When the two verticle blue lines only are shown indicates that the measurment is exact, if the measurment is less, then the red line is only shown, if the measurment is more, then the green line is only shown.
    633 x 338 - 7K
    633 x 338 - 6K
    633 x 338 - 7K
  • TubularTubular Posts: 4,717
    edited 2010-08-10 00:04
    Wow, what a great idea. Did you know you can get vernier calipers that output serial? Even some of the cheapies have a pcb "port" that is revealed when plastic lid slides out.
  • AJ-9000AJ-9000 Posts: 52
    edited 2010-08-10 01:32
    Thankyou, I have a digital caliper that has a serial port but I never thought of using it in a project like this, good idea.
Sign In or Register to comment.