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
Arduino Forum Accelerometer Automated Locking system
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 42 replies
  • Subscribers 393 subscribers
  • Views 3649 views
  • Users 0 members are here
Related

Accelerometer Automated Locking system

Former Member
Former Member over 10 years ago

Hello,

 

I am Yuvish Chintaram from Mauritius Island.

 

Recently, I have applied to a university and my acceptance would be considered on a project that would help to contribute to my society.

My other friends are planting mangroves to help protect the marine ecosystem but I am more interested in science  and think to have find an interesting project.

 

A few months ago, an accident occured to a student that fell from a moving bus.(I have send you the link below.)

Surprisingly, two more people fell from a moving bus from the back emergency door after the earlier incident.

A solution was found by the Government that all bus should have an alarm and  that when the door opens an alarm will ring. But this does not solve the problem!

 

Hence, my idea was to incorporate a locking system that is fully autonomous. The system should lock the door while the bus is moving but unlock itself when the bus stops at a bustop.

I was thinking of using an accelerometer that will detect the acceleration of the bus that will relay to a circuit such that at a minimum value the latter will send a signal that will automatically lock or unlock the system.

eg. If(X>200)

      eletric lock is lock  

      else if (X<200)
       electric.lock is unlock

 

I am here to ask you if you could give me some advice and also if my current solution will work.

I would also be pleased to know your ideas about my project.( How would you answer it, etc..)

I would really appreciate if you could reply me as soon as possible.

 

http://news.islandcrisis.net/2015/03/17-year-old-student-keshnee-purmasing-died-after-falling-from-school-bus/

 

Regards

Yuvish Chintaram

  • Sign in to reply
  • Cancel

Top Replies

  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago +1
    Given that once the bus is at desired speed, the acceleration will effectively be zero, the same as if it where not moving so this would not be an ideal sensor to use A GPS measuring speed in any direction…
  • shabaz
    shabaz over 10 years ago in reply to gadget.iom +1
    That's true, but (been a long time since I was on a bus!) there are the 'smash glass' hammers or override buttons with thin glass in front of them. Maybe that is not an option in some countries though…
  • Former Member
    Former Member over 10 years ago in reply to balearicdynamics +1
    Yes okay. so basically I have an: 1. Arduino UNO 2. 3 Axis Gyroscope+Accelerome ter Module for Arduino MPU 6050 3. I have not still buy thew electric lock but what do you think of this: http://www.ebay…
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to Former Member

    It's not more difficult to use a GPS sensor than the accelerometer. But need to know before what do you plan to acquire.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to balearicdynamics

    Yes i agree with you its more difficult.
    so lets say we use a GPS, we will have to use it in a way as a speed sensor. right? correct me if i am wrong
    i.e speed = movement
    movement = lock electric lock

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • gadget.iom
    gadget.iom over 10 years ago in reply to Former Member

    Just a little bit of research can get you some useful information.

    http://forum.arduino.cc/index.php?topic=24337.0

     

    Connecting the gps will depend on the module you opt for, but it can be as simple as:

    Arduino-GPS.png

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to Former Member

    Yuvish, in my opinion, this assumption is partial image and is not sufficient.

     

    By one side GPS will grant specific information on speed and position. Maybe also useful for path tracking, a simple log recording (e.g. a circular log reset every new bus tour to be checked is something appears etc.) Then the accelerometer - that it is NOT an accelerometer but an inclinometer as far as I have read, integrates the instant position and speed information (it's up to your project needs to decide the sampling frequency) to know the inclination respect ground, acceleration from stop, road conditions and so on. In this way it is possible - as I wrote above in a previous post - to define, maybe experimentally, a bus behaviour in some conditions. Then, these different situations can be preset as a series of standard ranges. This is what I think may give you all the information you need to lock and unlock the doors in a reliable and useful way.

     

    So, considering that you have not great experience in electronics, I can suggest that - but depends on the budget too - a Raspberry PI with the microstack accelerometer and GPS board can solve your hardware problem very simply. About the software no problem, you can do it in many ways, including python (almost at high level) and there are lot of examples I can provide (or the other guys on this forum).

     

    Take a look to the products I mentioned: http://www.element14.com/community/docs/DOC-70590/l/element14-launches-microstack-for-the-raspberry-pi and http://www.element14.com/community/community/raspberry-pi/raspberrypi2

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to gadget.iom

    Thanx Paul that was really useful image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to balearicdynamics

    Thank you Enrico. I will look into that.
    I am very at ease with arduino. Wont it take too much time now, to understand the pi all that?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 10 years ago

    Hi,

     

    Why not just have a lock that can only be opened by the bus driver pressing a button (if he doesn't press it, no-one gets off), and the button only works when the handbrake (or equivalent in a bus - I have no idea) is applied? There may be a brake indicator light, that could be used as the enable function.

    This then becomes a logic gate type of problem.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • gadget.iom
    gadget.iom over 10 years ago in reply to shabaz

    shabaz wrote:

     

    Hi,

     

    Why not just have a lock that can only be opened by the bus driver pressing a button (if he doesn't press it, no-one gets off), and the button only works when the handbrake (or equivalent in a bus - I have no idea) is applied? There may be a brake indicator light, that could be used as the enable function.

    This then becomes a logic gate type of problem.

    I would guess if the driver was incapacitated (or fled the scene), then an evacuation would be hindered.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to Former Member

    I think it seems more complex but as it is more powerful, I think you have a wider range of possibilities to understand and make a well done project with - definitely - less difficulties.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 10 years ago in reply to gadget.iom

    That's true, but (been a long time since I was on a bus!) there are the 'smash glass' hammers or override buttons with thin glass in front of them.

    Maybe that is not an option in some countries though due to vandalism/violence.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • 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