Shop OBEX P1 Docs P2 Docs Learn Events
Small Propeller Project at Comic-Con — Parallax Forums

Small Propeller Project at Comic-Con

JonnyMacJonnyMac Posts: 9,105
edited 2014-07-27 11:23 in General Discussion
A few weeks ago, a mutual friend introduced me to Jinyo, one of the cast members of the SyFy show, "Heroes of Cosplay." When I explained what I do, Jinyo asked me if I could help him with a small project for San Diego Comic Con. That project just debuted in a fashion show. I was in his shop very late one night as he and his fiance, Victoria, were finishing the dress. Congrats to them for making it into the show at Comic-Con. They are very nice people and it was fun to work with them.

Admittedly, the electronics are pretty simple. That said, the only thing that matters is audience reaction, and in this video you can hear Chloe Dykstra (also on the show, and daughter of legendary "Star Wars" FX guru, John Dykstra), squeal with delight -- that nearly made me squeal with delight. The combination of the beautiful dress, the Cylon Eye, and the model's moves worked really well.

Sorry the video is small, it's on Instagram: http://instagram.com/p/q29SoJBOoq/?modal=true

To keep things tidy I used a Propeller Mini. I used the "PCB Fab in a Box" kit from PulsaProFX.com to make a simple carrier board for a few pull-downs, a TC4427 (for level shifting and driving a signal through three feet of wire to a WS2812 strip), and a battery connection. There is a button that allows the model to change the state of the Cylon behavior. Jinyo coahed the model so that her head and the Cylon Eye across her chess are in sync for the "hunt and kill" mode. There's also a mode that allows the standard scanning routine to run at about 25% brightness; this is for being up close at dimly-lit parties (don't want to blind anyone!).

The program is straightforward: there is my WS2812 driver, a background cog to monitor the button, and the main cog which runs a finite state machine for controlling behavior. Using a separate cog allowed me to debounce the button and time the duration she presses it. There is a normal button press, and a long button press. The long press will return the state to zero (off), or enter party mode if the state is already off. Here's the button monitor.

var

  long  btncog
  long  btnstack[32]
  

pri monitor_button(pin) | scan, t, btimer

  dira[pin] := 0                                                ' make input

  scan := %00                                                   ' clear scan
  btimer := 0                                                   ' clear timer

  t := cnt                                                      ' sync timer
  repeat
    waitcnt(t += MS_001)                                        ' wait 1ms

    scan := ((scan << 1) & %11) | ina[pin]                      ' update scan

    case scan
      %00:                                                      ' no press
        btimer := 0

      %01:                                                      ' new press
        btimer := 0

      %11:                                                      ' button held
        btimer += 1

      %10:                                                      ' button release
        if ((btimer => 50) and (btimer =< 500))
          if (state <> 12)                                      ' if not partying
            state := ++state // 7                               '  next state

        elseif ((btimer => 1000) and (btimer =< 3000))          ' if long press                  
          if (state <> 0)                                       '  if not off
            state := 0                                          '   kill it
          elseif (state == 0)                                   '  if off
            state := 12                                         '   party on!



Follow-Up: Just got a text from Jinyo. He didn't win any prizes, but the crowd loved it. A lot of people asked him about the tech which gave him the opportunity to talk about the Propeller. He said he talks about the Propeller and me in an interview -- will be looking for that online and will post a link when I find it.

Jenny (from Parallax) found another picture of the dress.

Found yet another picture of the dress; this photo by Yaya Han (Perhaps the most famous cosplayer in the USA) and a star of the show, "Heroes of Cosplay." I met her at a convention recently; he's a very nice lady. I may be working with Yaya and her fiance, Brian, on a project.
1024 x 683 - 70K
800 x 600 - 92K
600 x 800 - 61K
415 x 533 - 51K

