6. VIRTUAL IMPLEMENTATION - H-Division-2021-2022-Even/Repo-04 GitHub Wiki
Step 1: Start
Step 2: Turn power button on and read power button state as p
Step 3: Read the input from IR sensor as IR_state and height of step as step_height
Step 4: if IR_state==0 and step_height<=20cm
Step 5: Turn on the motor and rotate the triwheel
Step 6: else Turn off the motor and power button
Step 7: stop
Step 1: Start
Step 2: Read state of power button as p
Step 3: if power button is on indicate and read p=0
Step 4: else if power button is off indicate and read p=1
Step 5: Read the input from IR sensor as IR_state
Step 6: if IR_state==0
Step 7: Indicate no obstacle is detected and read indication_state=0
Step 8: else Indicate obstacle is detected and read indication_state=1
Step 9: if IR_state==1 and step_height>7cm
Step 10: Indicate process completion and read process=0
Step 11: Turn off power button if process==0
Step 12: stop
Step 1: Start
Step 2: Read state of power button as p
Step 3: if (p==0) -> Display power button is on
Step 4: else if (p!=0) -> Display power button is off
Step 5: if (indication_state=0) -> Display no obstacle is detected
Step 6: else if (indication_state=1) -> Display obstacle is detected
Step 7: stop
Step 1: Start
Step 2: Turn power button on and read power button state as p
Step 3: if (indication_state=0) -> Display no obstacle is detected
Step 4: else if (indication_state=1) -> Display obstacle is detected
Step 5: if (indication_state=1 and step_height>20cm and step_height<15cm) -> Turn power button off
Step 6: Stop
S.No | Component Name | Component details | Quantity |
---|---|---|---|
1. | Acrylic sheet | Transparent | 50cm² |
2. | Wheels | 3cm diameter | 12 |
3. | Bread board | 1 | |
4. | Microcontroller | Arduino Mega 2560 | 1 |
5. | Connecting wires | Male to female and male to male | 10 each |
6. | Motor driver | L298D | 2 |
7. | Motor | DC motor | 4 |
8. | Gears | 3cm diameter | 16 |
S.No | Component Name | Component details | Quantity |
---|---|---|---|
1. | Microcontroller | Arduino mega 2560 | 1 |
2. | Sensor | IR sensor | 1 |
3. | connecting wires | male to female and male to male | 10 each |
4. | Bread board | 1 |
S.No | Component Name | Component details | Quantity |
---|---|---|---|
1. | Microcontroller | Arduino mega 2560 | 1 |
2. | Display | LCD display | 1 |
3. | Connecting wires | male to male | 10 |
4. | Bread board | 1 |
S.No | Component Name | Component details | Quantity |
---|---|---|---|
1. | Microcontroller | Arduino Mega 2560 | 1 |
2. | Bread board | 1 | |
3. | Sensor | IR sensor | 1 |
4. | connecting wires | male to female and male to male | 10 each |
S.No | Component Name | Component details | Quantity |
---|---|---|---|
1. | DC motor | 30 RPM | 4 |
2. | Motor controller | Aurdino mega 2560 | 1 |
3. | Motor driver | L298D | 2 |
4. | Sensor | IR sensor | 1 |
5. | Switch | Push button | 1 |
6. | Connecting wires | Male to male and Male to female | 10 each |
7. | Motor clamps | 4 | |
8. | Wheels | 3cm diameter | 12 |
9. | Display | LCD display | 1 |
10. | Nuts and bolts | Metal | 15-20 |
11. | LED | 2 | |
12. | Gear | 3cm diameter | 16 |
13. | Acrylic sheet | Transparent | 50cm² |