Skip to content

Vormamim/pyEVRobots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

pyEVRobots

These are a set of 'competencies' that you need to be able to demonstrate in this unit. You need to make a copy (fork) of this repository

Task 1: Basic Movement

Write Python functions to control EV3 motors:

βœ… Move forward for 2 seconds βœ… Move backward for 2 seconds βœ… Turn left 90 degrees βœ… Turn right 90 degrees βœ… Move in a square pattern πŸ”Ή Bonus: Make the robot move in a figure-8 pattern

Task 2: Sensor Integration

βœ… Ultrasonic Sensor: Detect an object and stop if it's less than 10 cm away βœ… Color Sensor: Detect different colors and print them to the console βœ… Touch Sensor: Stop the robot when the button is pressed πŸ”Ή Bonus: Display a custom message on the EV3 screen based on sensor input

Task 3: Obstacle Avoidance

βœ… Move forward and stop if an obstacle is detected βœ… If an obstacle is found, turn left or right to avoid it βœ… Resume movement after avoiding the obstacle πŸ”Ή Bonus: Implement a randomised turning direction when avoiding obstacles

Task 4: Line Following

βœ… Use the Color Sensor to follow a black line βœ… Implement a basic proportional control to adjust motor speed πŸ”Ή Bonus: Modify the logic to follow curves smoothly

Task 5: Returning Home

βœ… Make the robot move forward and complete a course βœ… Use the Gyro Sensor to track turns and navigate back to the starting position πŸ”Ή Bonus: Log movement data and print a path summary in the console

Task 6: Display and Sound

βœ… Display sensor values (e.g., distance, color) on the EV3 screen βœ… Make the robot play a custom beep sequence when it completes a task πŸ”Ή Bonus: Program the EV3 to play a short melody

Task 7: Git & Documentation

βœ… Create a GitHub repository for your project βœ… Write a README.md explaining the logic and results for each task βœ… Use meaningful commit messages when updating code πŸ”Ή Bonus: Create a flowchart showing your program's logic

Final Submission Checklist

βœ”οΈ Push all code to GitHub βœ”οΈ Ensure the README.md is clear and detailed βœ”οΈ Each task should have at least one commit βœ”οΈ Test your code before submission

About

A teacher resource

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published