Page 1 of 1

- do i need to have a pyBoard to start with MicroPython !?

Posted: Wed Jan 30, 2019 11:33 pm
by apollodriver
dear community,



this is a question regarding MicroPython



i want to headstart in MicroPython



what do i need to do the first steps?

- do i need to have a pyBoard from Adafruit!?



or is it okay if i just start on systems like

- ESP 32

- or a ESP8266-based device called WEMOS D1

or a SBC-NodeMCU-ESP8266

which is just another developer platform


regarding the wemos:
We’ll be using an ESP8266-based device called WEMOS D1 mini. Basically, it’s a Wi-Fi chip with a couple of digital and analog I/O pins to connect external sensors and actuators.
But for our simple demo, we won’t need anything besides the LED light that is already located on the device and is connected to the digital output pin 2.





look forward to hear from you 



Re: - do i need to have a pyBoard to start with MicroPython !?

Posted: Thu Jan 31, 2019 6:11 am
by ThomasChr
Every Micropython supported board will do for start.

Re: - do i need to have a pyBoard to start with MicroPython !?

Posted: Thu Jan 31, 2019 6:26 am
by bitninja
Yes, the Wemos D1 Mini works great with MicroPython.

Code: Select all

from machine import Pin
import time

led = Pin(2, Pin.OUT)

while True:
    led.on()
    time.sleep_ms(500)
    led.off()
    time.sleep_ms(500)

Re: - do i need to have a pyBoard to start with MicroPython !?

Posted: Thu Jan 31, 2019 8:59 am
by Roberthh
Indeed. The ESP8266 port, made AFAIK mostly by @pfalcon, is a very good one, pretty reliable, and a very good companion to the PyBoard version. By and by, the ESP32 ports improve to get close.

Re: - do i need to have a pyBoard to start with MicroPython !?

Posted: Thu Jan 31, 2019 9:48 am
by apollodriver
hello dear bitninja, dear Thomas and Roberthh,

many many thanks for the quick answer. They help alot.


have a great day!

apollodriver :)

Re: - do i need to have a pyBoard to start with MicroPython !?

Posted: Thu Jan 31, 2019 10:55 am
by ThomasChr
Hi apollodriver,

this (sorry for german text) is a Power Meter Reader: https://www.thomaschristlieb.de/einfach ... g-zuhause/
It's made of the cheapest chinese ESP8266 Board I could get (about 3$) and with help from the forums it runs for two weeks now without any problems.
The reading is absolutly accuracte and I can register every lamp (or mobile phone charge) which has been switched on.
I also have some for reading temperature, humidity and pressure outside and also some (slight) minus degrees did not make any problems so far.

So, yes, ESP8266 on a NodeMCU works absolutly fine for Micropython.

The Pyboard on the other hand looks a little bit more professional to me and I think I had more trust in it's long-term operation.
But if it's just a hobby project, just go for it :-)

Greetings, Thomas

PS: If you need a translation of the blogpost, just ask.