element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Blog The Bridge Troll
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: fmilburn
  • Date Created: 29 Oct 2019 10:38 PM Date Created
  • Views 2781 views
  • Likes 11 likes
  • Comments 15 comments
  • halloween
  • 3D Printing
  • sharethescare
  • troll
  • arduino
  • adafruit m0
  • bridge
Related
Recommended

The Bridge Troll

fmilburn
fmilburn
29 Oct 2019

Introduction

 

The first project I posted on element14, and one of the first electronics projects I did after retirement were Halloween themed.  In fact, the avatar I use is based on a Halloween airplane costume I made for my grandson about 5 years ago.  The early creations were based on my own ideas but these days I get a lot more input from my customers (grandchildren) as well as their representative (my daughter).

 

image

 

For the last few years their representative has wanted me to outfit a wagon to pull the youngest child in.  The first year it was a Washington State Ferry since they lived in Seattle.  That was the year I made my granddaughter a "ferry princess".   Last year the customers all wanted to dress up as characters from the Mario games and I made a castle like the one that Princess Peach lives in.  And this year it is the Steel Bridge in Portland since that is where the customers now live...

 

 

{gallery} Halloween Wagon

image

Washington State Ferry Boat

image

Mario's Castle

image

Portland's Steel Bridge

 

 

Why a Bridge?

 

According to Wikipedia, the Steel Bridge is a through truss, double-deck vertical lift bridge across the Willamette River in Portland.  It was built in 1912 and carries railroad, pedestrian, bicycle, road, and light rail traffic.  The two lifts are independent - that is the lower deck can be lifted for moderate height marine traffic without impeding traffic on the upper deck.  Both decks can be lifted for higher  marine traffic.  The machinery house sits atop the upper truss.  It is of course a Portland landmark.  Cool...

 

image

 

But why a bridge?  Well, the real reason is because my daughter said so but also the expansion of humans during recent centuries has caused trolls to adapt to new habitat and many have taken up residence under and around bridges as is well known.  Originally though the trolls primarily lived in the mountains with some in the forest.  There is a well known troll that lives under the Fremont bridge here in Seattle.  But I stray from my subject...

 

How to Build a Bridge on a Wagon

 

These projects always start with a large moving box and the wagon.  The box doesn't really fit so it is cut down and reassembled until it is a fairly snug fit.

 

image

 

To give additional rigidity and keep the box from moving on the wagon wooden bracing is fabricated and glued to the ends of the box.

 

image

 

In the photo below the bracing has been installed and the smaller box behind it is being cut up to form the lift section.

 

image

 

For various reasons there was less time than normal this year and not a lot of planning or finesse.  For the better builds I normally buy heavy colored paper and apply it to the carboard boxes and then use a sealer over that to make it somewhat waterproof.  No time for that this year.  I pasted paper from paper grocery bags over a few spots and painted the rest with acrylic paint.  The photo below shows the carboard complete and mostly painted.

 

image

 

The portion of the bridge that lifts and the machinery house can be seen to straddle the main body and obviously a lift mechanism is required.  Rather than wire cable and a pulley arrangement I settled for something a bit easier.

 

The Lifting Mechanism

 

I found a really nice 3D printed linear servo actuator on Thingiverse that looked like it would do the trick (thanks potentprintables).  The 3D printed pieces are the rack which is printed in white below, the pinion which is printed in blue and surrounding the circular horn in the photo, and the large blue body.  The servo is a Hitec HS-311 with the potentiometer still active.  The completed mechanism is attached to the bridge body with a block of wood.  Two actuators are required, one on each side.

 

image

 

As is often the case, the design had to be modified slightly before use.  My circular horns did not fit in the pinion gear so the opening was enlarged in Fusion 360.  A hole was also placed in the center so that the pinion could be removed and replaced at will.  In the original design the pinion gear is permanently mounted which means the servo cannot be easily used for anything else.  A view in the Cura Slicer is shown below.

 

image

 

It was also necessary to modify the rack slightly since tolerances were off for my Anycubic I3 Mega printer and the fit was too snug.  To fix this the rack was aligned along the X axis and then the Y axis was scaled smaller.  After hitting it with some sandpaper and adding some petroleum jelly it slid smoothly as seen in the video.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

The servos are controlled by an Adafruit M0 Express Feather development board.  Power comes from a 18650 rechargeable battery in a carrier that also boosts to 5V for USB power to the Feather.  It also powers the two servos.  In the photo below testing and alignment is being done prior to completing the build.

 

image

 

To stop the lift portion of the bridge from binding small scraps of wood were glued to the racks for the lift to rest on.  Holes were then punched into the cardboard and a compartment made so that the development board and  battery were out of the way of little hands.

 

The circuit and code to lift the bridge up and down are very simple.  It was written in the Arduino IDE and lifts the bridge slowly then holds it for several seconds.  It then lowers the bridge, waits a while, and starts all over again.  Power goes from the 3V output of the 18650 to the servos.  The Arduino servo library is used in a manner very similar to the example code provided in the servo library. The pins used by the Feather M0 Express to drive the servos is documented in the code below.

 

