Page 71 - RoboGenius Pro C7
P. 71

Session 2: Programming and Integration with Arduino
                 Activities:

                 1.  Combining Sensors in Arduino

                      Task: Merge the PIR and Ultrasonic circuits in a single Tinkercad simulation using Arduino Uno.
                    When motion is detected and the object is within 30 cm, both LED and Buzzer should activate.
                    Skills Practised:

                        Writing Arduino block-based code using if-else and variables.
                        Combining multiple sensor inputs for real-time decisions.

                 2.  Programming in Tinkercad (Blocks + Text Mode)
                      Task: Use Blocks + Text Mode to view both visual and C++ code. Add comments explaining
                    each part of the program.

                    Skills Practised:

                        Translating block code into Arduino text code.
                        Understanding input (sensors) and output (LED/Buzzer) flow.

                    Outcome for session 2:

                         A  combined  circuit  that  provides  two  safety  indicators—LED  (motion)  and  buzzer
                        (proximity).

                        Properly annotated code demonstrating motion and distance detection.

                 Session 3: Simulating Response Using VEXcode VR

                 Activities:
                 1.  Simulate the School Safety Robot

                      Task: In VEXcode VR, program a virtual robot to patrol an area (e.g., a grid map). When it
                    detects an object (using Front Eye Sensor), it should stop and display a message “Obstacle
                    Detected – Stay Alert”.
                    Skills Practised:

                        Using sensing and drivetrain blocks.

                        Controlling motion and conditional behaviours.
                 2.  Create a Colour Alert System

                      Task: Modify the VEX robot to draw coloured zones using pen blocks, with green indicating
                    safe zones and red marking restricted zones.
                    Skills Practised:

                        Using drawing and logic blocks.

                        Representing data visually using colours.





                                                                                         Capstone Project
                                                                                                                    69
   66   67   68   69   70   71   72   73   74