Advertisement
Advertisement

More Related Content

Advertisement

Micropython on MicroControllers

  1. Micro Python ESP8266 + uPy
  2. Computers Micro Processor Micro Controller
  3. Arduino
  4. Programming a uC
  5. Compiler and Cross Compiler
  6. Micro Python Python 3 Subset of Standard Python Optimised for Micro Controllers micropython.org
  7. ESP8266 - Hardware Platform Community Processing Capabilities ESP Family Low Cost
  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. Python Interpreter via Serial Launch GTKTerm - sudo gtkterm Configuration > Port . Port = /dev/ttyUSB0 Baud = 1152000 Reset ( RST Button) on Dev Board
  10. Hello World via REPL >>>print(‘Hello world’) Basic Commands +,-,*,**
  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. 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. Enabling WiFi Access Point and Station >>>help() Connect to Local Wifi SSID : fossee Password : fossee123
  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. An IoT Setup Create thingspeak account. Create channel Code : https://github.com/akshaim/micropython
  16. Questions Software : srikant@fossee.in Hardware : mail@akshaim.in
Advertisement