Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Micro Python
ESP8266 + uPy
Computers
Micro Processor
Micro Controller
Arduino
Programming a uC
Compiler and Cross Compiler
Micro Python
Python 3
Subset of Standard Python
Optimised for Micro Controllers
micropython.org
ESP8266 - Hardware Platform
Community
Processing Capabilities
ESP Family
Low Cost
ESP12 Dev Kit.
Based on ESP 12 E
32 bit RISC CPU - TenSilica Xtensa LX106
160KB RAM
Onboard WiFi - 802.11 b/g/n
Available ...
Python Interpreter via Serial
Launch GTKTerm - sudo gtkterm
Configuration > Port .
Port = /dev/ttyUSB0
Baud = 1152000
Rese...
Hello World via REPL
>>>print(‘Hello world’)
Basic Commands
+,-,*,**
Lights Up
>>>import machine
>>>pin = machine.Pin(5,machine.Pin.OUT)
>>>pin.high()
>>>pin.low()
Assignment 1:Blink an led u...
Read Analog Data
10 Bit ADC : 0 to 1023 (1024 levels)
>>>import machine
>>>adc=machine.ADC(0)
>>>adc.read()
Assignment 2: ...
Enabling WiFi
Access Point and Station
>>>help()
Connect to Local Wifi
SSID : fossee
Password : fossee123
Web REPL
Enable WebREPL
>>>import webrepl_setup
Download zip from scipy.in/2016/downloads/workshop/
Open the file “webrepl...
An IoT Setup
Create thingspeak account.
Create channel
Code : https://github.com/akshaim/micropython
Questions
Software : srikant@fossee.in
Hardware : mail@akshaim.in
Upcoming SlideShare
Loading in …5
×

Micropython on MicroControllers

367 views

Published on

Slides from Workshop on MicroPython for Microcontrollers held during SciPy <http: /> .

Published in: Technology
  • Be the first to comment

Micropython on MicroControllers

  1. 1. Micro Python ESP8266 + uPy
  2. 2. Computers Micro Processor Micro Controller
  3. 3. Arduino
  4. 4. Programming a uC
  5. 5. Compiler and Cross Compiler
  6. 6. Micro Python Python 3 Subset of Standard Python Optimised for Micro Controllers micropython.org
  7. 7. ESP8266 - Hardware Platform Community Processing Capabilities ESP Family Low Cost
  8. 8. ESP12 Dev Kit. Based on ESP 12 E 32 bit RISC CPU - TenSilica Xtensa LX106 160KB RAM Onboard WiFi - 802.11 b/g/n Available in upto 4MB Flash Memory 16 GPIO ,ADC, I2C , SPI
  9. 9. Python Interpreter via Serial Launch GTKTerm - sudo gtkterm Configuration > Port . Port = /dev/ttyUSB0 Baud = 1152000 Reset ( RST Button) on Dev Board
  10. 10. Hello World via REPL >>>print(‘Hello world’) Basic Commands +,-,*,**
  11. 11. Lights Up >>>import machine >>>pin = machine.Pin(5,machine.Pin.OUT) >>>pin.high() >>>pin.low() Assignment 1:Blink an led using module time.
  12. 12. Read Analog Data 10 Bit ADC : 0 to 1023 (1024 levels) >>>import machine >>>adc=machine.ADC(0) >>>adc.read() Assignment 2: Create a night lamp
  13. 13. Enabling WiFi Access Point and Station >>>help() Connect to Local Wifi SSID : fossee Password : fossee123
  14. 14. Web REPL Enable WebREPL >>>import webrepl_setup Download zip from scipy.in/2016/downloads/workshop/ Open the file “webrepl.html” in Browser. In Shell type ./webrepl_cli.py name.py ipaddress:
  15. 15. An IoT Setup Create thingspeak account. Create channel Code : https://github.com/akshaim/micropython
  16. 16. Questions Software : srikant@fossee.in Hardware : mail@akshaim.in

×