Skip to content

UBC-Thunderbots/elec-production-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation


AUTO-PRODUCTION TESTS


These are the current files to test the Power and UI Boards.
Last updated by: Ryan Nguyen

Available files:

>power_autoprod

  • communication_externalESP32
  • communication_powerboardside

>ui_autoprod

  • buffers
  • mosfet_opto

to-do:

.Integrate the ui_autoprod files together into one single file
.Finish LTC4151-ProductionTest.ino along with other production tests


FLASHING TO THE ESP32


this tutorial uses Arduino Version 1.8.19, not Arduino 2.x.x

[1] Starting at the default IDE window, navigate to file --> preferences

1

[2] Inside the preferences window paste the following text into the board manager URLs:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

2

[3] Click 'OK', then navigate to tools --> board: --> boards manager

3

[4] Type into the search 'esp32' and install the one library that pops up (latest should be fine, this one is v2.0.6)

4

[5] Once the library is installed go back to tools --> board: --> (you should now see) ESP32 Arduino --> ESP32 PICO-D4

5

[6] From here you can change settings within tools such as BAUD rate, serial port, FLASH erase .. etc.

6

[7] To start flashing, assuming you have a sketch ready that compiles, make sure that the port in tools is the same port as the one connected to your ESP32. You can verify by going to the device manager on your windows machine and looking for a UART BRIDGE device in the PORTS (COM & LPT) drop-down:

Screenshot 2023-12-02 131117

[8] Once that is all done, you can hit the sketch upload button within Arduino IDE. Monitor the terminal, and once you see the connecting....... message hit the BOOT button on the ESP32. Another option is holding down the button and releasing it once the connecting message is seen. Sometimes the ESP32 enters boot mode automatically so you don't need to hold the button down!

8

And just like that, we should be good to go. I'd recommend flashing this blinky code to test out the ESP32 and get comfy with the flashing process. Happy flashing!

int LED_TEST = 21;


void setup() {

pinMode (LED_TEST, OUTPUT);

}


void loop() {

digitalWrite(LED_TEST, HIGH);

delay(1000);

digitalWrite(LED_TEST, LOW);

delay(1000);

}

-04a5c23a52

About

Automated Production Tests For Electrical Assembly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages