Skip to content

Commit

Permalink
removed motor controller and DC motor content. added buck converter c…
Browse files Browse the repository at this point in the history
…ontent
  • Loading branch information
tguyenn committed Oct 6, 2024
1 parent 51a3f04 commit b6c36ea
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
Binary file added docs/_assets/images/buck_converter_disable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_assets/images/buck_converter_power.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,23 @@ Warning: Be careful to not short (connect) a power pin directly to a ground pin.
## Powering the ESP32
You can power your ESP32 by 2 methods: USB connection or external battery pack.

The USB connection to your computer is necessary for uploading and debugging your code through the serial monitor. It would be easiest to keep using the USB connection until later in the competition when testing the entire system.
The USB connection to your computer is necessary for uploading and debugging your code through the serial monitor. It would be easiest to keep using the USB connection until later in the competition when testing the full system.

{: .highlight}
Note: Do NOT power your ESP32 through its 5V pin with the battery pack while simultaneously connecting it to your computer! This may irreversibly damage your devices (only do one at a time).
Note: Do NOT power your ESP32 through its 5V pin with the battery pack while simultaneously connecting it to your computer! This may irreversibly damage your devices (only do one power connection at a time).
{: .callout-toby}

Using the external battery pack is detailed in the [Actuators page](https://ut-ras.github.io/RobotathonESP32/sensors-and-actuators/actuators) because we will be using the motor driver's 5V output to power the ESP32.
<!-- Using the external battery pack is detailed in the [Actuators page](https://ut-ras.github.io/RobotathonESP32/sensors-and-actuators/actuators) because we will be using the motor driver's 5V output to power the ESP32. -->

<img src="{{ '/_assets/images/buck_converter_power.png' | prepend: site.baseurl }}" alt="buck_converter_power.png">

First we will go over using an external power source for the ESP32. For this competition, you will be able to control your robot with a wireless game controller to navigate around the field (sensor challenges should be completed autonomously). It would be impractical to power your ESP32 through USB-laptop connection on the field, so you will need a battery pack. We need to reduce the voltage of the battery pack down to a level the ESP32 can safely use through the buck converter.

If you want to power your ESP32 and motors while using a USB connection, simply **securely** place one of the battery leads to an unused row in your breadboard (like picture below).

<img src="{{ '/_assets/images/buck_converter_disable.png' | prepend: site.baseurl }}" alt="buck_converter_disable.png">

You should now be able use your USB connection safely!

If you want to know more about any features, feel free to ask a mentor or Google for more information :)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ nav_order: 4

# Actuators

The word "actuators" is just a fancy word for "devices that create motion," which can include anything ranging from hydraulic pistons to motors. In our case, electric motors will be the key to your robot's motion! You will deal with two types electrical actuators in this competition: DC motors and servo motors.
The word "actuators" is just a fancy word for "devices that create motion," which can include anything ranging from hydraulic pistons to motors. In our case, electric motors will be the key to your robot's motion! In this competition, you will be dealing with servo motors.

<!-- below text is now irrelevant because we are moving away from DC motors lol -->
<!--
# DC Motors
<img src="{{ '/_assets/images/dc_motor.jpg' | prepend: site.baseurl }}" alt="dc_motor.jpg" width="200" height="300">
Expand Down Expand Up @@ -93,7 +95,7 @@ void loop() {
delay(1000); // Stop for 1 second
}
```
Again, more detailed information about the L298N motor controllers can be [found here!](https://lastminuteengineers.com/l298n-dc-stepper-driver-arduino-tutorial/)
Again, more detailed information about the L298N motor controllers can be [found here!](https://lastminuteengineers.com/l298n-dc-stepper-driver-arduino-tutorial/) -->

# Servo Motors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Here is a wiring diagram:

<img src="{{ '/_assets/images/color_sensor_wiring.png' | prepend: site.baseurl }}" alt="color_sensor_wiring.png">

The color sensor layout does not exactly match the sensor you have, but all the pin names should be the same (see table below)

| Color Sensor Pin | ESP32 Pin |
|:-------------|:------------------|
| VIN | 3.3V |
Expand Down

0 comments on commit b6c36ea

Please sign in to comment.