The second week work Parking access control System state machine

Source: Internet
Author: User

On request

First, the input signal

1, into the gate sensor: car into the Carin

2, the gate sensor: the car left Carout

3, the sensor on the landing pole, the landing bar rise Sensorup

4, the landing rod under the sensor, the landing rod down Sensordown

Second, the output action

1, landing bar of the birth and drop

2, the change of traffic lights

Iii. state transitions and trigger signals
  • S1:idle
    • When entering, set the traffic light to a red light, the motor stops.
    • When the car into the brake sensor Carin to true, transfer to the State S2
  • S2:barrierrising
    • Set the motor to turn when entering, keep the light state
    • When the upper-level sensor Sensorup becomes true, it is transferred to the State S3
  • S3:cardriving
    • When entering, set the light to be green, the motor stops
    • When the car gate sensor Carout to True, move to the state S4
  • S4:barrierfalling
    • Set the motor to reverse when entering, keep the traffic light state
    • When the current limit sensor Sensordown to true, move to the state S1

The second week work Parking access control System state machine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.