A simple task to introduce the processes used in the Embedded subsection
To begin, you will need to download the following software:
If you don't already have it, download Git as well
Once you've installed the required software, proceed with setting up the sample repo:
- Open a terminal and clone the repository:
git clone https://github.com/GryphonRacingFSAE/Onboarding-Task.git- Enter the repo directory:
cd Onboarding-Task- Create a new branch and switch to it:
git checkout -b YourName # NOTE: please name the branch accordingly- Open the repo folder in Visual Studio Code
- Ensure the correct branch is selected in the bottom-left (e.g. YourName)
- Select the PlatformIO icon from the left toolbar and wait for the project to initialize
You will be creating a simple morse code program using the ESP32's built-in LED:
- The built-in LED can be enabled through GPIO 2 →
pinMode(2, OUTPUT); - The LED can be turned on/off by setting the pin's voltage (HIGH/LOW) →
digitalWrite(2, HIGH); - The default program delay is based on milliseconds (1000ms = 1s) →
delay(1000);
- The task will be to spell the word MISSISSIPPI
- The morse code system should work on the basis of a default time unit (500ms)
- The following time unit multiples should be used for each feature:
| Feature | Time (units) |
|---|---|
| Dot | 1 |
| Dash | 3 |
| Space between dots/dashes | 1 |
| Space between letters | 3 |
| Space between words | 7 |
- The chosen word includes a variety of repeating letters, which should encourage functional programming
- Since there is only one word, please use a length of 7 time units at the end of the word and have it loop
Once your code is working, record a video or perform an in-person demo, then:
- Stage your changes:
git add .- Commit your changes:
git commit -m "Add morse code implementation" # NOTE: please name the commit accordingly- Push your changes:
git push origin YourName- Create a pull request for your branch here