summaryrefslogtreecommitdiff
path: root/CODE
diff options
context:
space:
mode:
authorAbel Tim <abel@abel-ms7c95.home>2025-03-20 08:27:18 +0100
committerAbel Tim <abel@abel-ms7c95.home>2025-03-20 08:27:18 +0100
commit2bcc96fb10a4a84a7e5537d1d3258a7f919b6917 (patch)
tree47408aa5a3ba5cc040447cabf3771ff688972d3d /CODE
parent9c8f7e2f1101b4bb8e0c5459e14af253f150c8b7 (diff)
downloadrobotica-2bcc96fb10a4a84a7e5537d1d3258a7f919b6917.tar.gz
robotica-2bcc96fb10a4a84a7e5537d1d3258a7f919b6917.zip
code
Diffstat (limited to 'CODE')
-rw-r--r--CODE/debug/3mtest/5514468/5514468.ino37
-rw-r--r--CODE/debug/IR/communication/rx_teensy/rx_teensy.ino17
-rw-r--r--CODE/debug/IR/communication/tx_seeed/tx_seeed.ino20
-rw-r--r--CODE/debug/driving/3mtest/3mtest.ino (renamed from CODE/debug/3mtest/3mtest.ino)0
-rw-r--r--CODE/debug/driving/base_drive/base_drive.ino (renamed from CODE/debug/base_drive/base_drive.ino)0
5 files changed, 37 insertions, 37 deletions
diff --git a/CODE/debug/3mtest/5514468/5514468.ino b/CODE/debug/3mtest/5514468/5514468.ino
deleted file mode 100644
index fd37bc9..0000000
--- a/CODE/debug/3mtest/5514468/5514468.ino
+++ /dev/null
@@ -1,37 +0,0 @@
-
-int led = 13;
-
-int m1enA = 6;
-int m1enB = 5;
-int m1pwm1 = 3;
-int m1pwm2 = 4;
-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(led, OUTPUT);
-
-}
-
-// the loop routine runs over and over again forever:
-void loop() {
- digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
- delay(1000); // wait for a second
- digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
- delay(1000); // wait for a second
-}
diff --git a/CODE/debug/IR/communication/rx_teensy/rx_teensy.ino b/CODE/debug/IR/communication/rx_teensy/rx_teensy.ino
new file mode 100644
index 0000000..7dca76d
--- /dev/null
+++ b/CODE/debug/IR/communication/rx_teensy/rx_teensy.ino
@@ -0,0 +1,17 @@
+int incomingByte = 0; // for incoming serial data
+
+void setup() {
+ Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
+ Serial1.begin(9600);
+}
+
+void loop() {
+ // send data only when you receive data:
+ if (Serial1.available() > 0) {
+ // read the incoming byte:
+ incomingByte = Serial1.read();
+
+ // say what you got:
+ Serial.print(char(incomingByte));
+ }
+}
diff --git a/CODE/debug/IR/communication/tx_seeed/tx_seeed.ino b/CODE/debug/IR/communication/tx_seeed/tx_seeed.ino
new file mode 100644
index 0000000..fe6d1da
--- /dev/null
+++ b/CODE/debug/IR/communication/tx_seeed/tx_seeed.ino
@@ -0,0 +1,20 @@
+long randNumber;
+
+void setup() {
+ Serial.begin(9600);
+ Serial1.begin(9600);
+ delay(2500);
+ randomSeed(analogRead(0));
+
+}
+
+void loop() {
+ randNumber = random(300);
+ Serial.println("transmission test");
+ Serial1.println("transmission test");
+ Serial.println(randNumber);
+ Serial1.println(randNumber);
+ delay(1000);
+
+
+}
diff --git a/CODE/debug/3mtest/3mtest.ino b/CODE/debug/driving/3mtest/3mtest.ino
index 237dc88..237dc88 100644
--- a/CODE/debug/3mtest/3mtest.ino
+++ b/CODE/debug/driving/3mtest/3mtest.ino
diff --git a/CODE/debug/base_drive/base_drive.ino b/CODE/debug/driving/base_drive/base_drive.ino
index 8c49609..8c49609 100644
--- a/CODE/debug/base_drive/base_drive.ino
+++ b/CODE/debug/driving/base_drive/base_drive.ino