Intro to Programming with MicroPython for ESP8266 Boards [Tutorial]

December 20, 2019 by 41 Comments

How to Program Using MicroPython
Full Tutorial:
Subscribe to Null Byte:
Kody’s Twitter:

Cyber Weapons Lab, Episode 134

Arduino is typically the way to go when first getting started programming microcontrollers. However, it’s not very beginner-friendly. Today, on this episode of Cyber Weapons Lab, we introduce you to MicroPython and teach you how to use it to program an ESP8266 such as a NodeMCU or D1 Mini.

To learn more, check out the article:

D1 Mini Boards:
– Amazon:
– AliExpress:

NodeMCU Boards:
– Amazon:
– AliExpress:

Micro-USB cables:
– Amazon:
– AliExpress:

– Amazon:
– AliExpress:

– Amazon:
– AliExpress:

Create Rogue APs:

Follow Null Byte on:
Weekly newsletter:


41 Replies to “Intro to Programming with MicroPython for ESP8266 Boards [Tutorial]”

  1. m.nageh says:

    Hi can we get a vid of how to run evil twin on esp ???

  2. i wonder how far can you push this… maybe even could run sql quaries or maybe even xd

  3. Null Byte – A very interesting article. I programmed Microchip PIC microcontrollers back in the early 2000’s using its RISC Assembly language. I made my own programmer & many different projects. This little board is something I’d love to try! Thanks for sharing this 🙂

  4. Neo says:

    This was great, thank you!

  5. Olee _ says:

    Do this guy ever blink?!? good content tho

  6. Kujo Jotaro says:

    there are a lot more vids lately kinda nice

  7. danny leone says:

    Thank you. Great content.

  8. Vesper Venom says:

    I’m feeling like Mr. Robot hehehe…love the channel

  9. Daron Fox says:


  10. Can you use a esp on a rasberry pi?

  11. Zero null says:

    New background, cool

  12. Hi bro I just need your advice and what to do because I lost my shine like I don’t love cyber sec etc like before and I want to become better what should I do

  13. Edge says:

    I don't wanna burst anyone's bubble but the Arduino IDE is literally way more user friendly than this.

  14. Eric Colt says:

    Nice artwork in the background 🙂 " Shodan systemshock"

  15. We need a complete guide for hacking a system entirely. Like first doing vulnerability and information gathering test, than maybe some social engineering attacks, exploiting system, post-exploitation, stoling sensetive information without letting system owner noticing etc. I am not saying that you should do it on a real web server just you guys could build for this type of a video. And because your teaching is really clear, good and attractive it would be a really nice educational video.

  16. KIRIK TECH says:

    super u 😍

  17. IvarsVMetal says:

    Look at you, hacker: a pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you challenge a perfect, immortal machine?

  18. Julien Cope says:

    Check out rshell! Much better alternative to screen imo

  19. Tom & Jerry says:

    I want to hack wifi passwords. How can I? Please reply to me

  20. Tom & Jerry says:

    Superb kody. 👍👍😊

  21. UDP says:

    Hey man! I've been watching your videos for about a couple months now, and I was wondering if you could create a discord? I watch you more than other IT YT'ers, and I wanted to talk to you in real-time and I want you to expand your community! If you want to talk to me about this, add me on discord: UDP#0001

  22. Sujit Raul says:

    Can we program this microprocessor using rust .

  23. I just found this video as a google Ad lol

  24. Steve says:

    That shirt is fresh

  25. 1strog says:

    Check out nodemcu it is a lua based solution for the ESP controllers

  26. Graham Owens says:

    You should change your channel to Dull Byte with some of the nonsense you spout. Turning on a pin is easy in one line on arduino, digitalWrite (2, HIGH);
    Why make it appear more difficult than it is?

  27. Prozacgod says:

    You have a system shock 2 picture framed behind you…. I need no more, subscribed.

  28. Dev says:

    Can you please do installing keyboard and trackpad drivers for macbooks for kali linux as this is actually so annoying to deal with. The reason being is that I'm working with a live persistent USB which has no macbook support whatsoever.

  29. Jon Agostini says:

    Awesome video! Awesome channel! Thank you so much!

  30. Adil Basheer says:

    Is it possible to install external libaries. ?

  31. Torbilan says:

    I started to notice nodemcu in this channel, then I've started to write codes into the nodemcu via Arduino studio using C++. Then I learned there was a way to write codes in python. After a lot of web searching, I turned out coming back here. Very cool channel really, thanks, sir.

  32. Cody Quist says:

    getting a bunch of unreadable characters…hmm

  33. ZGK_TECH says:

    Amazing very nice please have a look can I switch to micropython… thanks.

  34. luke B says:

    i know more arduino than python atm but at 8:04 isnt 255 maximum anyways? 256 0-255?
    loving ur content i been bingeing for days 😍👍

  35. I haven't yet (but am about to) try this with an ESP8266. However, with μpy on a STM32F411 blackpill, the Thonny dot org IDE is way easier than ampy/screen or other terminal shells. It does the interpreter and little FS in two simple GUI frames in the same window, and can click to open/edit littleFS files.

    Thonny is FOSS. No external IP dialouts or trackerware. It is like Arduino in its initial simplicity, but has options available to accommodate larger projects and growth. It's nothing like navigating the maze of Pycharm or PlatformIO, and, so far, I haven't experienced an organizational train wreck like Ardy IDE libraries. Thonny has an intuitive layout, can connect to devices in a drop down menu, and is very light weight.
    I haven't looked into hardware debugging though. I don't know how that would even work with μpy. I have browsed past a reference where someone was using a clone J-Link with STM32F4xx with PlatformIO. Man I wish I could get that explained like I'm five…that, and/or a black magic probe (clone on a two buck bluepill) with Matrix style DMA brain port of how to use GDB for HW.
    Lastly, for anyone reading this, look up Matt Trentini on YT. He has published a bunch of little known uploads of Damien George describing μpy stuff directly. It's not tutorial, but is non-monetized, and at least demonstrates some possible features to explore like C library/assembly imports, and multi threading.
    Thanks for the upload.

  36. Divij Chawla says:

    he is illuminati(proof-his intro)