Shop OBEX P1 Docs P2 Docs Learn Events
Robot Face — Parallax Forums

Robot Face

WhitWhit Posts: 4,191
edited 2007-10-19 18:15 in Robotics
Hey Everyone,

I just started a new project. I want to make a robot face using the new uOLED. I will switch between bitmap drawings of a face as relates to what is happening with the robot. Like Chris said when I mentioned this earlier, say the robot bumps into something, it looks startled or it blushes. For my proof of concept project, I am using Sonny's face from iRobot. The bitmaps will be 128 pixels square (screen size). I chose a black background to minimize power usage. I may mount it with a Ping))) above or below so it turns and looks with the Ping))). You could eventually add speech with mouth movement.

Here is a copy of the blank face. I know I want to make one where Sonny winks, and the blush. Other ideas?

attachment.php?attachmentid=49161

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Whit+


"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney

Post Edited (Whit) : 9/8/2007 1:38:14 AM GMT
«1

Comments

  • DgswanerDgswaner Posts: 795
    edited 2007-09-07 13:46
    I think you should add in some random movements or expressions, perhaps if the it sits idle too long it yawns or something. perhaps blinking at random intervals

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
  • WhitWhit Posts: 4,191
    edited 2007-09-07 15:27
    Dgswnaer,

    Great idea!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • Skywalker49Skywalker49 Posts: 172
    edited 2007-09-07 15:32
    Whit,

    will you make some small animations or will it be single bitmaps that you intend to create?
    No idea yet how to "play" animations but should be possible using a Propeller.

    Ed
  • WhitWhit Posts: 4,191
    edited 2007-09-07 16:49
    Skywalker49 said...

    will you make some small animations or will it be single bitmaps that you intend to create?
    Ed,

    I thought single bitmaps and alternate between them to create the illusion of animation. For example to blink, the sequence would be:
    face with both eyes open - face with one eye closed - face with both eyes open.

    That is at least how I planned to start. I may learn some better·tricks as I move along.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • Skywalker49Skywalker49 Posts: 172
    edited 2007-09-07 18:02
    Whit,

    fair enough.
    I suppose you need bitmaps (.bmp) since then there is a 1 to 1 translation between file format and display format.
    Is this right ?
    smile.gif·One more question .. what tool(s) will you use to create and modify the bitmaps ?

    Ed
  • WhitWhit Posts: 4,191
    edited 2007-09-07 22:40
    Skywalker49 said...

    I suppose you need bitmaps (.bmp) since then there is a 1 to 1 translation between file format and display format.
    Is this right ?

    smile.gif·One more question .. what tool(s) will you use to create and modify the bitmaps ?
    I haven't fully read the manual - I just downloaded the pdf. According to the information on the Parallax website, the uOLED can use bitmaps "(which can include user-defined bitmaps, such as logos)." The resolution of the 128 X128 pixels - that is how I decided on the size. I also saw that brighter colors (especially white) draw the most power when displayed.

    I will use a combination of paint and Microsoft Photo Draw, which is just what I have - not that they are the best choices. Testing this out will let me see how it will work. The current face was just downloaded from a photo on the web and I made the background black in paint.

    They're are some good demo programs avaliable for download. I need to understand the connection to my stamp (BOE) and then try some of the programs.

    Edit - I just found that they added a connection diagram on the uOLED page. I think it was added today. Now I'm really excited!

    Then I will try my various faces and see how the tranistion between them works to achieve the "animated" looking effect.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney

    Post Edited (Whit) : 9/7/2007 10:47:39 PM GMT
  • DufferDuffer Posts: 374
    edited 2007-09-08 00:58
    Whit,

    Sounds like you're on your way to having "the face you always wanted"....on your bot at least! smilewinkgrin.gif

    With the newest version of the Graphics Composer (free download from 4D Systems) http://www.4dsystems.com.au/downloads/Graphics_Composer/Ver2.XX/

    and the latest PmmC (personallity update, also free)

    http://www.4dsystems.com.au/downloads/micro-OLED/uOLED-128-GMD1/PmmC/

    You can load nearly any bitmapped format image AND it now supports full-motion video clips (MPEG, AVI and animated GIF).

    Having the latest tools·would give you a lot more options. If you need some help in sorting through the process of loading and displaying images/videos from the uSD card, give me a shout, I'd be more than happy to help.

    Jasc Software, the makers of Paint Shop Pro 8, have an easy to use Animation Shop component that does a really good job for creating/editing animated GIF files.

    Steve


    Post Edited (Duffer) : 9/8/2007 1:13:29 AM GMT
  • WhitWhit Posts: 4,191
    edited 2007-09-08 01:46
    Thanks Steve for the great tips. I will let you know. I still think that eye of yours would look cool on there!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • DufferDuffer Posts: 374
    edited 2007-09-08 03:17
    Whit,

    Or TWO of them on the front. Eyes can be pretty expressive all on their own. wink.gif

    Steve
  • WhitWhit Posts: 4,191
    edited 2007-09-08 03:25
    It's Alive!

    This uOLED is really cool. The demo programs are amazing and the color is brilliant. My only surprise was that when I had the uOLED plugged into the BOE breadboard, the display was upside down. You will see the rigged up connection I made so that I could really watch the screen. Hook up was a breeze and everything worked perfectly the first time (except the upside down part smilewinkgrin.gif ). Now on to figuring out some details. It is hard to get a photo that shows how great and bright this little display is!

    attachment.php?attachmentid=49177



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney

    Post Edited (Whit) : 9/8/2007 3:31:39 AM GMT
    438 x 466 - 20K
  • MarkSMarkS Posts: 342
    edited 2007-09-08 03:57
    I'd like to see a pic of it in the dark.
  • WhitWhit Posts: 4,191
    edited 2007-09-13 11:27
    Mark,

    I tried to get a picture in the dark. It seems the problem is more the close-up focus of my camera. When I get close enough for a good picture, I'm too close to be completely in focus. Please know that the display is very sharp and bright.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • StampNut2StampNut2 Posts: 224
    edited 2007-09-13 12:02
    Whit, Looks good, I have mine but have not done anything with it yet. Are you powering the screen down before you switch it off??. I read that the display lasts longer when powered down prior to switching off.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Never give up when things go wrong.
  • DufferDuffer Posts: 374
    edited 2007-09-14 01:03
    Whit - I had the same "upside-down" problem. It's really only upside-down if you "assume" that the connector should be at the 'bottom", relative to the screen, when plugged directly into the breadboard. BTW - the 160-GMD1 DOES have the connector at the "bottom" of the screen. Several mounting solutions are available to "solve" the problem. One youve already done: Make a cable of whatever length your project dictates and off you go. Another is to make up a small carrier board and use a combination of straight and righ-angle headers to position the display for optimal viewing in your project.

    Now you know why my videos of the demos were a bit out of focus. Auto-focus sensors "see" the VERY smooth and reflective first-surface of the display and focus on that. The image is actually produced ~1mm behind the glass surface, thus the focus problem. I've had some luck with manual focus still shots, but I haven't been able to find a manual focus video camera that I can afford.

    StampNut2,
    The documentation for the displays is clear on the procedure for powering down the display prior to removing power. The reason for the warning has to do with the DC to DC voltage boosters in the display that are used to "light" the OLED pixels. Suddenly removing power without shutting down the boosters first, can (over time) precipitate a failure or at the very least shorten their life. It's why the demos have a shutdown period at the end of the demo (power down the display, wait 5 seconds, power up the display, restart the demo) During the 5 seconds that the display is powered down, you can safely unplug the display or power off the Stamp/Prop board that it's attached to. There are times when it's not convenient or even possible to issue the power down command (program hangs comes to mind) wink.gif I don't think that just unplugging the device in those situations is going to cause a problem.

    I think it's more of a warning for designers, i.e. Don't design your product in a way that removes power before issuing the power down command, which would mean that every time the device was "turned off" during it's life, the boosters would get "kicked" off, shortening their life.

    Steve
  • WhitWhit Posts: 4,191
    edited 2007-09-14 01:17
    Duffer said...
    ·It's why the demos have a shutdown period at the end of the demo (power down the display, wait 5 seconds, power up the display, restart the demo) During the 5 seconds that the display is powered down, you can safely unplug the display or power off the Stamp/Prop board that it's attached to. There are times when it's not convenient or even possible to issue the power down command (program hangs comes to mind) wink.gif I don't think that just unplugging the device in those situations is going to cause a problem.
    StampNut2 and Duffer,

    Thanks for this info. I had not been doing that. Good tip. I picked up a 1 Gig microSD card. I can't believe that thing really works! Amazing! - It's the size of a fingernail.

    I've downloaded the Graphics Composer and PmmC. Hope to play some this weekend. Now I'm starting to think about animation too!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • SN96SN96 Posts: 318
    edited 2007-09-16 00:31
    Question:

    Is your face going to be rendered on screen in real time with animated expressions?

    I have machined a robot head, well actually a fried machined it, but I designed it to use the Parallax ping sensors for the eyes and ELectret microphones for the ears and a speaker for the speakjet. Although not a "Face" it will give my future biped a decent head:



    lowlight2ha.jpg






    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike





    Post Edited (SN96) : 9/16/2007 12:36:55 AM GMT
  • WhitWhit Posts: 4,191
    edited 2007-09-16 00:45
    Really cool Mike! Love the robot head. That will look great with the sensors in it. Please post some picture of the finished project.

    You asked, Is your face going to be rendered on screen in real time with animated expressions?

    Yes, that is my plan. Using the new uOLED screen.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • DgswanerDgswaner Posts: 795
    edited 2007-09-16 00:45
    whit said...
    I tried to get a picture in the dark. It seems the problem is more the close-up focus of my camera. When I get close enough for a good picture, I'm too close to be completely in focus. Please know that the display is very sharp and bright.

    stand back a few feet and zoom in so that you camera has room to focus, and or take a high enough resolution that you can zoom in with software, crop as needed.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
  • SN96SN96 Posts: 318
    edited 2007-09-16 00:54
    Whit,

    Are there only four wires needed to run the color display? I have not messed with any display devices so I don't know much about them. It looks so clear and you don't have a birds nest of wires to hook it up to the stamp. It looks easy to interface to.

    I would like to get a color display for data output.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike



    ·
  • Oper8r AlOper8r Al Posts: 98
    edited 2007-09-16 05:53
    Here is a link to the display on the the parallax site. http://www.parallax.com/detail.asp?product_id=27925 It will show you how to hook it up and interface with it.



    Al
  • StampNut2StampNut2 Posts: 224
    edited 2007-09-16 08:38
    I did not realize that you needed an SD card for the graphics otherwise I would have ordered one when I bought the uOLED it appears that it is quite small in size , so off the shelf SD card in NZ would be to big. What size is the SD card guys?. I could measure it I suppose from the uOLED.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Never give up when things go wrong.
  • WhitWhit Posts: 4,191
    edited 2007-09-16 12:29
    StampNut2,

    It will work without the card (using the "smart" features on the uOLED). That is what the demo's do, but as you've said the card is the way to go for lots of graphics and animation. The card is a microSD card. The one I got came with a microSD/TransFlash to SD Adapter (plugs into a slot on my PC). The microSD card is tiny (like in cell phones). I got a 1.0 GB at Office Depot for $34.00. I just got it there because it was easy. You could probably find them cheaper if you looked a bit. The shipping on this will be very minimal. The plastic container will weigh more that the card!

    Dgswaner,

    Thanks for the tip, I will try that!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • DufferDuffer Posts: 374
    edited 2007-09-17 00:33
    StampNut2,

    Are you familiar with Dontronics in Australia www.dontronics-shop.com/·I think they're loacated in Tullamarine. They carry all of the 4D Systems products (uLCD, uOLED, uUSB, etc) And they have uSD (TransFlash) cards (64MB-1GB) in stock. Better that paying shipping from the US.

    Steve
  • StampNut2StampNut2 Posts: 224
    edited 2007-09-17 11:50
    Duffer: Yes I am, I have bought from them before. I will check them out again and see what they have. I will also check here in NZ first. Thanks.
    Whit: Thanks also for your help, I must get on and have a play with this uOLED. I have not had the chance yet.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Never give up when things go wrong.

    Post Edited (StampNut2) : 9/17/2007 11:59:14 AM GMT
  • WhitWhit Posts: 4,191
    edited 2007-09-20 12:37
    Hey Everyone,

    I've been to busy lately to play much. Will post more on the "face" when I can. Maybe some better pictures too!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • slashsplatslashsplat Posts: 63
    edited 2007-09-23 19:56
    This is a quick animated GIF of what could be done. I use Image Ready (part of Photoshop). If you like it, I can generate individual BMPs from each of the image frames easily.

    You have to CLICK IT to see the animation.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    slashsplat
    /* Ira Chandler */
    BotConnect.com
    128 x 128 - 16K
  • WhitWhit Posts: 4,191
    edited 2007-09-23 22:20
    slapshot,

    Thanks so much. I love it. I have never fooled around with a program like that. I'd love to get the individual bmps.
    Very cool.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • slashsplatslashsplat Posts: 63
    edited 2007-09-24 06:26
    Try these. Let me know if there are any other faces you would like it to make.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    slashsplat
    /* Ira Chandler */
    BotConnect.com
  • slashsplatslashsplat Posts: 63
    edited 2007-09-24 06:27
    The last one. Only five per post...

    And I guess I skipped three. Can't count at 2:30am..

    These are "Windows" format BMP files at 32 bit color. I don't know if another color depth is required for your screen. Let me know.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    slashsplat
    /* Ira Chandler */
    BotConnect.com
  • WhitWhit Posts: 4,191
    edited 2007-09-24 11:38
    Thanks slashsplat! My sisster has photoshop, I'm going to get her to show me how to do this.

    This will get me started. Thanks for getting me moving.

    Just goes to so - It is always good to have good tools and to work with people who know more that you do! wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Whit+


    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
Sign In or Register to comment.