Comments

  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2014-07-24 21:49
    JonnyMac wrote: »
    A few weeks ago, a mutual friend introduced me to Jinyo, one of the cast members of the SyFy show, "Heroes of Cosplay." When our friend explained what I do, Jinyo asked me if I could help him with a small project for San Diego Comic Con. That project just debuted in a fashion show.

    Admittedly, it's a very simple project. That said, the only thing that matters is audience reaction, and in this video you can hear Chloe Dyksta (also on the show, and daughter of legendary "Star Wars" FX guru, John Dyksta), squeal with delight -- that nearly made me squeal with delight.

    Sorry the video is small, it's on Instagram: http://instagram.com/p/q29SoJBOoq/?modal=true

    To keep things tidy I used a Propeller Mini. I used the "PCB Fab in a Box" kit from PulsaProFX.com to make a simple carrier board for a few pull-downs, a TC4427 (for level shifting and driving a signal through three feet of wire to a WS2812 strip), and a battery connection. There is a button that allows the model to change the state of the Cylon behavior. Jinyo trained the model (Grant Imihara's girlfriend) so that her head and the Cylon Eye across her chess are in sync for the "hunt and kill" mode. There's also a mode that allows the standard scanning routine to run in dim mode; this is for parties (WS2812s are pretty bright).

    The program is simple: there is my WS2812 driver, a background cog to monitor the button, and the main cog which runs a finite state machine for controlling behavior. Using a separate cog allowed me to debounce the button and time the duration she presses it. There is a normal button press, and a long button press. The long press will return the state to zero (off), or enter party mode if the state is already off. Here's the button monitor.


    Man, I always hate you, you get to do all this fun stuff, and then you rub it in by telling us how much fun it was too! Oh, imperious leader we are but centurions although we are pleased it wasn't you in that outfit (relief).
  • JonnyMacJonnyMac Posts: 9,105
    edited 2014-07-24 21:51
    You know, Peter, one of these days I'm going to master Tachyon and have some REAL fun. :)
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2014-07-24 21:55
    JonnyMac wrote: »
    You know, Peter, one of these days I'm going to master Tachyon and have some REAL fun. :)

    Yeah, but that's fun of the "burn n learn" magic smoke variety :)
  • GenetixGenetix Posts: 1,754
    edited 2014-07-24 22:14
    Cool Project!
    After seeing the video I though there was a motion sensor that controlled the display but after reading again I see it's pushbutton controlled.
  • JonnyMacJonnyMac Posts: 9,105
    edited 2014-07-24 22:20
    This was a very quick project and we had to ensure the model had control of the program -- the button (hidden on her hip) was the surest path to success. And it was.

    These "one off" events are alway gutting. The last one I was involved in was the "League of Legends" world championship (2013) where I used a Propeller to control nearly 300 WS2801 LEDs on a consume worn by Wes Borland (Limp Bizkit).
  • Mag748Mag748 Posts: 266
    edited 2014-07-25 05:25
    Very Nice.
  • ercoerco Posts: 20,256
    edited 2014-07-25 06:55
    Too cool, Jonnymac. Per Peter, you get to have all the fun!
  • mindrobotsmindrobots Posts: 6,506
    edited 2014-07-25 06:57
    erco wrote: »
    .... you get to have all the fun!

    Said the former Hot Wheels R&D guy to the Hollywood guy that works with hot models.

    :frown:

    PS - That is a very cool idea/implementation for a some wearable electronics, Jon!
  • ercoerco Posts: 20,256
    edited 2014-07-25 07:10
    Hmmm... I did meet a few hotties along the way. Sophia Lauren, Jamie Lee Curtis and Danica Patrick among them. Some Kardshian girl most recently, big woop.

    I have a few pics for giggles.
  • mindrobotsmindrobots Posts: 6,506
    edited 2014-07-25 07:20
    Jon,

    How did you like the PCB Fab in a Box process you used? It looks like the boards turned out nice.
  • JonnyMacJonnyMac Posts: 9,105
    edited 2014-07-25 07:47
    How did you like the PCB Fab in a Box process you used? It looks like the boards turned out nice.

    Thanks. Now that I have the hang of it, I like it and will be using it more frequently. When I first got the system I struggled a bit. Thankfully, the gentleman who created it is FANTASTIC by way of tech support. For me I think it came down to how I was cleaning and rinsing the boards. I am now using 00 steel wool and Dawn dish washing soap for cleaning. After I get the board as shiny as possible, I drop it into a bath of 99% alcohol until I need it (while the laminator is heating up). We have a lot of dissolved solids in the Burbank water supply and I think that may have interfered with toner adhesion on my first attempts. These boards I made for Jinyo were no problem at all -- from printing to finished PCB in about 20 minutes (I'm sure Frank is faster, but I still think 20 to have a finished PCB is just fine).

    I would absolutely recommend the product. I'm getting to that point in my life that I don't like point-to-point wiring any more (if I ever did!). With a PCB program and a laser printer, the PCBFIAB kit makes life easy. I have more small projects planned for the cosplay world and now I'm going to make the PCBs instead of ordering them. Will probably have to chat with Frank on how to do double-sided PCBs. It's possible with the system, I just haven't tackled them yet.
  • mindrobotsmindrobots Posts: 6,506
    edited 2014-07-25 07:57
    Thank you for the details and tips. My PCB needs are going to be pretty simple and small quantity - I think I can put up with 20-30 minutes from printer to finished board.
  • JonnyMacJonnyMac Posts: 9,105
    edited 2014-07-25 08:52
    If you have any questions, Rick, do give Frank a call. He's incredibly friendly, helpful, and he's been doing this a long time so he's got a lot to offer.

    And one more tip: I manually edited the pads to have 20 mil holes -- just to help guide the drill bit (I use a Dremel tool). I think on future boards I will bump this to 25 mils as some of those holes closed.
  • Heater.Heater. Posts: 21,230
    edited 2014-07-25 10:14
    "ah ah wow" indeed. You do move in interesting circles!
  • GordonMcCombGordonMcComb Posts: 3,366
    edited 2014-07-25 10:50
    Jon, Congrats on a job well done, and well received.

    Sounds like you didn't swing a free ticket. Tickets to Comic-con are hard to get these days, as everything sells out in less than two hours when they go on sale.
  • PublisonPublison Posts: 12,366
    edited 2014-07-25 11:25
    Jon, Congrats on a job well done, and well received.

    Sounds like you didn't swing a free ticket. Tickets to Comic-con are hard to get these days, as everything sells out in less than two hours when they go on sale.

    Especially Hall H.
  • PublisonPublison Posts: 12,366
    edited 2014-07-25 11:30
    Nicely done again Jon.

    You pulled an erco maneuver and posted the link to PCB "Fab in a Box".

    Now I'm $75.00 poorer. :)
  • JonnyMacJonnyMac Posts: 9,105
    edited 2014-07-25 11:55
    For the time and money Frank's system will save you on one-off PCBs, you'll be happy you spent that $75.
  • garyggaryg Posts: 420
    edited 2014-07-26 14:17
    Jon
    Quick question?
    After you have the prop mini and carrier board finished and working.
    Do you wrap it in tape, put it in a bag or do something else to protect your circuit
    while the model is using it.
    I always struggle with housings and such.
    It looks like for a short lived project like this one, something simple would be needed
    to protect your electronics.
    You do good work.
  • GenetixGenetix Posts: 1,754
    edited 2014-07-26 19:58
    Jon, I see that you added another picture and now I can see there is actually some kind of housing strapped to the model. It's easier to see from that angle than in the video.

    Erco, could your Stamp Printer drive a Dremel like tool? How do you program the movements?

    Luckily Jon's board didn't need a lot of holes drilled still it's a pain to do.
  • ElectricAyeElectricAye Posts: 4,561
    edited 2014-07-26 20:28
    Some people have all the fun. Congrats on the project.
  • JonnyMacJonnyMac Posts: 9,105
    edited 2014-07-27 11:23
    Jon, I see that you added another picture and now I can see there is actually some kind of housing strapped to the model

    She was originally to have a weapon holster on her right thigh. I made the wires between the controller and the LED strip and button about three feet long to accomdate running through the dress. It now appears that Jinyo use a smal pack on her back -- will ask him when he returns from Comic-Con. He has two more Propeller MInis so we'll put them to use in other projects.
Sign In or Register to comment.