From feaa1411754025651f9488e2a555c8c7bdc5e025 Mon Sep 17 00:00:00 2001 From: tguyenn Date: Tue, 17 Sep 2024 18:30:36 -0500 Subject: [PATCH] fixed button link lol --- docs/_sections/_guide-general/forms.md | 2 +- .../_guide-primaries/sensors-and-actuators/actuators.md | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/_sections/_guide-general/forms.md b/docs/_sections/_guide-general/forms.md index eda9518d..c3b519e6 100644 --- a/docs/_sections/_guide-general/forms.md +++ b/docs/_sections/_guide-general/forms.md @@ -11,7 +11,7 @@ This page contains direct links and forms that you might need for Robotathon! [Robotathon Linktree](https://linktr.ee/robotathon2024?utm_source=linktree_profile_share<sid=e97f46bf-044a-4460-9ae9-b069387234ea){: .btn .btn-purple }
-[Robotathon Dues Form (https://utdirect.utexas.edu/txshop/item_details.WBX?application_name=ENENGALU&component=0&dept_prefix=EN&item_id=155&cat_seq_chosen=01&subcategory_seq_chosen=000)](a){: .btn .btn-green } +[Robotathon Dues Form](https://utdirect.utexas.edu/txshop/item_details.WBX?application_name=ENENGALU&component=0&dept_prefix=EN&item_id=155&cat_seq_chosen=01&subcategory_seq_chosen=000){: .btn .btn-green } [RAS Dues Form](https://utdirect.utexas.edu/nlogon/txshop/item_details.WBX?application_name=ENENGALU&component=0&dept_prefix=E2&item_id=199&cat_seq_chosen=02&subcategory_seq_chosen=000){: .btn .btn-green }
[RAS Safety Waiver](https://docs.google.com/forms/d/e/1FAIpQLSdRvNc2R3vnG0AXu4k7bypacyeB2jgF_D1nDPq76kE8WIIBmQ/viewform){: .btn .btn-green } diff --git a/docs/_sections/_guide-primaries/sensors-and-actuators/actuators.md b/docs/_sections/_guide-primaries/sensors-and-actuators/actuators.md index fc81158e..78fa80ec 100644 --- a/docs/_sections/_guide-primaries/sensors-and-actuators/actuators.md +++ b/docs/_sections/_guide-primaries/sensors-and-actuators/actuators.md @@ -57,6 +57,7 @@ The following is an example of configuring and running the motor in software: #define ENA 25 // PWM pin void setup() { + Serial.begin(115200); pinMode(IN1, OUTPUT); pinMode(IN2, OUTPUT); pinMode(ENA, OUTPUT); @@ -66,7 +67,7 @@ void loop() { // Move motor forward digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); - analogWrite(ENA, 128); // Set speed (0-255) +// analogWrite(ENA, 128); // Set speed (0-255) delay(2000); // Run for 2 seconds @@ -76,6 +77,11 @@ void loop() { analogWrite(ENA, 0); delay(2000); + + // Move motor backward + digitalWrite(IN1, LOW); + digitalWrite(IN2, HIGH); +// analogWrite(ENA, 128); // Set speed (0-255) } ``` More detailed information about the L298N motor controllers can be [found here!](https://lastminuteengineers.com/l298n-dc-stepper-driver-arduino-tutorial/)