• Complain

Agus Kurniawan - MicroPython for ESP8266 Development Workshop

Here you can read online Agus Kurniawan - MicroPython for ESP8266 Development Workshop full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2016, publisher: PE Press, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    MicroPython for ESP8266 Development Workshop
  • Author:
  • Publisher:
    PE Press
  • Genre:
  • Year:
    2016
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

MicroPython for ESP8266 Development Workshop: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "MicroPython for ESP8266 Development Workshop" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

This book explores how to work with MicroPython development for ESP8266 modules and boards such as NodeMCU, SparkFun ESP8266 Thing and Adafruit Feather HUZZAH with ESP8266 WiFi. The following is highlight topics in this book Preparing Development Environment Setting Up MicroPython GPIO Programming PWM and Analog Input Working with I2C Working with UART Working with SPI Working with DHT Module. Table of Contents Preface 1. Preparing Development Environment 1.1 MicroPython Boards 1.2 Electronics Components 1.2.1 Arduino Starter Kit 1.2.2 Fritzing 1.2.3 Cooking-Hacks: Arduino Starter Kit 1.2.4 Arduino Sidekick Basic kit v2 1.2.5 Grove - Starter Kit for Arduino 1.2.6 DFRobot - Arduino Kit for Beginner v3 1.3 Development Tools 1.4 Testing 2. Setting Up MicroPython 2.1 Getting Started 2.2 Connecting MicroPython Boards to Computer 2.3 Flashing The Latest MicroPython Firmware 2.3.1 Windows Platform 2.3.2 Linux and OS X Platforms 2.4 Development Tools 2.4.1 Serial/UART Tool 2.4.2 WebREPL 2.5 Python programming 2.6 Hello MicroPython: Blinking LED 2.6.1 Wiring 2.6.2 Writing Program Using Serial/UART Tool 2.7 Uploading Python Script File to MicroPython Board 3. GPIO Programming 3.1 Getting Started 3.2 Wiring 3.3 Writing a Program 3.4 Testing 4. PWM and Analog Input 4.1 Getting Started 4.2 Demo Analog Output (PWM) : RGB LED 4.2.1 Wiring 4.2.2 Writing Program 4.2.3 Testing 4.3 Demo Analog Input: Working with Potentiometer 4.3.1 Wiring 4.3.2 Writing Program 4.3.3 Testing 5. Working with I2C 5.1 Getting Started 5.2 Writing Program 5.3 Writing Program 5.4 Testing 6. Working with UART 6.1 Getting Started 6.2 Wiring 6.3 Writing a Program 6.4 Testing 7. Working with SPI 7.1 Getting Started 7.2 Wiring 7.3 Writing a Program 7.4 Testing 8. Working with DHT Module 8.1 Getting Started 8.2 Wiring 8.3 Writing MicroPython Program 8.4 Testing Source Code My Books for ESP8266 Development Contact

MicroPython for ESP8266 Development Workshop — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "MicroPython for ESP8266 Development Workshop" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Copyright

MicroPython for ESP8266 Development Workshop

Agus Kurniawan

1st Edition, 2016

Copyright 2016 Agus Kurniawan

Table of Contents
Preface
This book was written to help anyone want to get started with MicroPython development for ESP8266 boards. It describes the basic elements of MicroPython development.

Agus Kurniawan
Depok, November 2016
1. Preparing Development Environment
1.1 MicroPython Boards

MicroPython is a lean and efficient implementation of the Python programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments.

We can deploy MicroPython on ESP8266 boards. For instance, you can deploy on these boards:

  • NodeMCU, http://nodemcu.com/index_en.html
  • SparkFun ESP8266 Thing, https://www.sparkfun.com/products/13231
  • Adafruit HUZZAH ESP8266 Breakout, https://www.adafruit.com/product/2471
  • Adafruit Feather HUZZAH with ESP8266 WiFi, https://www.adafruit.com/product/2821

NodeMCU v2 board:

SparkFun ESP8266 Thing Adafruit HUZZAH ESP8266 Breakout - photo 1

SparkFun ESP8266 Thing.

Adafruit HUZZAH ESP8266 Breakout Adafruit Feather HUZZAH with ESP8266 - photo 2

Adafruit HUZZAH ESP8266 Breakout.

Adafruit Feather HUZZAH with ESP8266 WiFi 12 Electronics Components We - photo 3

Adafruit Feather HUZZAH with ESP8266 WiFi.

12 Electronics Components We need electronic components to build our testing - photo 4

1.2 Electronics Components

