Comments on: MicroPython with ESP32 and ESP8266: Interacting with GPIOs https://randomnerdtutorials.com/micropython-gpios-esp32-esp8266/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 30 Sep 2022 18:54:37 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: hahu https://randomnerdtutorials.com/micropython-gpios-esp32-esp8266/#comment-787209 Fri, 30 Sep 2022 18:54:37 +0000 https://randomnerdtutorials.com/?p=76146#comment-787209 Great tutorials. I am a new bee and I have hard time building multiple input and outputs. would you mind if you could demonstrate an esp32 with micropython. that has 4 in put and 4 outputs. it could be 4 LED with individually 4 switch. I mean one switch for one LED.

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-gpios-esp32-esp8266/#comment-355000 Tue, 05 Feb 2019 09:35:01 +0000 https://randomnerdtutorials.com/?p=76146#comment-355000 In reply to martin.

Hi Martin.
What do you mean by “port to micropython”?
Regards,
Sara

]]>
By: martin https://randomnerdtutorials.com/micropython-gpios-esp32-esp8266/#comment-354838 Sun, 03 Feb 2019 14:55:34 +0000 https://randomnerdtutorials.com/?p=76146#comment-354838 many many thanks fpr the great tutorial – would love to see a port to mycropython . d o you thnk taht this is possible
love to hear from you
greetings

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-gpios-esp32-esp8266/#comment-341340 Mon, 29 Oct 2018 10:04:08 +0000 https://randomnerdtutorials.com/?p=76146#comment-341340 In reply to Mauro.

I see you have a lot of tutorials using ESP32 and micropython too.
I definitely have to take a closer look at your projects.
I’ll tell Rui to take a look at your blog too.
Regards,
Sara 🙂

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-gpios-esp32-esp8266/#comment-341333 Mon, 29 Oct 2018 09:37:04 +0000 https://randomnerdtutorials.com/?p=76146#comment-341333 In reply to Dave W.

Hi Dave.
At the moment, I don’t have a code for what you are looking for.
But there is an example here: docs.dfrobot.com/upycraft/4.1.5%20irq.py.html that you can modify to put in your project. (I haven’t tested the code)
Regards,
Sara 🙂

]]>
By: Mauro https://randomnerdtutorials.com/micropython-gpios-esp32-esp8266/#comment-340912 Fri, 26 Oct 2018 09:59:19 +0000 https://randomnerdtutorials.com/?p=76146#comment-340912 In reply to Sara Santos.

Hi Sara.

Thanks You!, for publishing about MicroPython. It’s a nice language.

Btw, really nice blog! My blog is really small in comparison with yours.

Let me know if I can help you with some tutorials.

Regards,

Mauro

]]>
By: Mauro https://randomnerdtutorials.com/micropython-gpios-esp32-esp8266/#comment-340910 Fri, 26 Oct 2018 09:46:03 +0000 https://randomnerdtutorials.com/?p=76146#comment-340910 In reply to Denis Brion.

Yes, parallel processing is possible using the _thread class. It is only available on the ESP32, and WiPy2.0/3.0 (not on the ESP8266). It looks like this:

import _thread
import time

def ThreadWorker():
while True:
print(“Hello from thread worker”)
time.sleep(2)

_thread.start_new_thread(ThreadWorker, ())

This project includes multitasking: Captive Portal

With respect to the bauds questions. If you are referring to a serial communication, I managed to connect a rpi to a ESP32 without any problem.

]]>
By: Denis Brion https://randomnerdtutorials.com/micropython-gpios-esp32-esp8266/#comment-340785 Thu, 25 Oct 2018 10:53:20 +0000 https://randomnerdtutorials.com/?p=76146#comment-340785 In reply to Dave W.

Thanks dave, for linking to the official site (is interesting) and for explaining how to use python help (I very seldom use python: always forget how to use its help) and that micropython help is the same (I am still wondering whether I shall use uPython or C++ : C++ eat less resources, is almost as concise, but does not have comfortable help -Arduino classes have, however-

]]>
By: Denis Brion https://randomnerdtutorials.com/micropython-gpios-esp32-esp8266/#comment-340775 Thu, 25 Oct 2018 09:13:51 +0000 https://randomnerdtutorials.com/?p=76146#comment-340775 In reply to Mauro.

Well, thanks a lot, Mauro, for useful information w/r resource greediness. I almost decided to buy an ESP32, once I have ended playing (i. e trying Arduino -historical channel – scripts, which is easy -only tiny issue is with 5 volts peripherals…. – ; use wifi, I am not accustomed to) with ESP8266.
There remain a ESP32 resource I do not understand : ESP32 is a dual core, and one can manage (Arduino + freeRTOS) to use both cores (this may be interesting: say, transmitting data, at an unpredictable rate, and samplig other data at regular rate seems vey easy with dual cores (no interrupts). Does uPython manage parallelism?
Remains another detail: I noticed esptool used a 4 Mbauds , and nanoPis/RPis use at most 115200 bauds. I bet (worked with my ESP8266; in the general case, do not not know) having a lower than default/recommanded upload speed does not harm.

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-gpios-esp32-esp8266/#comment-340768 Thu, 25 Oct 2018 08:39:21 +0000 https://randomnerdtutorials.com/?p=76146#comment-340768 In reply to Mauro.

Hi Mauro.
Thank for sharing your projects about MicroPython.
Regards,
Sara 🙂

]]>