NBTC ITU Training on Building IoT solutions for e ... · READ EVAL PRINT (REPL) write 2+ 2 after...

30
NBTC – ITU Training on Building IoT solutions for e-applications Session 3: Building an IoT product Programming aspects

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

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

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

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
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
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
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
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
Page 9: 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://micropython.org/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

THANK YOU