Project 1 (Mini Project on Vehicle Direction Detection
Aim-
To identify the direction of vehicle based on the camera input to know whether he is driving in the recommended direction or not.
Description-
According to the requirements mentioned in given qn. we have to create two subsystems to identify the direction of vehicle. As the input received from the steering is in deg. form we have to compair it with predetermined values to know the direction of turn taken by the vehicle. To match the requirements following steps have to be performed while designing the model.
Reuirement-1
1- take two switches, and connect the input from the steering to the middle port of both switches, then connect the upper port of switch no 1 to the predetermined constant and the remaining lower input port connect to the output port of the second swich.
2- then upper input port of switch no 2 connect to the another predetermined constant and lower input port to the another constant.
3- the output from switch no 1 is the output of our subsystem.
Logic of subsystem 1
At first the input value from the steering is compaired with the threshold value '>=30' of the switch1, that means if the the incoming value is greater than 30 then the direction of the vehicle is towards right direction. and if value is not satsfying then it move towards switch2.
At switch2 the incoming value is compaired with the threshold value '>0', that means if the value is greater than zero then vehicle is moving in a straight direction, and if input value is less than zero then vehicle is moving left direction
Requirement-2
here output from subsystem 1 and the output from camera are takken as input to this subsystem. here as per requirement we have to compaire the input from subsystem 1 with the predetermined constants i.e road_sign. and then result will be occupy after final comparision with camera input by using logical operators. following are the steps to design the model as per requirement.
1- take 3 relational operators to compaire input with constants. one upper input for all the relational operators is common which is input from subsystem 1. then connect the predetermined constants respectively to the relational operators.
2- then take three AND gates, connect output of relational operator as an one of input to the respective logical gate, another input to those logical operator is from camera sensor,
3- then as per requirement to get only one output connect all the output of logical operator to mux block and at last output is connected to the outport
Logic of subsystem 1
Input from the subsystem 1 is again compaired with the predetermined constants to get exact direction of vehicle, If any of the input matches to the constant then the output of that perticular relational operator should be high i.e 1. and then after getting the another high signal grom camera that perticular AND gate will operate and the final result will appear.
Result-
1- when value is 30 then output of subsystem 1 is Right_Turn_Angullar_limit then this value is again compaired with the const RightTurn_RoadSign and after getting input from camera while output will be '1 0 0'
2- when value is -120 then output of subsystem 1 is Left_Turn_AngularLimit then this value is again compaired with the const LeftTurn_RoadSign and after getting input from camera while output will be '0 1 0'
3- when value is 0 then output of subsystem 1 is Straight_Drive_Steering_Angle then this value is again compaired with the const Straight_RoadSign and after getting input from camera while output will be '0 0 1'