Topic: Leprechaun Trap - Fun School Project with my son

Home Forums Show us your bits! Leprechaun Trap - Fun School Project with my son

This topic contains 5 replies, has 2 voices, and was last updated by  robyneil 4 days, 21 hours ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #16700

    robyneil @robyneil
    My Robox is a Blue Commercial Version

    Weekend project with family helping out on our son’s leprechaun trap project for St Patrick’s Day. He needed it for a school presentation earlier today. It was fun brainstorming ideas for this with the whole family.

    We used an old barn house bought from a crafts store a few years back, some sticky tape with patterns for roof shingles, rubber banded the barn door, painted an aluminum tea light holder black (gold pot), and wrapped some quarters with gold foil.

    We 3D printed the other parts with Robox 3D printer: leprechaun, St Patrick’s pendant, Arduino case, switch case, electromagnet mount, and laser beam break sensor mount.

    Note: music starts at 2nd half of video

    [Models]

    http://www.123dapp.com/123C-3D-Model/Leprechaun/865792

    http://www.thingiverse.com/thing:251776

    http://www.thingiverse.com/thing:728530

    #16704
    Profile photo of click
    click @click
    My Robox is a Green Kickstarter Limited Edition

    Really nice! And inspirational!

    But you need to put more pictures on thingiverse page: expecially with hardware and hardware schematics… All those pictures and schematics are like candy for me! :D

    #16787

    robyneil @robyneil
    My Robox is a Blue Commercial Version

    I like the geeky stuff too, but fortunately there’s not much to it. Both the electromagnet and laser beam break sensor are on breakout boards. They already have pull-up resistors on the breakouts so no need to solder external resistors on a prototyping board to ensure there are no floating pins. I just hooked them up directly to Arduino with pre-crimped terminal wires and terminal housings from pololu (I taped the terminals so that they wont come apart):

    https://www.pololu.com/category/39/cables-and-wire

    so they won’t get loose at school.

    Code were snippets from where I bought the breakout boards:

    http://www.seeedstudio.com/wiki/Grove_-_Electromagnet

    http://www.wvshare.com/downloads/accBoard/Sensor-Kits.7z

     

     

    [Original trap concept]

    The real geeky stuff was our initial concept for the trap. We were going to have 6 features on the trap:

    a) Solenoid latch to hold a prison cage door in place (we switched to a barn house and electromagnet when we realized we didn’t have time to print everything on a weekend).

    b) Light with a prism to create a rainbow road (getting the angle right and getting a good enough light source was a problem…a white led wont give you rainbow colors)

    c) Use one RGB LED breakout board to cycle different through different RGB colors inside the cage or barn house.

    d) Mount a microview OLED to with icons like a beer stein, gold coin, shamrock, and leprechaun hat to entice leprechaun to approach the trap.

    e) Use Arduino’s tone generator to play Zelda’s Lullaby song to lure leprechaun.

    f) Use laser beam break sensor or hall effect sensor to detect leprechaun in trap.

     

    [Challenges]

    1) Designing and prototyping mounts for each and 3D printing them will eat up too much time.

    2) Running multiple Arduino sketches requires that I time-slice actions in milliseconds to get an equivalent of multithreading on all the different breakout boards attached to the sensor. Arduino runs on a blocking loop so I will need to specify a time range in milliseconds for laser detection, for the tone generator, and so on.

    3) How much power do I need to run all devices? Hooking up the laser, rgb led, and electromagnet alone was enough to tax a 4xAA set of batteries. The laser wasn’t sensing correctly and it required time to troubleshoot the power requirements.

    4) The OLED requires external pull-up resistors for the 2 I2C wires. I did start a prototyping board with a piezo speaker and pull-up resistors but decided to simplify things. We also needed to code all the icons or even replace them with just text.

    5) We only have the weekend and Monday night to get everything completed.

    [User Consideration]

    1) My kid is in first grade. I won’t be there with him at school during his presentation. Using the trap should be as easy as possible and he should be able to fix things himself like replacing the battery and switching it on. A switch is better than telling him to unhook the battery or coding Arduino to sleep after a certain duration (he might get confused when it stops working). A switch is more intuitive and easy to instruct on usage.

    2) Safety. I originally had the Arduino hooked up to an RC 7.4V lipo (continuous discharge of 17A) battery so that it can provide enough juice to all components as needed. Unexpected things can happen like accidental shorts. That much amps can cause a fire on an accidental short. I replaced the lipo battery with 4xAA batteries. It’ll heat up in cases of shorts but should not cause any fire.

     

     

     

    #16791
    Profile photo of click
    click @click
    My Robox is a Green Kickstarter Limited Edition

    Really nice write up!

    Don’t forget to put it on thingiverse’s instruction page…

    Also, I am really impressed at your level of detail regarding safety. Lipos *are* dangerous and I’ve seen what they did to people who were careless or just plain unlucky. I do have quite a few myself for my various RC helicopters…

    #16792
    Profile photo of click
    click @click
    My Robox is a Green Kickstarter Limited Edition

    PS For Lipos to last you need to ensure you are not over-discharging them. You can always use something like this as an indicator it is time to recharge it: http://www.hobbyking.com/hobbyking/store/__22749__HobbyKing_8482_Lipoly_Low_Voltage_Alarm_2s_3s_.html

    #16839

    robyneil @robyneil
    My Robox is a Blue Commercial Version

    Thanks @click. I’ll try them out. I’ve been collecting breakouts, components, and sensors…just barely started.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Subscribe now to be kept up-to date with the latest Robox® news. Subscribe Now