Shop OBEX P1 Docs P2 Docs Learn Events
Christmas break show and tell thread. — Parallax Forums

Christmas break show and tell thread.

Martin_HMartin_H Posts: 4,051
edited 2014-01-01 15:23 in General Discussion
So Heater asked about people's plans, but this is my attempt at a show and tell thread. Did you do anything cool over the holiday?

My project started when I asked myself how hard could it be to write a gcode interpreter? I figured that I could write it in C++ in an afternoon and could move onto another project. It turned out to be a much thornier problem* than I expected, and consumed several days of effort. But here's a video of the results:

I'll post the source code and gcode over in my tiny robot arm thread. As an FYI, this was supposed to be the scara robot arm, but it couldn't push down hard enough to get suction, so I switched to the revolute arm.

* The hardest part was getting the software flow control correct as I wanted to use an existing PC tool called grbl control. It uses a standardized flow control scheme that I needed to reverse engineer. The second hardest part was learning gcode since it's not human friendly. The whole project left me with respect for Forth because it solves the serial I/O for you.

Comments

  • ercoerco Posts: 20,256
    edited 2013-12-29 19:56
    Cool beans! Nice to see your plywood bot back in action dealing crooked hands. I bet you're not above "counting cards" in Forth. :)

    I'm finishing up my Spider robot build tonight, should have some video tomorrow. I had fun yesterday building the controller board and the twins approve: http://www.youtube.com/watch?v=ICAyUKGNldY
  • David BetzDavid Betz Posts: 14,516
    edited 2013-12-29 20:02
    I made a Christmas tree ornament with a Prop Mini and an AdaFruit LED ring. I translated JonnyMac's NeoPixel code to C and wrote a simple main program to generate a twinkling effect. It was a really simple project but fun none the less.
  • Martin_HMartin_H Posts: 4,051
    edited 2013-12-29 20:06
    Erco, looking forward to a spider bot video. The twins are getting big!

    David, that is quite a nice looking ornament.
  • David BetzDavid Betz Posts: 14,516
    edited 2013-12-29 20:07
    Martin_H wrote: »
    Erco, looking forward to a spider bot video. The twins are getting big!

    David, that is quite a nice looking ornament.
    Thanks! I forgot to mention that the ornament itself I bought at a Christmas shop in the mall. :-)
    The LED ring is mounted behind the plastic ornament.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-12-29 21:40
    Cool projects guys.

    As I mentioned in thread about the cheap LED arrays, I experimented with some MAX7219 chips for the first time.

    I was really please how quickly I was able to get text scrolling across the arrays.

    (This is the same video I've posted twice before to the forum.)

    I've also been working on my hexapod. I'm also starting to play with the remote Paul K gave me.

    I've added XBees to the hexapod and the remote now it just a simple matter of programming in order to get the one to control the other.
  • Martin_HMartin_H Posts: 4,051
    edited 2013-12-30 04:21
    Duane, I haven't tried daisy chaining those arrays yet, so you have inspired me. I just read the other thread that you have 100 8x8 arrays! I'm glad there's someone out there who makes my LED obsession look tame.
  • davejamesdavejames Posts: 4,047
    edited 2013-12-30 08:23
    Along with painting the kitchen cabinets, I'll be finishing a BS2OEM hack of a Defender home security system:
    1024 x 635 - 46K
    1024 x 381 - 63K
    1024 x 427 - 48K
    940 x 768 - 68K
  • KotobukiKotobuki Posts: 82
    edited 2013-12-30 08:35
    Martin_H wrote: »
    but it couldn't push down hard enough to get suction, so I switched to the revolute arm.
    .

    Try looking around for a suction device used in packaging lines where an individual folded box has to be picked up one by one to put some item into. It is like a suction cup with a hole drilled in it and a hose going to a vacuum source.

    BTW, I love your robot!

    Best,

    Joe
  • Martin_HMartin_H Posts: 4,051
    edited 2013-12-30 17:46
    Kotobuki wrote: »
    Try looking around for a suction device used in packaging lines where an individual folded box has to be picked up one by one to put some item into. It is like a suction cup with a hole drilled in it and a hose going to a vacuum source.

    BTW, I love your robot!

    Best,

    Joe

    Thanks for the suggestion and the compliment.
  • Mark_TMark_T Posts: 1,981
    edited 2013-12-31 15:55
    Well my holiday project seems to have become making a combined motor controller and encoder
    for some BLDC hall-sensor motors that are currently available on eBay. The RP23M-52V24 motor
    comes with hall sensors and dual shaft but no encoder, and a while ago I experimented with the
    AS5035 magnetic rotary encoder chip.

    So there's going to be a 3-phase bridge and control board that mounts where the encoder normally
    goes, with a hole in the middle and a little mezzanine board that plugs in over the end of the shaft for
    the AS5035 to sit. The motor has a non-magnetic stainless shaft go super-gluing a magnet on the
    end is all that's needed to give a nice symmetric field for the AS5035 to work with (it gives 256
    pulses/revolution).

    Motor (rated 200W, 24V, 3600rpm no-load, inter-winding resistance 0.4 ohms):
    RapidPower.png


    The board layout in development:
    BLDC-cont.png


    And the clever little AS5035 chip http://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDIQFjAA&url=http%3A%2F%2Fwww.ams.com%2Feng%2Fcontent%2Fdownload%2F1284%2F7211%2FAS5035_Datasheet_v1_0.pdf&ei=J1jDUt6_O6fR7AbnyIHwBA&usg=AFQjCNFY70p03YVn12dC7CwA9wCoHT6txA&sig2=DZvQ8b_UUR1KYc2HizTw6g&bvm=bv.58187178,d.ZGU

    The diametrically magnetised 1/4 inch magnets are available from supermagnete.de I believe, IIRC.

    The motors seem to be surplus stock or somesuch because they are going for £25 from a UK recycled goods supplier.

    In the course of working on the board I realized some neat circuits for visualizing the hall-sensor outputs on a group
    of 6 LEDs:
    hall-visualize.png


    BTW: HNY!
    432 x 259 - 194K
    182 x 177 - 18K
    594 x 591 - 12K
  • localrogerlocalroger Posts: 3,451
    edited 2013-12-31 16:51
    I finished up my re-hacked Propeller-based Nixie tube clock. (This is going to come as a bit of a surprise to Heater since he bought all my Nixie tubes last year LOL.)

    edge.jpg


    Full story:

    http://localroger.com/nixie/nixie.html
    1024 x 768 - 82K
  • ercoerco Posts: 20,256
    edited 2013-12-31 16:57
    Working furiously on my Spider robot, hoping to get it around the figure 8 course before 2014 (midnight tonight)!
  • ercoerco Posts: 20,256
    edited 2013-12-31 19:26
    Done before midnight, my last project of 2013. Worked the first time! Lots of potential here. Happy New Year!
  • localrogerlocalroger Posts: 3,451
    edited 2013-12-31 19:32
    Nice job, Erco!!!!
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-01-01 08:37
    Well, here is my Propeller Mini with a 4 channel ADC0834 attachment. This is primarily a build project that can use OBEX objects to work with this 5volt 8bit ADC.

    It would have been much easier to use a Microchip 3.3 volt ADC and have 12 bit resolution, but I used what I had on hand and the Propeller Mini does provide 5VDC. I used 3 2n7000 for bi-directional level shifting to control the ADC chip as that seemed the best way to deal with having a shared Data In and Data Out line.

    Youall may think my choice of connectors for the Mini are a bit odd, but I wanted the Mini to be able to lie flat and the male pins are all protected on one side in this arrange -- better protection from damage to the i/o. I can easily connect cables or as seen in this case, a daughter board.
    640 x 480 - 48K
  • Martin_HMartin_H Posts: 4,051
    edited 2014-01-01 14:35
    @Mark_T, what do you plan to use those motors for?

    @localroger, with those nixie tubes you're all set to build a 1960's era computer that conquers mankind.

    @erco, great spider bot. You've also thrown down the gauntlet for the double orbit challenge.
  • localrogerlocalroger Posts: 3,451
    edited 2014-01-01 15:23
    Martin_H wrote: »
    @localroger, with those nixie tubes you're all set to build a 1960's era computer that conquers mankind.

    Actually, a funny fact about my avatar -- the movie Colossus: The Forbin Project was made without the use of a stand-in computer for Colossus. All of the Colossus "text displays" were obviously slides being scanned by a video camera. And while they had "modern" video chat it was impllemented with realistic early 1970's tech, with CRT monitors and huge vidicon-based cameras in massive desk-mounted consoles. I'd have to watch it again to be sure (always a treat) but I'm pretty sure there wasn't a Nixie tube to be seen, as they were trying to be "futuristic" LOL.
Sign In or Register to comment.