Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.18 KB

README.md

File metadata and controls

45 lines (35 loc) · 2.18 KB

Emma - Homerton IDP

Group M108 (Steve the porridge bot)

Structure

Main Program

  • main.ino is the main program that calls the other modules
  • src contains the modules for each subsystem
    • src\include contains the header files
      • src\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

Other Programs

  • LineSensitivityPlot contains the code for calibrating the line sensor positions

System Diagram

System Diagram

Setup Instructions

First install:

Then setup the required libraries:

  1. In Arduino IDE, select Tools > Board > Board Manager. Install Arduino megaAVR Boards
  2. Select Tools > Manage libraries. Install:
    • WifiNINA
    • Adafruit Motor Shield V2 Library
  3. Close Arduino IDE, the rest can be done in VSCode.

Finally, setup VSCode:

  1. Open VSCode. Goto Extensions (icon on the left). Install Arduino.
  2. 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).
  3. Restart VSCode
  4. File > New Folder and create a folder for the project.
  5. 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!
  6. 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 an Arduino Uno??
  7. Again at the bottom, Select Programmer with whatever comes up (there should be only one option)
  8. Connect the Arduino. Then Select Serial Port, again there should be one option.
  9. At the top right there are icons for Verify and Upload. 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!