• 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

MicroPython vs Arduino IDE with a blink program.

Q&A Forum › Category: ESP32 › MicroPython vs Arduino IDE with a blink program.
0 Vote Up Vote Down
ancienttron asked 6 years ago

I am just getting started on MicroPython Programming with ESP32 and ESP8266.
When I load a blink program into my ESP32 using the Arduino IDE it is always there and functioning each time I apply power to it.
But when I load a program on the ESP32 using MicroPython it only functions as long as it is plugged in. Once power is removed and reapplied the led no longer blinks and the program seems to be gone.
I assume that later in this course I will find out how to make the MicroPython program function on each power-up ?
Thanks.

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi.
Which IDE are you using?
Thonny IDE or uPyCraft IDE?
You’re probably just running the code, and not uploading the code to the board.
Can you tell me the exact procedure you’re following to upload code?
Regards,
Sara

0 Vote Up Vote Down
ancienttron answered 6 years ago

Using uPyCraft v1.0

  1. copy and paste example blink example into uPy
  2. save it
  3. download and Run
  4. led blinks on ESP32
  5. unplug ESP32 and led stops blinking
  6. plug ESP32 back in but led doesn’t blink
0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi.
If you press the ESP32 reset button, does the LED start blinking?
Did you save the code as main.py?
After uploading the code, do you see the main.py sketch on the left upper corner under the device folder?
 

0 Vote Up Vote Down
ancienttron answered 6 years ago

Thank you very much, the problem is solved.
I realized that even though I had created a main.py file I was not actually saving my script to it.
Once i saved it to main.py everything is working as it should.

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Great!
I’ll close this issue.
If you need further help, you just need to open a new question.
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] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

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

Copyright © 2013-2025 · 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.