$30 off During Our Annual Pro Sale. View Details »

PyCon Korea 2017 micropython, led and thermostat

PyCon Korea 2017 micropython, led and thermostat

Bae KwonHan

August 13, 2017
Tweet

More Decks by Bae KwonHan

Other Decks in Technology

Transcript

  1. MicroPython on ESP8266
    from led to thermostat
    Bae Kwon Han


    View Slide

  2. ੉ ಕ੉૑ח ׮ܲ ࢎۈਸ ਤೞৈ ࠺
    যف঻णפ׮.
    • ־ҳա ߊ಴ܳ ೡࣻ ੓णפ׮.

    • ੉ ಕ੉૑о оٙର੓Ҋ ߊ಴ܳ ೠ׮Ҋ ؀ױೠ ࢎۈ਷ ইתפ׮.

    • एਕب ؾפ׮.

    • ҃೷೧ࠁҊ ҕਬ೧ঠ ழ աтࣻ ੓णפ׮.

    • ب੹೧઱ࣁਃ.

    View Slide

  3. ݾର
    • ৵ micropython ੋо

    • ೒ۖಬ਷ যڃѪ੉ ੓חо?

    • ؘݽ

    • ա઺ী ೧ࠅѪ

    View Slide

  4. why micropython to
    me?

    View Slide

  5. View Slide

  6. View Slide

  7. View Slide

  8. • ࠺ਊ੉ ݆੉ ٜѢա.. (दрҗ ت ഑਷ ل׮ )

    • ٜ݅যঠೡ ݃਺਷ উٜ૑݅ ݧઉࠁ੉Ҋ र਷ؘ Տӝо ࠗ઒ೣ..

    View Slide

  9. View Slide

  10. why micropython?

    View Slide

  11. why not micropython

    View Slide

  12. but it's python

    View Slide

  13. micropython
    • lean and efficient implementation python3 run on micro
    controller ( 256k code and 16k ram )

    • microcontrollers ( cpu + memory + I/O on a single board )

    • pyboard

    • esp8266 family

    • esp32

    • micro:bit

    View Slide

  14. microcontroller
    • sensors, display and actucator

    • sometimes called Internet of Things

    • cheap, long-batter-life, low-power-cpu

    • assembly or c programming is needed

    View Slide

  15. 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

    View Slide

  16. 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

    View Slide

  17. from virtual to reality

    View Slide

  18. how to code?
    • REPL on serial, wifi

    • RUN CODE sniffit and TEST Code

    • build && flashing rom

    • run production(?)

    • upip

    View Slide

  19. Demo
    • LED on off

    • button LED on off

    • send line notification

    • get thermostat

    • send thermostat via line

    View Slide

  20. Demo

    View Slide

  21. need to know more
    • battery

    • hardware interrupts

    • drivers

    • memory usage check..

    View Slide

  22. Q&A

    ask more question

    [email protected]

    View Slide

  23. 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

    View Slide