diff --git a/docs/_assets/images/buck_converter_multimeter.png b/docs/_assets/images/buck_converter_multimeter.png new file mode 100644 index 00000000..81835579 Binary files /dev/null and b/docs/_assets/images/buck_converter_multimeter.png differ diff --git a/docs/_assets/images/buck_converter_part1.png b/docs/_assets/images/buck_converter_part1.png new file mode 100644 index 00000000..6cc44778 Binary files /dev/null and b/docs/_assets/images/buck_converter_part1.png differ diff --git a/docs/_sections/_guide-primaries/getting-started/microcontroller-interface.md b/docs/_sections/_guide-primaries/getting-started/microcontroller-interface.md index 17375504..2dc5049c 100644 --- a/docs/_sections/_guide-primaries/getting-started/microcontroller-interface.md +++ b/docs/_sections/_guide-primaries/getting-started/microcontroller-interface.md @@ -25,9 +25,7 @@ Warning: Be careful to not short (connect) a power pin directly to a ground pin. {: .callout-toby} ## 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 full system. +You can power your ESP32 by 2 methods: battery pack or USB connection. {: .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 power connection at a time). @@ -35,11 +33,29 @@ Note: Do NOT power your ESP32 through its 5V pin with the battery pack while sim +### External Power Source + +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 (9V) down to a level the ESP32 can safely use (5V) through the buck converter. + +Below are the steps to interface the buck converter to your microcontroller: + +1.) Connect the red wire from the battery pack to the IN+ on the buck converter and the black wire from the battery pack to the IN- on the buck converter (convention dictates that red = hot wire and black = ground) + +buck_converter_part1.png + +2.) Grab a multimeter, put it into voltage reading mode, and attach the leads to OUT+ and OUT-. Adjust the small yellow screw on the buck converter until the multimeter reads a voltage of 5V. + +buck_converter_multimeter.png + +3.) Remove the multimeter leads and attach a red wire from the buck converter's OUT+ terminal to the ESP32's 5V pin. Attach a black wire from the buck converter's OUT- terminal to the ESP32's GND pin. + 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. +### USB Connection + +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. -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). +If you want to power your ESP32 while using a USB connection, **securely** place one of the battery leads to an unused row in your breadboard (like picture below). buck_converter_disable.png