summaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorAbel Tim <abel.tim.t@gmail.com>2025-03-23 12:38:48 +0100
committerAbel Tim <abel.tim.t@gmail.com>2025-03-23 12:38:48 +0100
commit764c8722596f5b3bd01bb26848f7289b0972d7b0 (patch)
tree73b8090d371b0c0479f1b72803f3e0e0f0754dc1 /code
parenta52c13fdf50fbc19dfdce2d087b4739b96d46a0b (diff)
downloadrobotica-764c8722596f5b3bd01bb26848f7289b0972d7b0.tar.gz
robotica-764c8722596f5b3bd01bb26848f7289b0972d7b0.zip
updated repo structure
Diffstat (limited to 'code')
-rw-r--r--code/debug/motors/3m_test/.gitignore5
-rw-r--r--code/debug/motors/3m_test/.vscode/extensions.json10
-rw-r--r--code/debug/motors/3m_test/.vscode/tasks.json13
-rw-r--r--code/debug/motors/3m_test/include/README37
-rw-r--r--code/debug/motors/3m_test/lib/README46
-rw-r--r--code/debug/motors/3m_test/platformio.ini14
-rw-r--r--code/debug/motors/3m_test/src/main.cpp92
-rw-r--r--code/debug/motors/3m_test/test/README11
-rw-r--r--code/debug/motors/base_drive/.gitignore5
-rw-r--r--code/debug/motors/base_drive/.vscode/extensions.json10
-rw-r--r--code/debug/motors/base_drive/include/README37
-rw-r--r--code/debug/motors/base_drive/lib/README46
-rw-r--r--code/debug/motors/base_drive/platformio.ini14
-rw-r--r--code/debug/motors/base_drive/src/main.cpp143
-rw-r--r--code/debug/motors/base_drive/test/README11
-rw-r--r--code/main/XIAO_ir/.gitignore5
-rw-r--r--code/main/XIAO_ir/.vscode/extensions.json10
-rw-r--r--code/main/XIAO_ir/include/README37
-rw-r--r--code/main/XIAO_ir/lib/README46
-rw-r--r--code/main/XIAO_ir/platformio.ini14
-rw-r--r--code/main/XIAO_ir/src/main.cpp18
-rw-r--r--code/main/XIAO_ir/test/README11
-rw-r--r--code/main/openMV_cam/openMV.py18
-rw-r--r--code/main/teensy_goalie/.gitignore5
-rw-r--r--code/main/teensy_goalie/.vscode/extensions.json10
-rw-r--r--code/main/teensy_goalie/include/README37
-rw-r--r--code/main/teensy_goalie/lib/README46
-rw-r--r--code/main/teensy_goalie/platformio.ini14
-rw-r--r--code/main/teensy_goalie/src/main.cpp18
-rw-r--r--code/main/teensy_goalie/test/README11
-rw-r--r--code/main/teensy_player/.gitignore5
-rw-r--r--code/main/teensy_player/.vscode/extensions.json10
-rw-r--r--code/main/teensy_player/include/README37
-rw-r--r--code/main/teensy_player/lib/README46
-rw-r--r--code/main/teensy_player/platformio.ini14
-rw-r--r--code/main/teensy_player/src/main.cpp18
-rw-r--r--code/main/teensy_player/test/README11
37 files changed, 935 insertions, 0 deletions
diff --git a/code/debug/motors/3m_test/.gitignore b/code/debug/motors/3m_test/.gitignore
new file mode 100644
index 0000000..89cc49c
--- /dev/null
+++ b/code/debug/motors/3m_test/.gitignore
@@ -0,0 +1,5 @@
+.pio
+.vscode/.browse.c_cpp.db*
+.vscode/c_cpp_properties.json
+.vscode/launch.json
+.vscode/ipch
diff --git a/code/debug/motors/3m_test/.vscode/extensions.json b/code/debug/motors/3m_test/.vscode/extensions.json
new file mode 100644
index 0000000..080e70d
--- /dev/null
+++ b/code/debug/motors/3m_test/.vscode/extensions.json
@@ -0,0 +1,10 @@
+{
+ // See http://go.microsoft.com/fwlink/?LinkId=827846
+ // for the documentation about the extensions.json format
+ "recommendations": [
+ "platformio.platformio-ide"
+ ],
+ "unwantedRecommendations": [
+ "ms-vscode.cpptools-extension-pack"
+ ]
+}
diff --git a/code/debug/motors/3m_test/.vscode/tasks.json b/code/debug/motors/3m_test/.vscode/tasks.json
new file mode 100644
index 0000000..1bd48a9
--- /dev/null
+++ b/code/debug/motors/3m_test/.vscode/tasks.json
@@ -0,0 +1,13 @@
+{
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "type": "PlatformIO",
+ "task": "Check",
+ "problemMatcher": [
+ "$platformio"
+ ],
+ "label": "PlatformIO: Check"
+ }
+ ]
+} \ No newline at end of file
diff --git a/code/debug/motors/3m_test/include/README b/code/debug/motors/3m_test/include/README
new file mode 100644
index 0000000..49819c0
--- /dev/null
+++ b/code/debug/motors/3m_test/include/README
@@ -0,0 +1,37 @@
+
+This directory is intended for project header files.
+
+A header file is a file containing C declarations and macro definitions
+to be shared between several project source files. You request the use of a
+header file in your project source file (C, C++, etc) located in `src` folder
+by including it, with the C preprocessing directive `#include'.
+
+```src/main.c
+
+#include "header.h"
+
+int main (void)
+{
+ ...
+}
+```
+
+Including a header file produces the same results as copying the header file
+into each source file that needs it. Such copying would be time-consuming
+and error-prone. With a header file, the related declarations appear
+in only one place. If they need to be changed, they can be changed in one
+place, and programs that include the header file will automatically use the
+new version when next recompiled. The header file eliminates the labor of
+finding and changing all the copies as well as the risk that a failure to
+find one copy will result in inconsistencies within a program.
+
+In C, the convention is to give header files names that end with `.h'.
+
+Read more about using header files in official GCC documentation:
+
+* Include Syntax
+* Include Operation
+* Once-Only Headers
+* Computed Includes
+
+https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
diff --git a/code/debug/motors/3m_test/lib/README b/code/debug/motors/3m_test/lib/README
new file mode 100644
index 0000000..9379397
--- /dev/null
+++ b/code/debug/motors/3m_test/lib/README
@@ -0,0 +1,46 @@
+
+This directory is intended for project specific (private) libraries.
+PlatformIO will compile them to static libraries and link into the executable file.
+
+The source code of each library should be placed in a separate directory
+("lib/your_library_name/[Code]").
+
+For example, see the structure of the following example libraries `Foo` and `Bar`:
+
+|--lib
+| |
+| |--Bar
+| | |--docs
+| | |--examples
+| | |--src
+| | |- Bar.c
+| | |- Bar.h
+| | |- library.json (optional. for custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
+| |
+| |--Foo
+| | |- Foo.c
+| | |- Foo.h
+| |
+| |- README --> THIS FILE
+|
+|- platformio.ini
+|--src
+ |- main.c
+
+Example contents of `src/main.c` using Foo and Bar:
+```
+#include <Foo.h>
+#include <Bar.h>
+
+int main (void)
+{
+ ...
+}
+
+```
+
+The PlatformIO Library Dependency Finder will find automatically dependent
+libraries by scanning project source files.
+
+More information about PlatformIO Library Dependency Finder
+- https://docs.platformio.org/page/librarymanager/ldf.html
diff --git a/code/debug/motors/3m_test/platformio.ini b/code/debug/motors/3m_test/platformio.ini
new file mode 100644
index 0000000..a13d034
--- /dev/null
+++ b/code/debug/motors/3m_test/platformio.ini
@@ -0,0 +1,14 @@
+; PlatformIO Project Configuration File
+;
+; Build options: build flags, source filter
+; Upload options: custom upload port, speed and extra flags
+; Library options: dependencies, extra library storages
+; Advanced options: extra scripting
+;
+; Please visit documentation for the other options and examples
+; https://docs.platformio.org/page/projectconf.html
+
+[env:teensy41]
+platform = teensy
+board = teensy41
+framework = arduino
diff --git a/code/debug/motors/3m_test/src/main.cpp b/code/debug/motors/3m_test/src/main.cpp
new file mode 100644
index 0000000..24a4aff
--- /dev/null
+++ b/code/debug/motors/3m_test/src/main.cpp
@@ -0,0 +1,92 @@
+//a test to test all motors, no PWM
+#include <Arduino.h>
+
+int led = 13;
+
+int m1enA = 6;
+int m1enB = 5;
+int m1pwm1 = 4;
+int m1pwm2 = 3;
+int m1encoA = 32;
+int m1encoB = 31;
+
+int m2enA = 12;
+int m2enB = 11;
+int m2pwm1 = 9;
+int m2pwm2 = 10;
+int m2encoA = 30;
+int m2encoB = 29;
+
+int m3enA = 27;
+int m3enB = 26;
+int m3pwm1 = 24;
+int m3pwm2 = 25;
+int m3encoA = 28;
+int m3encoB = 23;
+
+
+void setup() {
+ pinMode(m1enA, OUTPUT);
+ pinMode(m1enB, OUTPUT);
+ pinMode(m1pwm1, OUTPUT);
+ pinMode(m1pwm2, OUTPUT);
+
+ pinMode(m2enA, OUTPUT);
+ pinMode(m2enB, OUTPUT);
+ pinMode(m2pwm1, OUTPUT);
+ pinMode(m2pwm2, OUTPUT);
+
+ pinMode(m3enA, OUTPUT);
+ pinMode(m3enB, OUTPUT);
+ pinMode(m3pwm1, OUTPUT);
+ pinMode(m3pwm2, OUTPUT);
+ Serial.begin(9600);
+ Serial.print("debug 001");
+
+}
+
+// the loop routine runs over and over again forever:
+void loop() {
+ digitalWrite(led, HIGH);
+
+ digitalWrite(m1enA, HIGH);
+ digitalWrite(m1enB, LOW);
+ digitalWrite(m1pwm1, HIGH);
+ digitalWrite(m1pwm2, LOW);
+
+
+ digitalWrite(m2enA, HIGH);
+ digitalWrite(m2enB, LOW);
+ digitalWrite(m2pwm1, HIGH);
+ digitalWrite(m2pwm2, LOW);
+
+ digitalWrite(m3enA, HIGH);
+ digitalWrite(m3enB, LOW);
+ digitalWrite(m3pwm1, HIGH);
+ digitalWrite(m3pwm2, LOW);
+
+ delay(5000);
+
+
+ digitalWrite(led, LOW);
+
+ digitalWrite(m1enA, HIGH);
+ digitalWrite(m1enB, LOW);
+ digitalWrite(m1pwm1, LOW);
+ digitalWrite(m1pwm2, LOW);
+
+ digitalWrite(m2enA, HIGH);
+ digitalWrite(m2enB, LOW);
+ digitalWrite(m2pwm1, LOW);
+ digitalWrite(m2pwm2, LOW);
+
+ digitalWrite(m3enA, HIGH);
+ digitalWrite(m3enB, LOW);
+ digitalWrite(m3pwm1, LOW);
+ digitalWrite(m3pwm2, LOW);
+
+
+ delay(5000);
+
+
+} \ No newline at end of file
diff --git a/code/debug/motors/3m_test/test/README b/code/debug/motors/3m_test/test/README
new file mode 100644
index 0000000..9b1e87b
--- /dev/null
+++ b/code/debug/motors/3m_test/test/README
@@ -0,0 +1,11 @@
+
+This directory is intended for PlatformIO Test Runner and project tests.
+
+Unit Testing is a software testing method by which individual units of
+source code, sets of one or more MCU program modules together with associated
+control data, usage procedures, and operating procedures, are tested to
+determine whether they are fit for use. Unit testing finds problems early
+in the development cycle.
+
+More information about PlatformIO Unit Testing:
+- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html
diff --git a/code/debug/motors/base_drive/.gitignore b/code/debug/motors/base_drive/.gitignore
new file mode 100644
index 0000000..89cc49c
--- /dev/null
+++ b/code/debug/motors/base_drive/.gitignore
@@ -0,0 +1,5 @@
+.pio
+.vscode/.browse.c_cpp.db*
+.vscode/c_cpp_properties.json
+.vscode/launch.json
+.vscode/ipch
diff --git a/code/debug/motors/base_drive/.vscode/extensions.json b/code/debug/motors/base_drive/.vscode/extensions.json
new file mode 100644
index 0000000..080e70d
--- /dev/null
+++ b/code/debug/motors/base_drive/.vscode/extensions.json
@@ -0,0 +1,10 @@
+{
+ // See http://go.microsoft.com/fwlink/?LinkId=827846
+ // for the documentation about the extensions.json format
+ "recommendations": [
+ "platformio.platformio-ide"
+ ],
+ "unwantedRecommendations": [
+ "ms-vscode.cpptools-extension-pack"
+ ]
+}
diff --git a/code/debug/motors/base_drive/include/README b/code/debug/motors/base_drive/include/README
new file mode 100644
index 0000000..49819c0
--- /dev/null
+++ b/code/debug/motors/base_drive/include/README
@@ -0,0 +1,37 @@
+
+This directory is intended for project header files.
+
+A header file is a file containing C declarations and macro definitions
+to be shared between several project source files. You request the use of a
+header file in your project source file (C, C++, etc) located in `src` folder
+by including it, with the C preprocessing directive `#include'.
+
+```src/main.c
+
+#include "header.h"
+
+int main (void)
+{
+ ...
+}
+```
+
+Including a header file produces the same results as copying the header file
+into each source file that needs it. Such copying would be time-consuming
+and error-prone. With a header file, the related declarations appear
+in only one place. If they need to be changed, they can be changed in one
+place, and programs that include the header file will automatically use the
+new version when next recompiled. The header file eliminates the labor of
+finding and changing all the copies as well as the risk that a failure to
+find one copy will result in inconsistencies within a program.
+
+In C, the convention is to give header files names that end with `.h'.
+
+Read more about using header files in official GCC documentation:
+
+* Include Syntax
+* Include Operation
+* Once-Only Headers
+* Computed Includes
+
+https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
diff --git a/code/debug/motors/base_drive/lib/README b/code/debug/motors/base_drive/lib/README
new file mode 100644
index 0000000..9379397
--- /dev/null
+++ b/code/debug/motors/base_drive/lib/README
@@ -0,0 +1,46 @@
+
+This directory is intended for project specific (private) libraries.
+PlatformIO will compile them to static libraries and link into the executable file.
+
+The source code of each library should be placed in a separate directory
+("lib/your_library_name/[Code]").
+
+For example, see the structure of the following example libraries `Foo` and `Bar`:
+
+|--lib
+| |
+| |--Bar
+| | |--docs
+| | |--examples
+| | |--src
+| | |- Bar.c
+| | |- Bar.h
+| | |- library.json (optional. for custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
+| |
+| |--Foo
+| | |- Foo.c
+| | |- Foo.h
+| |
+| |- README --> THIS FILE
+|
+|- platformio.ini
+|--src
+ |- main.c
+
+Example contents of `src/main.c` using Foo and Bar:
+```
+#include <Foo.h>
+#include <Bar.h>
+
+int main (void)
+{
+ ...
+}
+
+```
+
+The PlatformIO Library Dependency Finder will find automatically dependent
+libraries by scanning project source files.
+
+More information about PlatformIO Library Dependency Finder
+- https://docs.platformio.org/page/librarymanager/ldf.html
diff --git a/code/debug/motors/base_drive/platformio.ini b/code/debug/motors/base_drive/platformio.ini
new file mode 100644
index 0000000..a13d034
--- /dev/null
+++ b/code/debug/motors/base_drive/platformio.ini
@@ -0,0 +1,14 @@
+; PlatformIO Project Configuration File
+;
+; Build options: build flags, source filter
+; Upload options: custom upload port, speed and extra flags
+; Library options: dependencies, extra library storages
+; Advanced options: extra scripting
+;
+; Please visit documentation for the other options and examples
+; https://docs.platformio.org/page/projectconf.html
+
+[env:teensy41]
+platform = teensy
+board = teensy41
+framework = arduino
diff --git a/code/debug/motors/base_drive/src/main.cpp b/code/debug/motors/base_drive/src/main.cpp
new file mode 100644
index 0000000..95fd327
--- /dev/null
+++ b/code/debug/motors/base_drive/src/main.cpp
@@ -0,0 +1,143 @@
+//base code for six direction driving
+
+#include <Arduino.h>
+
+int led = 13;
+
+int m1enA = 6;
+int m1enB = 5;
+int m1pwm1 = 4;
+int m1pwm2 = 3;
+int m1encoA = 32;
+int m1encoB = 31;
+
+int m2enA = 12;
+int m2enB = 11;
+int m2pwm1 = 9;
+int m2pwm2 = 10;
+int m2encoA = 30;
+int m2encoB = 29;
+
+int m3enA = 27;
+int m3enB = 26;
+int m3pwm1 = 24;
+int m3pwm2 = 25;
+int m3encoA = 28;
+int m3encoB = 23;
+
+void setup() {
+ pinMode(m1enA, OUTPUT);
+ pinMode(m1enB, OUTPUT);
+ pinMode(m1pwm1, OUTPUT);
+ pinMode(m1pwm2, OUTPUT);
+
+ pinMode(m2enA, OUTPUT);
+ pinMode(m2enB, OUTPUT);
+ pinMode(m2pwm1, OUTPUT);
+ pinMode(m2pwm2, OUTPUT);
+
+ pinMode(m3enA, OUTPUT);
+ pinMode(m3enB, OUTPUT);
+ pinMode(m3pwm1, OUTPUT);
+ pinMode(m3pwm2, OUTPUT);
+ Serial.begin(9600);
+ Serial.print("start");
+
+}
+
+
+void drive(int speed, int direction){
+ //
+ // Direction............|.Motor 1.|.Motor 2.|.Motor 3.
+ // 0deg(forward)........|....0....|....-....|....+....
+ // 60deg................|....+....|....-....|....0....
+ // 120deg...............|....+....|....0....|....-....
+ // 180 deg (backward)...|....0....|....+....|....-....
+ // 240 deg..............|....-....|....+....|....0....
+ // 300 deg..............|....-....|....0....|....+....
+ //
+
+ digitalWrite(m1enA, HIGH);
+ digitalWrite(m2enA, HIGH);
+ digitalWrite(m3enA, HIGH);
+ digitalWrite(m1enB, LOW);
+ digitalWrite(m2enB, LOW);
+ digitalWrite(m3enB, LOW);
+ Serial.println("debug2");
+ Serial.println(direction);
+ if(direction>330 || direction<=30){
+ //0 deg
+ digitalWrite(m1pwm1, LOW);
+ digitalWrite(m1pwm2, HIGH);
+
+ digitalWrite(m2pwm1, LOW);
+ digitalWrite(m2pwm2, LOW);
+
+ digitalWrite(m3pwm1, LOW);
+ digitalWrite(m3pwm2, HIGH);
+ Serial.println("0 deg");
+ }else if (direction>30 && direction <= 90){
+ //60 deg
+ Serial.println("60deg");
+ digitalWrite(m1pwm1, LOW);
+ digitalWrite(m1pwm2, LOW);
+
+ digitalWrite(m2pwm1, HIGH);
+ digitalWrite(m2pwm2, LOW);
+
+ digitalWrite(m3pwm1, LOW);
+ digitalWrite(m3pwm2, HIGH);
+ }else if (direction>90 && direction <= 150){
+ //120 deg
+ Serial.println("120 deg");
+ digitalWrite(m1pwm1, HIGH);
+ digitalWrite(m1pwm2, LOW);
+ digitalWrite(m2pwm1, HIGH);
+ digitalWrite(m2pwm2, LOW);
+ digitalWrite(m3pwm1, LOW);
+ digitalWrite(m3pwm2, LOW);
+ }else if (direction > 150 && direction <= 210) {
+ //180 degrees
+ Serial.println("on 180");
+ digitalWrite(m1pwm1, HIGH);
+ digitalWrite(m1pwm2, LOW);
+
+ digitalWrite(m2pwm1, LOW);
+ digitalWrite(m2pwm2, LOW);
+
+ digitalWrite(m3pwm1, HIGH);
+ digitalWrite(m3pwm2, LOW);
+ }else if (direction > 210 && direction <= 270) {
+ //240 degrees
+ digitalWrite(m1pwm1, LOW);
+ digitalWrite(m1pwm2, LOW);
+
+ digitalWrite(m2pwm1, LOW);
+ digitalWrite(m2pwm2, HIGH);
+
+ digitalWrite(m3pwm1, HIGH);
+ digitalWrite(m3pwm2, LOW);
+ }else if (direction > 270 && direction <= 330) {
+ //300 degrees
+ digitalWrite(m1pwm1, LOW);
+ digitalWrite(m1pwm2, HIGH);
+ digitalWrite(m2pwm1, LOW);
+ digitalWrite(m2pwm2, HIGH);
+ Serial.println("300deg");
+ digitalWrite(m3pwm1, LOW);
+ digitalWrite(m3pwm2, LOW);
+ }else{
+ Serial.println("how?");
+ }
+}
+
+// the loop routine runs over and over again forever:
+void loop() {
+ drive(255, 0);
+ Serial.println("ffor");
+ delay(1500);
+ drive(255, 180);
+ Serial.println("back");
+ delay(1500);
+
+} \ No newline at end of file
diff --git a/code/debug/motors/base_drive/test/README b/code/debug/motors/base_drive/test/README
new file mode 100644
index 0000000..9b1e87b
--- /dev/null
+++ b/code/debug/motors/base_drive/test/README
@@ -0,0 +1,11 @@
+
+This directory is intended for PlatformIO Test Runner and project tests.
+
+Unit Testing is a software testing method by which individual units of
+source code, sets of one or more MCU program modules together with associated
+control data, usage procedures, and operating procedures, are tested to
+determine whether they are fit for use. Unit testing finds problems early
+in the development cycle.
+
+More information about PlatformIO Unit Testing:
+- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html
diff --git a/code/main/XIAO_ir/.gitignore b/code/main/XIAO_ir/.gitignore
new file mode 100644
index 0000000..89cc49c
--- /dev/null
+++ b/code/main/XIAO_ir/.gitignore
@@ -0,0 +1,5 @@
+.pio
+.vscode/.browse.c_cpp.db*
+.vscode/c_cpp_properties.json
+.vscode/launch.json
+.vscode/ipch
diff --git a/code/main/XIAO_ir/.vscode/extensions.json b/code/main/XIAO_ir/.vscode/extensions.json
new file mode 100644
index 0000000..080e70d
--- /dev/null
+++ b/code/main/XIAO_ir/.vscode/extensions.json
@@ -0,0 +1,10 @@
+{
+ // See http://go.microsoft.com/fwlink/?LinkId=827846
+ // for the documentation about the extensions.json format
+ "recommendations": [
+ "platformio.platformio-ide"
+ ],
+ "unwantedRecommendations": [
+ "ms-vscode.cpptools-extension-pack"
+ ]
+}
diff --git a/code/main/XIAO_ir/include/README b/code/main/XIAO_ir/include/README
new file mode 100644
index 0000000..49819c0
--- /dev/null
+++ b/code/main/XIAO_ir/include/README
@@ -0,0 +1,37 @@
+
+This directory is intended for project header files.
+
+A header file is a file containing C declarations and macro definitions
+to be shared between several project source files. You request the use of a
+header file in your project source file (C, C++, etc) located in `src` folder
+by including it, with the C preprocessing directive `#include'.
+
+```src/main.c
+
+#include "header.h"
+
+int main (void)
+{
+ ...
+}
+```
+
+Including a header file produces the same results as copying the header file
+into each source file that needs it. Such copying would be time-consuming
+and error-prone. With a header file, the related declarations appear
+in only one place. If they need to be changed, they can be changed in one
+place, and programs that include the header file will automatically use the
+new version when next recompiled. The header file eliminates the labor of
+finding and changing all the copies as well as the risk that a failure to
+find one copy will result in inconsistencies within a program.
+
+In C, the convention is to give header files names that end with `.h'.
+
+Read more about using header files in official GCC documentation:
+
+* Include Syntax
+* Include Operation
+* Once-Only Headers
+* Computed Includes
+
+https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
diff --git a/code/main/XIAO_ir/lib/README b/code/main/XIAO_ir/lib/README
new file mode 100644
index 0000000..9379397
--- /dev/null
+++ b/code/main/XIAO_ir/lib/README
@@ -0,0 +1,46 @@
+
+This directory is intended for project specific (private) libraries.
+PlatformIO will compile them to static libraries and link into the executable file.
+
+The source code of each library should be placed in a separate directory
+("lib/your_library_name/[Code]").
+
+For example, see the structure of the following example libraries `Foo` and `Bar`:
+
+|--lib
+| |
+| |--Bar
+| | |--docs
+| | |--examples
+| | |--src
+| | |- Bar.c
+| | |- Bar.h
+| | |- library.json (optional. for custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
+| |
+| |--Foo
+| | |- Foo.c
+| | |- Foo.h
+| |
+| |- README --> THIS FILE
+|
+|- platformio.ini
+|--src
+ |- main.c
+
+Example contents of `src/main.c` using Foo and Bar:
+```
+#include <Foo.h>
+#include <Bar.h>
+
+int main (void)
+{
+ ...
+}
+
+```
+
+The PlatformIO Library Dependency Finder will find automatically dependent
+libraries by scanning project source files.
+
+More information about PlatformIO Library Dependency Finder
+- https://docs.platformio.org/page/librarymanager/ldf.html
diff --git a/code/main/XIAO_ir/platformio.ini b/code/main/XIAO_ir/platformio.ini
new file mode 100644
index 0000000..87a4592
--- /dev/null
+++ b/code/main/XIAO_ir/platformio.ini
@@ -0,0 +1,14 @@
+; PlatformIO Project Configuration File
+;
+; Build options: build flags, source filter
+; Upload options: custom upload port, speed and extra flags
+; Library options: dependencies, extra library storages
+; Advanced options: extra scripting
+;
+; Please visit documentation for the other options and examples
+; https://docs.platformio.org/page/projectconf.html
+
+[env:seeed_xiao]
+platform = atmelsam
+board = seeed_xiao
+framework = arduino
diff --git a/code/main/XIAO_ir/src/main.cpp b/code/main/XIAO_ir/src/main.cpp
new file mode 100644
index 0000000..cb9fbba
--- /dev/null
+++ b/code/main/XIAO_ir/src/main.cpp
@@ -0,0 +1,18 @@
+#include <Arduino.h>
+
+// put function declarations here:
+int myFunction(int, int);
+
+void setup() {
+ // put your setup code here, to run once:
+ int result = myFunction(2, 3);
+}
+
+void loop() {
+ // put your main code here, to run repeatedly:
+}
+
+// put function definitions here:
+int myFunction(int x, int y) {
+ return x + y;
+} \ No newline at end of file
diff --git a/code/main/XIAO_ir/test/README b/code/main/XIAO_ir/test/README
new file mode 100644
index 0000000..9b1e87b
--- /dev/null
+++ b/code/main/XIAO_ir/test/README
@@ -0,0 +1,11 @@
+
+This directory is intended for PlatformIO Test Runner and project tests.
+
+Unit Testing is a software testing method by which individual units of
+source code, sets of one or more MCU program modules together with associated
+control data, usage procedures, and operating procedures, are tested to
+determine whether they are fit for use. Unit testing finds problems early
+in the development cycle.
+
+More information about PlatformIO Unit Testing:
+- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html
diff --git a/code/main/openMV_cam/openMV.py b/code/main/openMV_cam/openMV.py
new file mode 100644
index 0000000..73194c1
--- /dev/null
+++ b/code/main/openMV_cam/openMV.py
@@ -0,0 +1,18 @@
+# blinky.py
+
+# This work is licensed under the MIT license.
+# Copyright (c) 2013-2023 OpenMV LLC. All rights reserved.
+# https://github.com/openmv/openmv/blob/master/LICENSE
+#
+# Blinky example
+
+import time
+from machine import LED
+
+led = LED("LED_BLUE")
+
+while True:
+ led.on()
+ time.sleep_ms(500)
+ led.off()
+ time.sleep_ms(500)
diff --git a/code/main/teensy_goalie/.gitignore b/code/main/teensy_goalie/.gitignore
new file mode 100644
index 0000000..89cc49c
--- /dev/null
+++ b/code/main/teensy_goalie/.gitignore
@@ -0,0 +1,5 @@
+.pio
+.vscode/.browse.c_cpp.db*
+.vscode/c_cpp_properties.json
+.vscode/launch.json
+.vscode/ipch
diff --git a/code/main/teensy_goalie/.vscode/extensions.json b/code/main/teensy_goalie/.vscode/extensions.json
new file mode 100644
index 0000000..080e70d
--- /dev/null
+++ b/code/main/teensy_goalie/.vscode/extensions.json
@@ -0,0 +1,10 @@
+{
+ // See http://go.microsoft.com/fwlink/?LinkId=827846
+ // for the documentation about the extensions.json format
+ "recommendations": [
+ "platformio.platformio-ide"
+ ],
+ "unwantedRecommendations": [
+ "ms-vscode.cpptools-extension-pack"
+ ]
+}
diff --git a/code/main/teensy_goalie/include/README b/code/main/teensy_goalie/include/README
new file mode 100644
index 0000000..49819c0
--- /dev/null
+++ b/code/main/teensy_goalie/include/README
@@ -0,0 +1,37 @@
+
+This directory is intended for project header files.
+
+A header file is a file containing C declarations and macro definitions
+to be shared between several project source files. You request the use of a
+header file in your project source file (C, C++, etc) located in `src` folder
+by including it, with the C preprocessing directive `#include'.
+
+```src/main.c
+
+#include "header.h"
+
+int main (void)
+{
+ ...
+}
+```
+
+Including a header file produces the same results as copying the header file
+into each source file that needs it. Such copying would be time-consuming
+and error-prone. With a header file, the related declarations appear
+in only one place. If they need to be changed, they can be changed in one
+place, and programs that include the header file will automatically use the
+new version when next recompiled. The header file eliminates the labor of
+finding and changing all the copies as well as the risk that a failure to
+find one copy will result in inconsistencies within a program.
+
+In C, the convention is to give header files names that end with `.h'.
+
+Read more about using header files in official GCC documentation:
+
+* Include Syntax
+* Include Operation
+* Once-Only Headers
+* Computed Includes
+
+https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
diff --git a/code/main/teensy_goalie/lib/README b/code/main/teensy_goalie/lib/README
new file mode 100644
index 0000000..9379397
--- /dev/null
+++ b/code/main/teensy_goalie/lib/README
@@ -0,0 +1,46 @@
+
+This directory is intended for project specific (private) libraries.
+PlatformIO will compile them to static libraries and link into the executable file.
+
+The source code of each library should be placed in a separate directory
+("lib/your_library_name/[Code]").
+
+For example, see the structure of the following example libraries `Foo` and `Bar`:
+
+|--lib
+| |
+| |--Bar
+| | |--docs
+| | |--examples
+| | |--src
+| | |- Bar.c
+| | |- Bar.h
+| | |- library.json (optional. for custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
+| |
+| |--Foo
+| | |- Foo.c
+| | |- Foo.h
+| |
+| |- README --> THIS FILE
+|
+|- platformio.ini
+|--src
+ |- main.c
+
+Example contents of `src/main.c` using Foo and Bar:
+```
+#include <Foo.h>
+#include <Bar.h>
+
+int main (void)
+{
+ ...
+}
+
+```
+
+The PlatformIO Library Dependency Finder will find automatically dependent
+libraries by scanning project source files.
+
+More information about PlatformIO Library Dependency Finder
+- https://docs.platformio.org/page/librarymanager/ldf.html
diff --git a/code/main/teensy_goalie/platformio.ini b/code/main/teensy_goalie/platformio.ini
new file mode 100644
index 0000000..a13d034
--- /dev/null
+++ b/code/main/teensy_goalie/platformio.ini
@@ -0,0 +1,14 @@
+; PlatformIO Project Configuration File
+;
+; Build options: build flags, source filter
+; Upload options: custom upload port, speed and extra flags
+; Library options: dependencies, extra library storages
+; Advanced options: extra scripting
+;
+; Please visit documentation for the other options and examples
+; https://docs.platformio.org/page/projectconf.html
+
+[env:teensy41]
+platform = teensy
+board = teensy41
+framework = arduino
diff --git a/code/main/teensy_goalie/src/main.cpp b/code/main/teensy_goalie/src/main.cpp
new file mode 100644
index 0000000..cb9fbba
--- /dev/null
+++ b/code/main/teensy_goalie/src/main.cpp
@@ -0,0 +1,18 @@
+#include <Arduino.h>
+
+// put function declarations here:
+int myFunction(int, int);
+
+void setup() {
+ // put your setup code here, to run once:
+ int result = myFunction(2, 3);
+}
+
+void loop() {
+ // put your main code here, to run repeatedly:
+}
+
+// put function definitions here:
+int myFunction(int x, int y) {
+ return x + y;
+} \ No newline at end of file
diff --git a/code/main/teensy_goalie/test/README b/code/main/teensy_goalie/test/README
new file mode 100644
index 0000000..9b1e87b
--- /dev/null
+++ b/code/main/teensy_goalie/test/README
@@ -0,0 +1,11 @@
+
+This directory is intended for PlatformIO Test Runner and project tests.
+
+Unit Testing is a software testing method by which individual units of
+source code, sets of one or more MCU program modules together with associated
+control data, usage procedures, and operating procedures, are tested to
+determine whether they are fit for use. Unit testing finds problems early
+in the development cycle.
+
+More information about PlatformIO Unit Testing:
+- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html
diff --git a/code/main/teensy_player/.gitignore b/code/main/teensy_player/.gitignore
new file mode 100644
index 0000000..89cc49c
--- /dev/null
+++ b/code/main/teensy_player/.gitignore
@@ -0,0 +1,5 @@
+.pio
+.vscode/.browse.c_cpp.db*
+.vscode/c_cpp_properties.json
+.vscode/launch.json
+.vscode/ipch
diff --git a/code/main/teensy_player/.vscode/extensions.json b/code/main/teensy_player/.vscode/extensions.json
new file mode 100644
index 0000000..080e70d
--- /dev/null
+++ b/code/main/teensy_player/.vscode/extensions.json
@@ -0,0 +1,10 @@
+{
+ // See http://go.microsoft.com/fwlink/?LinkId=827846
+ // for the documentation about the extensions.json format
+ "recommendations": [
+ "platformio.platformio-ide"
+ ],
+ "unwantedRecommendations": [
+ "ms-vscode.cpptools-extension-pack"
+ ]
+}
diff --git a/code/main/teensy_player/include/README b/code/main/teensy_player/include/README
new file mode 100644
index 0000000..49819c0
--- /dev/null
+++ b/code/main/teensy_player/include/README
@@ -0,0 +1,37 @@
+
+This directory is intended for project header files.
+
+A header file is a file containing C declarations and macro definitions
+to be shared between several project source files. You request the use of a
+header file in your project source file (C, C++, etc) located in `src` folder
+by including it, with the C preprocessing directive `#include'.
+
+```src/main.c
+
+#include "header.h"
+
+int main (void)
+{
+ ...
+}
+```
+
+Including a header file produces the same results as copying the header file
+into each source file that needs it. Such copying would be time-consuming
+and error-prone. With a header file, the related declarations appear
+in only one place. If they need to be changed, they can be changed in one
+place, and programs that include the header file will automatically use the
+new version when next recompiled. The header file eliminates the labor of
+finding and changing all the copies as well as the risk that a failure to
+find one copy will result in inconsistencies within a program.
+
+In C, the convention is to give header files names that end with `.h'.
+
+Read more about using header files in official GCC documentation:
+
+* Include Syntax
+* Include Operation
+* Once-Only Headers
+* Computed Includes
+
+https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
diff --git a/code/main/teensy_player/lib/README b/code/main/teensy_player/lib/README
new file mode 100644
index 0000000..9379397
--- /dev/null
+++ b/code/main/teensy_player/lib/README
@@ -0,0 +1,46 @@
+
+This directory is intended for project specific (private) libraries.
+PlatformIO will compile them to static libraries and link into the executable file.
+
+The source code of each library should be placed in a separate directory
+("lib/your_library_name/[Code]").
+
+For example, see the structure of the following example libraries `Foo` and `Bar`:
+
+|--lib
+| |
+| |--Bar
+| | |--docs
+| | |--examples
+| | |--src
+| | |- Bar.c
+| | |- Bar.h
+| | |- library.json (optional. for custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
+| |
+| |--Foo
+| | |- Foo.c
+| | |- Foo.h
+| |
+| |- README --> THIS FILE
+|
+|- platformio.ini
+|--src
+ |- main.c
+
+Example contents of `src/main.c` using Foo and Bar:
+```
+#include <Foo.h>
+#include <Bar.h>
+
+int main (void)
+{
+ ...
+}
+
+```
+
+The PlatformIO Library Dependency Finder will find automatically dependent
+libraries by scanning project source files.
+
+More information about PlatformIO Library Dependency Finder
+- https://docs.platformio.org/page/librarymanager/ldf.html
diff --git a/code/main/teensy_player/platformio.ini b/code/main/teensy_player/platformio.ini
new file mode 100644
index 0000000..a13d034
--- /dev/null
+++ b/code/main/teensy_player/platformio.ini
@@ -0,0 +1,14 @@
+; PlatformIO Project Configuration File
+;
+; Build options: build flags, source filter
+; Upload options: custom upload port, speed and extra flags
+; Library options: dependencies, extra library storages
+; Advanced options: extra scripting
+;
+; Please visit documentation for the other options and examples
+; https://docs.platformio.org/page/projectconf.html
+
+[env:teensy41]
+platform = teensy
+board = teensy41
+framework = arduino
diff --git a/code/main/teensy_player/src/main.cpp b/code/main/teensy_player/src/main.cpp
new file mode 100644
index 0000000..cb9fbba
--- /dev/null
+++ b/code/main/teensy_player/src/main.cpp
@@ -0,0 +1,18 @@
+#include <Arduino.h>
+
+// put function declarations here:
+int myFunction(int, int);
+
+void setup() {
+ // put your setup code here, to run once:
+ int result = myFunction(2, 3);
+}
+
+void loop() {
+ // put your main code here, to run repeatedly:
+}
+
+// put function definitions here:
+int myFunction(int x, int y) {
+ return x + y;
+} \ No newline at end of file
diff --git a/code/main/teensy_player/test/README b/code/main/teensy_player/test/README
new file mode 100644
index 0000000..9b1e87b
--- /dev/null
+++ b/code/main/teensy_player/test/README
@@ -0,0 +1,11 @@
+
+This directory is intended for PlatformIO Test Runner and project tests.
+
+Unit Testing is a software testing method by which individual units of
+source code, sets of one or more MCU program modules together with associated
+control data, usage procedures, and operating procedures, are tested to
+determine whether they are fit for use. Unit testing finds problems early
+in the development cycle.
+
+More information about PlatformIO Unit Testing:
+- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html