Group M108 (Steve the porridge bot)
main.ino
is the main program that calls the other modulessrc
contains the modules for each subsystemsrc\include
contains the header filessrc\include\util.h
contains the key constants, pin assignments and enums
Wifi debug Python client
contains the PC code that connects to the arduino for debugging
LineSensitivityPlot
contains the code for calibrating the line sensor positions
First install:
- Arduino IDE
- VS Code (recommended) https://code.visualstudio.com/
- Git
Then setup the required libraries:
- In Arduino IDE, select Tools > Board > Board Manager. Install
Arduino megaAVR Boards
- Select Tools > Manage libraries. Install:
- WifiNINA
- Adafruit Motor Shield V2 Library
- Close Arduino IDE, the rest can be done in VSCode.
Finally, setup VSCode:
- Open VSCode. Goto Extensions (icon on the left). Install
Arduino
. - Once installed goto File > Preferences > Settings > Extensions > Arduino configuration > Arduino: Path. Find where Arduino IDE is installed on your computer and type the path here (e.g
C:\Program Files\Arduino
). - Restart VSCode
- File > New Folder and create a folder for the project.
- Terminal > new Terminal. Run
git clone https://github.com/Joe-Speers/IDP-Emma-Homerton.git
You should now see all the project files appear in the left hand pane. This will not work unless git is installed! - Open one of the .ino files. In the bottom pane on the right select the board as
Arduino Uno WiFi Rev2
. If using the Orange borad this will be different, i think it is just anArduino Uno
?? - Again at the bottom, Select Programmer with whatever comes up (there should be only one option)
- Connect the Arduino. Then
Select Serial Port
, again there should be one option. - At the top right there are icons for
Verify
andUpload
. Click upload and check this is succesful.
To upload changes to the repository you can use the inbuilt git manager (Source Control
) or use the terminal. Please add helpful commit messages!