System to operate Bus door

Thread Starter

Djsarakar

Joined Jul 26, 2020
489
Good evening all

I want to increase my programming knowledge, for which I was looking for some examples.So this example is just to understand programming logic, I am not thinking of any microcontroller or any programming language right now. One thought came to my mind that I should write program flow for bus stop

I have written the few points

  1. Find out if bus stopped at bus stand
  2. If yes, check at bus stop weather passenger is there or not
  3. Open the bus door , if there is passenger
  4. If there is no passenger, bus door should be closed

I think that my problem statement is not clear so I want someone to help me to make suitable problem statement for bus stop system. When I have suitable a problem statement, I will be able to create programming flow.

Help please
 

Marley

Joined Apr 4, 2016
519
This is the way to develop and program automation.
As this application involves people and therefore safety, all possibilities need to be carefully considered.
I think you need a few more "points". These will be sensors of some kind and feedback to the user and driver (could be visual or audible). Think of a pedestrian road crossing. Whenever people are involved, assume they are idiots!
I personally like to draw a state diagram showing the sequence of events. Make sure all possibilities are considered. Include failures and errors (door jams, sensors not working, etc.).
This it is then fairly simple to convert the state diagram to an actual program.
 
Top