/* 
 *  Controls linear servo actuators on Halloween Bridge
 *  Written and tested on Feather M0 Express w/ Arduino 1.8.9
 *  Frank Milburn   October 2019
*/
#include <Servo.h>
const int leftServoPin = 10;
const int rightServoPin = 11;
const int ledIndicatorPin = 13;
const int servoDelay = 20;
const int bridgeOpenDelay = 2000;
const int bridgeCloseDelay = 3000;
Servo leftServo;
Servo rightServo;
void setup() {
  leftServo.attach(leftServoPin);
  rightServo.attach(rightServoPin);
  pinMode(ledIndicatorPin, OUTPUT);
}
void loop() {
  int i = 0;
  for (i = 10; i <= 170; i++){
    digitalWrite(ledIndicatorPin, HIGH);
    leftServo.write(i);
    rightServo.write(i);
    delay(servoDelay);           
  }
  delay(bridgeOpenDelay);
  for (i = 170; i >= 10; i--){
    digitalWrite(ledIndicatorPin, LOW);
    leftServo.write(i);
    rightServo.write(i);      
    delay(servoDelay);                         
  }
  delay(bridgeCloseDelay);
}

 

I barely completed the project in time and drove it down to Portland over the weekend.  It lifts off the wagon for transport and can then be placed back on in seconds.

 

image

 

In the video below the test engineer waves at the end of a successful acceptance test.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Conclusion

 

The project was successful but there are a number of things I would consider doing differently if I had more time and were building it again.

 

  • Build quality could be improved -  The Mario castle is still in use but I don't expect this project to last as long
  • Artistry - nothing more need be said :-)
  • Could add sound - instead the Rainbow Ukulele is being used which works well
  • Could always add LEDs - LEDs are always good

 

OK, here are a couple of questions for the reader... 

 

  • What movie does the phrase "What is the Airspeed Velocity of an Unladen Swallow" come from and how is it related to bridges?
  • What is the name of the orchestral music being played during the acceptance test by the test engineer above?  Who is the composer and why is it appropriate here?

 

Please give your answers in the comments below and thanks for reading!

 

Past Halloween Projects

Mario Castle featuring Princess Peach

LadyBug Girl and Rocket Boy

  • Sign in to reply

Top Comments

  • genebren
    genebren over 5 years ago +6
    Very nice build! I am sure that the grandkids enjoyed the creation. I remember the Swallow question is from Monty Python, but I am not the type of person to remember all of the details (movie, which character…
  • abrain
    abrain over 5 years ago in reply to genebren +6
    I think it was The Holy Grail, in response to a question from a troll under a bridge? It’s been far too long since I saw that..... I’m in stealth mode reading this so the musical question will have to…
  • jw0752
    jw0752 over 5 years ago +5
    I could tell from the client's faces that they loved it. Thanks for sharing with us. John
  • fmilburn
    fmilburn over 5 years ago in reply to phoenixcomm

    The bridge in your picture is what is known as a Bascule Bridge and there are several in Portland.  I was originally going to do one of those but my daughter wanted the Steel Bridge.  The steel bridge is not typical :-)  It has two decks one above the other which lift independently and is the only one in the world that does so.  It is the second oldest vertical lift bridge in the United States and very large for the era or even today and can carry significantly more traffic than the Michigan City Draw Bridge including both trains and cars.

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • phoenixcomm
    phoenixcomm over 5 years ago

    fmilburn what you have is a typical railroad bridge what about a Draw Bridge?

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 5 years ago in reply to three-phase

    They seem to work pretty well although I didn’t have time to play with them.  I finished the last print at midnight the day before driving to Portland and finished installation in their driveway. I have done a little research since as I wonder about the proper lubrication and it seems that silicon or teflon based grease works well with PLA and plastics so that is something to try. I would also like to design the gears myself and play with tolerances a bit.

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • three-phase
    three-phase over 5 years ago

    Great project, I like the printed linear actuator, very smooth in operation. I need to make something similar for testing the Molex connectors I have.

     

    Kind regards.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 5 years ago in reply to shabaz

    Correct!  The composer was Edvard Grieg, a Norwegian composer and the music is from one of the Peer Gynt suites.  The story is Norwegian and trolls originally are from Scandinavian folklore.  Peer Gynt is the hero / anti-hero of a play written by Henrik Ibsen and the music by Grieg was written for it.  As abrain says, the mountain king is the king of the trolls and Peer was captured by the other trolls and taken to him.  It makes interesting reading (and listening) for anyone who wants to search further.

     

    Way back when I was still punching cards for entry into the mainframe there was always classical music playing at the desk where we took our FORTRAN card decks for input.  A lot of the old animated cartoons had classical music as well which is one reason people frequently recognize it but can't necessarily name it.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube