MicroPython on ESP8266from led to thermostatBae Kwon Han
View Slide
ಕח ܲ ࢎۈਸ ਤೞৈ ࠺যفणפ.• ־ҳա ߊܳ ೡࣻ णפ.• ಕо оٙରҊ ߊܳ ೠҊ ױೠ ࢎۈ ইתפ.• एਕب ؾפ.• ҃೧ࠁҊ ҕਬ೧ঠ ழ աтࣻ णפ.• ب೧ࣁਃ.
ݾର• ৵ micropython ੋо• ۖಬ যڃѪ חо?• ؘݽ• աী ೧ࠅѪ
why micropython tome?
• ࠺ਊ ݆ ٜѢա.. (दрҗ ت ل )• ٜ݅যঠೡ ݃ উٜ݅ ݧઉࠁҊ रؘ Տӝо ࠗೣ..
why micropython?
why not micropython
but it's python
micropython• lean and efficient implementation python3 run on microcontroller ( 256k code and 16k ram )• microcontrollers ( cpu + memory + I/O on a single board )• pyboard• esp8266 family• esp32• micro:bit
microcontroller• sensors, display and actucator• sometimes called Internet of Things• cheap, long-batter-life, low-power-cpu • assembly or c programming is needed
ESP8266 based• 80Mhz CPU, 64KB RAM,512KB to 4MB flash• WIFI ( 802.11 b/g/n )• 16 GPIO / SPI / I2C / I2S /UART • 3.3Volt• 2 ~ 3$ in aliexpress
Micro:bit• half-sized credit card• arm based, 16Mhz, 16KB MEM,256KB flash, • Bluetooth• accelerometer, magnetometer• 5X5 LED Array• three push button• web based compiler• UK/BBC Powered
from virtual to reality
how to code?• REPL on serial, wifi• RUN CODE sniffit and TEST Code• build && flashing rom • run production(?)• upip
Demo• LED on off• button LED on off• send line notification• get thermostat• send thermostat via line
Demo
need to know more• battery• hardware interrupts• drivers• memory usage check..
Q&A ask more question [email protected]
more• PyCon US https://www.youtube.com/watch?v=D-5V7s0GflU• PyCon RU http://blog.pirx.ru/media/files/2017/pyconru/python-on-microcontrollers.html#1• IntelliJ MicroPython https://github.com/vlasovskikh/intellij-micropython