We need electronic components to build our testing, for instance, Resistor, LED, sensor devices and etc. I recommend you can buy electronic component kit. We can use electronics kit from Arduino to be developed on MicroPython board. The following is a list of electronics kit which can be used in our case.

1.2.1 Arduino Starter Kit

Store website: http://arduino.cc/en/Main/ArduinoStarterKit

122 Fritzing Store website httpshopfritzingorg You can buy Fritzing - photo 5

1.2.2 Fritzing

Store website: http://shop.fritzing.org/ .

You can buy Fritzing Starter Kit with Arduino UNO or Fritzing Starter Kit with Arduino Mega.

123 Cooking-Hacks Arduino Starter Kit Store website - photo 6

123 Cooking-Hacks Arduino Starter Kit Store website - photo 7

1.2.3 Cooking-Hacks: Arduino Starter Kit

Store website: http://www.cooking-hacks.com/index.php/shop/arduino/starter-kits/arduino-starter-kit.html

124 Arduino Sidekick Basic kit v2 Store website - photo 8

1.2.4 Arduino Sidekick Basic kit v2

Store website: http://www.seeedstudio.com/depot/Sidekick-Basic-Kit-for-Arduino-V2-p-1858.html

You also can find this kit on this online store.

http://www.exp-tech.de/seeed-studio-sidekick-basic-kit-for-arduino-v2

125 Grove - Starter Kit for Arduino Another option you can buy this kit on - photo 9

1.2.5 Grove - Starter Kit for Arduino

Another option, you can buy this kit on Seeedstudio, http://www.seeedstudio.com/depot/Grove-Starter-Kit-for-Arduino-p-1855.html .

126 DFRobot - Arduino Kit for Beginner v3 DFRobot provides Arduino kit too - photo 10

1.2.6 DFRobot - Arduino Kit for Beginner v3

DFRobot provides Arduino kit too. You can buy it on the following website.

http://www.dfrobot.com/index.php?route=product/product&path=35_49&product_id=345

13 Development Tools To develop app with MicroPython target we can use any - photo 11

1.3 Development Tools

To develop app with MicroPython target, we can use any editor. You can learn how to install it on chapter 2.

1.4 Testing

For testing, I used NodeMCU v2 and SparkFun ESP8266 Thing boards for MicroPython on Windows, Linux and Mac.

I also used Arduino Sidekick Basic kit for electronic components and some - photo 12

I also used Arduino Sidekick Basic kit for electronic components and some sensor and actuator devices.

2 Setting Up MicroPython This chapter explains how to work on setting up - photo 13

2. Setting Up MicroPython

This chapter explains how to work on setting up MicroPython board.

2.1 Getting Started

In this chapter, we learn how to get started with MicroPython board. We try to reflash the latest MicroPython firmware and then test some basic scripts. For testing, I use NodeMCU as sample for MicroPython board.

2.2 Connecting MicroPython Boards to Computer

Firstly, you connect MicroPython board to PC via USB/microUSB cable. After connected, you may get lighting on blue LED, for instance for, NodeMCU board.

If you are working on Windows platform open Device Manager you should see - photo 14

If you are working on Windows platform, open Device Manager, you should see NodeMCU board detected on Ports (COM & LPT) as Silicon Labs

However if you get a problem about NodeMCU hardware driver you update that - photo 15

However, if you get a problem about NodeMCU hardware driver, you update that driver. You also can install a driver from Silicon Labs because NodeMCU v2 uses this chip, from https://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx . Please download it based on your platform.

For instance, you download the driver for mac. Just follow instructions.

After installed you verify it For instance on my OS X it has detected Type - photo 16

After installed, you verify it. For instance, on my OS X it has detected. Type this command.

ls /dev/cu*

For Linux, you can use ls /dev/tty* .

Then, you see a list of driver. This board is recognized as /dev/cu.SLAB_USBtoUART .

If you use SparkFun ESP8266 Thing you need additional tool such as serial USB - photo 17

If you use SparkFun ESP8266 Thing, you need additional tool such as serial USB tool to communicate with ESP8266.

2.3 Flashing The Latest MicroPython Firmware

In this section, we try to flash the latest MicroPython firmware. You can get the latest MicroPython firmware https://micropython.org/download#esp8266. Download *.bin file.

In this scenario, I try to flash MicroPython firmware on Windows, OSX and Linux.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «MicroPython for ESP8266 Development Workshop»

Look at similar books to MicroPython for ESP8266 Development Workshop. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «MicroPython for ESP8266 Development Workshop»

Discussion, reviews of the book MicroPython for ESP8266 Development Workshop and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.