NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after...
Transcript of NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after...
![Page 1: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/1.jpg)
NBTC – ITU Training on Building IoT solutions for e-applications
Session 3: Building an IoT product Programming aspects
![Page 2: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/2.jpg)
RAPID PROTOTYPING | IN PRODUCTION TRADEOFF
• WHAT IS THE USE CASE ?
• IS/WHEN OPTIMIZATION REQUIRED ?
• WHAT ARE THE WHOLE TECHNOLOGICAL STACK & DATA/WORK FLOWS?
• NEED FOR LOW ENTRY BARRIERS ?
• ITERATE OVER IDEAS / CLIENT REQUIREMENTS / QUICK FEEDBACK?
• WHAT ARE THE HUMAN RESOURCES ?
• A SINGLE LANGUAGE CONVENIENT BUT OFTEN A NON ISSUE ?
![Page 3: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/3.jpg)
TURTLES ALL THE WAY DOWN!
https://en.wikipedia.org/wiki/Turtles_all_the_way_down
PYTHON[S]
![Page 4: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/4.jpg)
![Page 5: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/5.jpg)
![Page 6: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/6.jpg)
![Page 7: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/7.jpg)
![Page 8: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/8.jpg)
![Page 10: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/10.jpg)
IoT RAPID PROTOTYPING & TRAINING
![Page 11: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/11.jpg)
![Page 12: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/12.jpg)
https://pycom.io/wp-content/uploads/2017/08/wipySpecsheetAugust2017.pdf
![Page 13: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/13.jpg)
EXPANSION BOARDS
![Page 14: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/14.jpg)
TYPICAL WORKFLOW
![Page 15: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/15.jpg)
1. INSTALL ATOM IDE
![Page 16: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/16.jpg)
2. INSTALL “PYMAKR” PLUGIN
![Page 17: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/17.jpg)
3. CONNECTION VIA USB
![Page 18: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/18.jpg)
4. GET ID OF YOUR SERIAL PORT
![Page 19: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/19.jpg)
4. ACCESS GLOBAL SETTINGS
![Page 20: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/20.jpg)
5. UPDATE GLOBAL SETTINGS
![Page 21: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/21.jpg)
6. CONNECT
![Page 22: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/22.jpg)
7. READ EVAL PRINT (REPL)
![Page 23: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/23.jpg)
7. READ EVAL PRINT (REPL)
write 2+ 2 after the >>> sign and press Enter Key
write print(“Hello IoT!”) after the >>> sign and press Enter Key
![Page 24: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/24.jpg)
7. READ EVAL PRINT (REPL)
![Page 25: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/25.jpg)
8. OPEN A PROJECT | LED
![Page 26: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/26.jpg)
9. WRITE CODE (main.py, boot.py, …)
First Python code executedduring boot. Here setup the REPL
“main“ code to be run and uploaded to the board.Here the “Hello world” of IoT
https://github.com/franckalbinet/iot-nbtc-itu/blob/gh-pages/labs/LED.md
![Page 27: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/27.jpg)
10. RUN FOR DEBUGGING PURPOSE
![Page 28: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/28.jpg)
11. HALTING EXECUTION, RESETTING
In Atom |Global settings
Hard reset button
![Page 29: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/29.jpg)
12. SYNC/UPLOADING CODE TO THE BOARD
![Page 30: NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after the >>> sign and press Enter Key write print(“ello o!”) after the >>> sign and](https://reader033.fdocuments.net/reader033/viewer/2022050519/5fa33262c06f1232373e8885/html5/thumbnails/30.jpg)
THANK YOU