By Agus Kurniawan
This e-book explores tips to paintings with MicroPython improvement for ESP8266 modules and forums similar to NodeMCU, SparkFun ESP8266 factor and Adafruit Feather HUZZAH with ESP8266 WiFi. the next is spotlight issues during this booklet getting ready improvement atmosphere establishing MicroPython GPIO Programming PWM and Analog enter operating with I2C operating with UART operating with SPI operating with DHT Module. desk of Contents Preface 1. getting ready improvement atmosphere 1.1 MicroPython forums 1.2 Electronics parts 1.2.1 Arduino Starter equipment 1.2.2 Fritzing 1.2.3 Cooking-Hacks: Arduino Starter package 1.2.4 Arduino Sidekick easy package v2 1.2.5 Grove - Starter equipment for Arduino 1.2.6 DFRobot - Arduino package for newbie v3 1.3 improvement instruments 1.4 checking out 2. establishing MicroPython 2.1 Getting begun 2.2 Connecting MicroPython forums to laptop 2.3 Flashing the most recent MicroPython Firmware 2.3.1 home windows Platform 2.3.2 Linux and OS X systems 2.4 improvement instruments 2.4.1 Serial/UART software 2.4.2 WebREPL 2.5 Python programming 2.6 hi MicroPython: Blinking LED 2.6.1 Wiring 2.6.2 Writing application utilizing Serial/UART device 2.7 importing Python Script dossier to MicroPython Board three. GPIO Programming 3.1 Getting began 3.2 Wiring 3.3 Writing a software 3.4 checking out four. PWM and Analog enter 4.1 Getting began 4.2 Demo Analog Output (PWM) : RGB LED 4.2.1 Wiring 4.2.2 Writing software 4.2.3 checking out 4.3 Demo Analog enter: operating with Potentiometer 4.3.1 Wiring 4.3.2 Writing application 4.3.3 checking out five. operating with I2C 5.1 Getting begun 5.2 Writing software 5.3 Writing software 5.4 trying out 6. operating with UART 6.1 Getting all started 6.2 Wiring 6.3 Writing a software 6.4 checking out 7. operating with SPI 7.1 Getting begun 7.2 Wiring 7.3 Writing a software 7.4 checking out eight. operating with DHT Module 8.1 Getting begun 8.2 Wiring 8.3 Writing MicroPython application 8.4 checking out resource Code My Books for ESP8266 improvement touch
Read Online or Download MicroPython for ESP8266 Development Workshop PDF
Similar hardware & diy books
During this ebook, one of many world's major specialists in rising expertise indicates how one can utilize 50 of trendy preferred consumer-oriented innovations-and tomorrow's. you will find digital keyboards that allow you to variety within the air; GPS locators that maintain song of your children; digital camera telephones that transmit your photographs immediately; in-car platforms that learn your electronic mail and inventory rates aloud; and dozens extra units to notify you, safeguard you, attach you, and entertain you.
It is a normal textbook on microprocessor dependent process layout that caters for complex stories at HNC/HND point. The ebook concentrates at the improvement of 8-bit microcontrollers developed round the flexible Z80 microprocessor that is conventional in schools and is acceptable for many business functions.
Cloud Computing fundamentals covers the most elements of this fast-paced know-how in order that either practitioners and scholars may be capable of comprehend cloud computing. the writer highlights the foremost elements of this know-how power consumer will need to examine earlier than determining to undertake this provider.
This booklet explores the best way to paintings with MicroPython improvement for ESP8266 modules and forums resembling NodeMCU, SparkFun ESP8266 factor and Adafruit Feather HUZZAH with ESP8266 WiFi. the next is spotlight themes during this publication getting ready improvement atmosphere establishing MicroPython GPIO Programming PWM and Analog enter operating with I2C operating with UART operating with SPI operating with DHT Module.
Extra info for MicroPython for ESP8266 Development Workshop
On the ESP8266 board, we can use PWM pins 0, 2, 4, 5, 12, 13, 14 and 15 all support PWM. In this chapter, we try to access MicroPython Analog I/O using MicroPython program. There are two scenarios for our cases: Controlling RGB LED Reading Analog input using Potentiometer Let’s start. RGB LED has 4 pins that you can see it on Figure below. To understand these pins, you can see the following Figure. Note: Pin 1: Red Pin 2: Common pin Pin 3: Green Pin 4: Blue Now we can start to build a MicroPython application and hardware implementation.
If succeed, you should see the confirmation. Now you can run by typing these command on WebREPL terminal. run() You should blinking LED. py. py') If your program is still running, please reset your board and then delete the file. GPIO Programming In this chapter I’m going to explain how to work with GPIO on MicroPython. For MicroPython board-based ESP8266, there are available pins: 0, 1, 2, 3, 4, 5, 12, 13, 14, 15, 16, which correspond to the actual GPIO pin numbers of ESP8266 chip. For testing, I used NodeMCU board as MicroPython board.
Let’s start!. 1 Wiring To understand Potentiometer, you see its scheme in Figure below. I use slide potentiometer. Ok, Let’s write these scripts. sleep(2) Save this code. If succeed, you can run the program. run() You should see the output on WebREPL terminal. Working with I2C In this chapter we learn how to work with I2C on MicroPython board. The name TWI was introduced by Atmel and other companies to avoid conflicts with trademark issues related to I²C. I2C bus consists of two wires, SDA (Serial Data Line) and SCL (Serial Clock Line).
MicroPython for ESP8266 Development Workshop by Agus Kurniawan