Comments on: MicroPython Programming Basics with ESP32 and ESP8266 https://randomnerdtutorials.com/micropython-programming-basics-esp32-esp8266/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sun, 05 Dec 2021 21:25:57 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Alejhandro Navarro https://randomnerdtutorials.com/micropython-programming-basics-esp32-esp8266/#comment-706541 Sun, 05 Dec 2021 21:25:57 +0000 https://randomnerdtutorials.com/?p=74753#comment-706541 I want to use a ESP32 to connect with a UHF readers, I want to use uPython for that, how I can call or import .h files from my main.py?

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-programming-basics-esp32-esp8266/#comment-604365 Mon, 10 May 2021 13:32:23 +0000 https://randomnerdtutorials.com/?p=74753#comment-604365 In reply to Colin.

Great!
I’m glad the issue was solved.
Regards,
Sara

]]>
By: Colin https://randomnerdtutorials.com/micropython-programming-basics-esp32-esp8266/#comment-604251 Mon, 10 May 2021 09:08:24 +0000 https://randomnerdtutorials.com/?p=74753#comment-604251 In reply to Sara Santos.

Hi Sara,
Thanks again for your reply.
I have tried Thonny and this seems to work very well as it allows me to load the code onto the board. I now have an ESP32 reading from a DS18b20, displaying the result on an oled display, sending output to uart and also a flashing light. What more could I ask for?
Many thanks for your help.

best wishes,

Colin

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-programming-basics-esp32-esp8266/#comment-603386 Sat, 08 May 2021 16:47:53 +0000 https://randomnerdtutorials.com/?p=74753#comment-603386 In reply to Colin.

Hi.
It doesn’t necessarily need to have something on it. It can be empty without any problem.
You need to make sure that the main.py file is on the device folder. Otherwise, it won’t run by itself.
At the side bar, check that you have a main.py file on the device folder.

It might also be an issue with your IDE, I’m not sure… You may want to try another IDE and see how it goes.
We have a tutorial for Thonny IDE, and VS Code with the PyMakr extension:
https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/
https://randomnerdtutorials.com/micropython-esp32-esp8266-vs-code-pymakr/

Regards,
Sara

]]>
By: Colin https://randomnerdtutorials.com/micropython-programming-basics-esp32-esp8266/#comment-603345 Sat, 08 May 2021 15:11:29 +0000 https://randomnerdtutorials.com/?p=74753#comment-603345 In reply to Sara Santos.

Thank you Sara for your quick response!
I did follow the tutorial but still cannot get the program to run by itself after re-setting. I renamed it ” main.py “and there is a boot.py in the device list. However boot.py is empty (?)
Contents of boot.py:

This file is executed on every boot (including wake-boot from deepsleep)

#import esp
#esp.osdebug(None)
#import webrepl
#webrepl.start()

Surely it should contain some instructions?
I am puzzled!

regards and thanks for your patience,

Colin

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-programming-basics-esp32-esp8266/#comment-603305 Sat, 08 May 2021 13:34:40 +0000 https://randomnerdtutorials.com/?p=74753#comment-603305 In reply to Colin.

Hi.
Make sure that you are uploading the code to the board and not just running the code.
Here’s a tutorial about upycraft: https://randomnerdtutorials.com/getting-started-micropython-esp32-esp8266/
Regards,
Sara

]]>
By: Colin https://randomnerdtutorials.com/micropython-programming-basics-esp32-esp8266/#comment-602777 Fri, 07 May 2021 15:52:49 +0000 https://randomnerdtutorials.com/?p=74753#comment-602777 Hi,
I enjoy your tutorials. Thank you!
I can get ESP32 programs to run in micro python on my Wroom board using uPycraft. However I do not understand how to permanently upload the equivalent of an hex file (as with AVR or Pic processors) so that the program runs by itself. Have I missed something or is this not possible? When I shutdown uPycraft the program stops working.

regards,

Colin

]]>
By: JU@NUS https://randomnerdtutorials.com/micropython-programming-basics-esp32-esp8266/#comment-523834 Sun, 29 Nov 2020 22:53:28 +0000 https://randomnerdtutorials.com/?p=74753#comment-523834 Hi. I really appreciate your work. I’m starting with uPython and your explanation was very helpful.
Is there any simple GUI to control mi esp32 board ?

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-programming-basics-esp32-esp8266/#comment-340176 Sun, 21 Oct 2018 15:26:48 +0000 https://randomnerdtutorials.com/?p=74753#comment-340176 In reply to Henry Smith.

Hi Henry.
Yes, it does.
In the following link you can see in more detail the differences between Python and MicroPython: http://docs.micropython.org/en/latest/genrst/builtin_types.html#
Regards,
Sara 🙂

]]>
By: Henry Smith https://randomnerdtutorials.com/micropython-programming-basics-esp32-esp8266/#comment-339718 Thu, 18 Oct 2018 13:25:02 +0000 https://randomnerdtutorials.com/?p=74753#comment-339718 Thanks for the article. I have been doing Arduino C++ on a NodeMcu 8266 and it is somewhat limiting. I am quite comfortable with Python and I want to give it a try.

Does MicroPython support LIsts, Tuples and Dictionaries? If so, I’m in.
Thanks

]]>