Upgrade to Pro — share decks privately, control downloads, hide ads and more …

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. ੉ ಕ੉૑ח ׮ܲ ࢎۈਸ ਤೞৈ ࠺ যف঻णפ׮. • ־ҳա ߊ಴ܳ

    ೡࣻ ੓णפ׮. • ੉ ಕ੉૑о оٙର੓Ҋ ߊ಴ܳ ೠ׮Ҋ ؀ױೠ ࢎۈ਷ ইתפ׮. • एਕب ؾפ׮. • ҃೷೧ࠁҊ ҕਬ೧ঠ ழ աтࣻ ੓णפ׮. • ب੹೧઱ࣁਃ.
  2. • ࠺ਊ੉ ݆੉ ٜѢա.. (दрҗ ت ഑਷ ل׮ ) •

    ٜ݅যঠೡ ݃਺਷ উٜ૑݅ ݧઉࠁ੉Ҋ र਷ؘ Տӝо ࠗ઒ೣ..
  3. 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
  4. microcontroller • sensors, display and actucator • sometimes called Internet

    of Things • cheap, long-batter-life, low-power-cpu • assembly or c programming is needed
  5. 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
  6. 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
  7. how to code? • REPL on serial, wifi • RUN

    CODE sniffit and TEST Code • build && flashing rom • run production(?) • upip
  8. Demo • LED on off • button LED on off

    • send line notification • get thermostat • send thermostat via line
  9. 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