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
Crazy Arduino Automations
  • Challenges & Projects
  • Project14
  • Crazy Arduino Automations
  • More
  • Cancel
Crazy Arduino Automations
Crazy Arduino Automations Blog Raising the Bridge...Automation with Arduino: Design Update
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Crazy Arduino Automations to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: colporteur
  • Date Created: 18 May 2023 3:06 PM Date Created
  • Views 2410 views
  • Likes 12 likes
  • Comments 14 comments
  • arduino automation
  • arduino
Related
Recommended

Raising the Bridge...Automation with Arduino: Design Update

colporteur
colporteur
18 May 2023

My automation project has provided some challenges. I’m continuing to work at it, but I needed some design changes to accomplish raising and lowering the bridge automatically without failures.

It has been a while since the challenge was kicked off and an equal amount of time since I made my post. I am working to completing the project before the end of May. Other retirement stuff is taking up my time.

image

The current design divides the layout into four areas A, B, C, & D. The letter designation reference the island side area, B the ramp area, C the bridge area and D mainland side area for descriptions.

Each area has sensors and/or animation devices (i.e. motors, light and sound) referenced by the numbers.

A1: is a magnetic attached to a servomotor. Raising the magnetic stops the vehicle at the approach. The magnet triggers a reed switch in the vehicle to kill power.
A2: is a barrier raised and lowered by a servo.
B1: has a servo that raises and lowers the ramp.
B2: is a magnetic sensor triggered by an earth magnet attached to the ramp to detect if the ramp is up or down.
C1: is an IR sensor to stop the bridge on maximum rise.
C2: is a geared DC motor to raise and lower the bridge (the bride has left the building:))
C3: a magnetic sensor triggered by an earth magnet attached to the bridge to detect if the bridge is up or down.
D1: barrier on mainland side of bridge.
D2: vehicle stop magnet on mainland side of bridge.

My original plan was to use on one Arduino to animate the scenario of sound alarm with lights, lower the barriers, stop the bus, raise the ramp and raise the bridge. Then reverse the scenario. I have since added an Arduino dedicated to managing sensor readings and bridge movement.

I discovered during motor testing to raise and lower the bridge there are many things can go wrong. When little humans (i.e children) are involved a lot more can go wrong. Wrong would cause damage to the structures. To prevent things from going wrong, I added some sensors. The sensors provide feedback to establish logic that can control the bridge's action.

Given sufficient resources, I feel the complete animation could be done with one Arduino. Using Nano’s (i.e. what I have on hand) I have limited I/O pins. Added the additional Nano provided more I/O.

The extra Nano enabled me to divide the animation between two microcontroller devices. One controller is now responsible for the bridge motor guided by sensor readings, the other can look after the servos and playing sound.

I just completed the sensor installs. The other animation devices are in place and working. I have a scenario coding to raise and lower the bridge with the bridge coding section absent. I’ve just started work on coding the bridge up and down sequence. Hopefully without a catastrophic failure.

  • Sign in to reply
Parents
  • DAB
    DAB over 2 years ago

    It is a good idea to include check and verify steps to the process.

    Just because you command an action does not mean that the action was done or completed correctly.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • colporteur
    colporteur over 2 years ago in reply to DAB

    I have done some projects with model railroad that I have been unable to confirm status. Problems happen when what you think will always happen doesn't.

    After working with the geared motor in this project  I had to come up with a way to ensure control of the motor. Now the bridge won't lift without a positive confirmation of the sensors. The same with lowering. When I start full testing, I plan on doing a number of what if's. I'm also thinking of status lights  on a little panel.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • colporteur
    colporteur over 2 years ago in reply to DAB

    I have done some projects with model railroad that I have been unable to confirm status. Problems happen when what you think will always happen doesn't.

    After working with the geared motor in this project  I had to come up with a way to ensure control of the motor. Now the bridge won't lift without a positive confirmation of the sensors. The same with lowering. When I start full testing, I plan on doing a number of what if's. I'm also thinking of status lights  on a little panel.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • DAB
    DAB over 2 years ago in reply to colporteur

    I would add a state machine with override capability should the state conditions become compromised.

    • Cancel
    • Vote Up 0 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