• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Program operation of Esp32 boards will using USB power VS battery power

Q&A Forum › Category: ESP32 › Program operation of Esp32 boards will using USB power VS battery power
0 Vote Up Vote Down
Tim Albin asked 3 years ago

I am new to ESP32, MicroPython and Thonny. I am going through your Micropython book. I was using the UpyCraft IDE until I could not resolve the serial port issue. This Thonny seems to work ok except a couple of issues The first is there is nothing when I follow the instructions below. Just a statement; “Where are all the commands?”
The second and one that concerns me. I have the LED Blinking script running.. Loads with no issue. If I unplug the ESP32 and reconnect the USB cable, I  have power but the program does not start running.. Tried the reset button and nothing. I have to stop and then run the program again from Thonny. This is not normal. Any thoughts?
Tim

  • Go to Device > Upload current script with current name

1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Tim.

I’m sorry for that issue.

  1. Answering your first question:

It seems that Thonny IDE was updated.

Now, to upload code, you need to go to File > Save as > MicroPython device and then add a name.

We’ll update our instructions in the next eBook update.

2. Answering your second question:

When you click on the green “play” button, it runs the code on the MicroPython device (the ESP32 or ESP8266), but it doesn’t upload the code. This means the code is not saved on the board.

So, if you disconnect the board from the computer, it won’t run the code, because it doesn’t have any code uploaded. This feature is useful if you want to quickly test your code without having to upload it to the board.

If you follow the previous instructions to upload the code (Save as > MicroPython device), the code is actually saved on the board. So, if you disconnect it from the computer and press the RST button to restar the board, it will run the saved code.

I hope this is clear.

Let me know if you have more doubts.

Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.