• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeLinkSpriteIOMaking LinkSprite LinkNode D1 as MicroPython node, ...
Previous Next

Making LinkSprite LinkNode D1 as MicroPython node, pyboard ==> Now with NodeMCU v1.0 (ESP-12E)

Posted by: Olva , February 19, 2019

Making LinkSprite LinkNode D1 as MicroPython node, pyboard

According to MicroPython Website any board having esp8266 chipset can be a pyboard. So, I decided to make my LinkSprite LinkNode D1 as pyboard to venture through the goodness of MicroPython on my Macbook Pro (Retina, 13-inch, Late 2012 with OS X El Capitan Version 10.11.6)

Here is how I did,

1) Install esptool

$ pip2 install esptool

2) Download MicroPython firmware from MicroPython Download Link. Once you reach to the site, click  “ESP8266” button which will lead you the firmware for ESP8266 boards. If you board has enough flash ram, you can use esp8266-20170-v1.8.7.bin. If it has only 512kbytes of flash ram, you should use the one that for it below. In my case, I used the firmware for 512kBytes of flash.

Firmware for ESP8266 boards

The following are daily builds of the ESP8266 firmware tailored for modules with only 512kbytes of flash. Certain features are disabled to get the firmware down to this size.
  • esp8266-512k-20170301-v1.8.7-334-g1f549a3.bin (elf, map) (latest)

3) Now we will flash the firmware already installed on the node as follows:

Note: I just make my command line very descriptive which can be more simple though. And the default baudrate is 115200 bps.

$ sudo python2 /usr/local/lib/python2.7/site-packages/esptool.py –port /dev/cu.wchusbserial1d1120 erase_flash
Password:
esptool.py v1.3
Connecting….
Running Cesanta flasher stub…
Erasing flash (this may take a while)…
Erase took 10.8 seconds

4) And now we need to flash the node with MicroPython. As stated above, you need to check how much flash ram you have on your board. In my case, 512Kbytes.

Flashing the board with 512kbytes flash ram.

$ sudo python2 /usr/local/lib/python2.7/site-packages/esptool.py –port /dev/cu.wchusbserial1d1120 write_flash –flash_size=detect 0 esp8266-512k-20170301-v1.8.7-334-g1f549a3.bin
esptool.py v1.3
Connecting….
Auto-detected Flash size: 32m
Running Cesanta flasher stub…
Flash params set to 0x0040
Wrote 503808 bytes at 0x0 in 43.7 seconds (92.2 kbit/s)…
Leaving…

5) Now we need to verify whether it works fine.  I used CoolTerm for mac to connect myboard. Please check “Special Character Handling” as shown below which will make your CoolTerm as good MicroPython. You can downloadCoolTerm for free.

 

6) Now, you can test with simple script. Now, it’s working fine.

7) After couple of hours, the node behaved wierd. So, I tried to flash couple more time with verification. And finally I pried the board.
8) So, I sacrifice one of the NodeMCU 1.0 (ESP-12E) module. And it’s running fine, finally.
Copied From : http://qcluster.blogspot.com/2017/03/making-linksprite-linknode-d1-as.html?m=1

Share!
Tweet

Olva

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors