465 views
# TTN Intro @ ti&m Hacknight Slides: https://hackmd.io/@oleg/ttn-bern-020223 Projects: https://now.makezurich.ch/event/6 Meetup: https://www.meetup.com/de-DE/bern-hack-night/events/290846120/ Invite: https://www.thethingsnetwork.org/community/Bern/post/hacknight-iot-ttn ## Courses / Videos Udemy - LoRaWAN Fundamentals course https://www.udemy.com/course/lorawan-fundamentals/ The Things Certified - Fundamentals course https://www.thethingsnetwork.org/achievements/a/the-things-certified-fundamentals/ The Things Security https://www.youtube.com/watch?v=oOUoHEgEDQQ ## Books / Introductory Articles Develop and Operate Your LoRaWAN IoT Nodes - Claus Kühnel https://www.orellfuessli.ch/shop/home/artikeldetails/A1063577815 LoRaWAN-Knoten im IoT - Claus Kühnel https://www.orellfuessli.ch/shop/home/artikeldetails/A1062577443 ESP32 Buch - Udo Brandes https://www.bastelgarage.ch/rheinwerk-verlag-gmbh/mikrocontroller-esp32-das-umfassende-handbuch-von-udo-brandes (there are [lots of ESP32 books](https://www.orellfuessli.ch/suche?sq=ESP32) ...) Getting started with ESP8266 and IOT-Dojo https://github.com/asmaklad/ESP8266-Dojo ## Software For developing with the M5 Atom Lite we need two basic tools. With the M5 Burner the device will be configured, so that it can be used found and used by the UI Flow IDE. With the following links you can directly download the tools for your operating system. |Tool|MacOS|Win10 x64|Linux|Web-Version| |---|---|---|---|---| |M5 Burner|[Download](https://m5burner.m5stack.com/app/M5Burner-v3-beta-mac-x64.zip)|[Download](https://m5burner.m5stack.com/app/M5Burner-v3-beta-win-x64.zip)|[Download](https://m5burner.m5stack.com/app/M5Burner-v3-beta-linux-x64.zip)| |UIFlow|[Download](https://static-cdn.m5stack.com/resource/software/UIFlow-Desktop-IDE_MacOS.zip)|[Download](https://static-cdn.m5stack.com/resource/software/UIFlow-Desktop-IDE.zip)|[Download](https://static-cdn.m5stack.com/resource/software/UIFlow-Desktop-IDE_Linux.zip)|[Link](https://flow.m5stack.com/)| |Driver||[Download](https://ftdichip.com/wp-content/uploads/2021/08/CDM212364_Setup.zip)|| If you are interessted in some more information or an better overiew you can alos visit the [Download-Page](http://docs.m5stack.com/en/download) of M5Stack. M5flow / Micropython - https://github.com/m5stack/M5-LoRaWAN - https://github.com/lemariva/uPyLoRaWAN M5flow TTN example - https://docs.m5stack.com/en/quick_start/lorawan/ttn Arduino - https://www.hackster.io/kehosoftware/m5stack-com-lorawan-using-arduino-ide-38ab24 Platform/io - https://docs.platformio.org/en/latest/boards/espressif32/m5stack-atom.html ## Setup Atom Lite 1. Install M5 Burner 2. Choose "Atom" in the left navigation bar 3. Download UI Flow Lite Version 1.11.1 4. Connect the atom lite to your computer 5. Click on "Configure" 6. Choose serial port 7. Enter your Hotspot wifi information 8. Click on "Burn" with baud rate 1500000 9. Click on configure and copy "api-key" 10. Change to UI Flow and enter "api-key" ## Overview ![Overview](https://md.coredump.ch/uploads/upload_36308de5b5c56198bfc68e3c0d0c001a.png) ## Projects These challenges can also be found at https://now.makezurich.ch/event/6 ### Plant Moisture Meter Needed components: * [Atom Lite ESP32](https://docs.m5stack.com/en/core/atom_lite) * [Earth Mosture Unit](https://shop.m5stack.com/products/earth-sensor-unit) * [NeoHex LED Board](https://shop.m5stack.com/products/neo-hex-37-rgb-led-board-ws2812) * ([LoRaWAN Antenna](https://docs.m5stack.com/en/unit/lorawan868)) <b>Basic challenge:</b> Log the level value in the Debugging-Console <b>Intermediate challenge:</b> Display the level on the NeoHex LED Board <b>Advanced challenge:</b> Send the level over LoRaWAN to The Things Network ### Panic-Button Needed components: * [Atom Lite ESP32](https://docs.m5stack.com/en/core/atom_lite) * [Mechanical Key Button Unit](https://docs.m5stack.com/en/unit/key) * [Buzzer Unit](https://docs.m5stack.com/en/unit/buzzer) * [GPS Module](https://docs.m5stack.com/en/unit/gps) * ([LoRaWAN Antenna](https://docs.m5stack.com/en/unit/lorawan868)) <b>Basic challenge:</b> Start the buzzer if the panic button is pressed. <b>Intermediate challenge:</b> Calculate and log the GPS-Position <b>Advanced challenge:</b> Send the GPS-Position over LoRaWAN to The Things Network. ### Clap Sensor Needed components: * [Atom Lite ESP32](https://docs.m5stack.com/en/core/atom_lite) * [Microphone Unit](https://docs.m5stack.com/en/unit/mic) * [NeoHex LED Board](https://shop.m5stack.com/products/neo-hex-37-rgb-led-board-ws2812) * ([LoRaWAN Antenna](https://docs.m5stack.com/en/unit/lorawan868)) <b>Basic challenge:</b> Log the input in the debugging console <b>Intermediate challenge:</b> Display decibel level on the Hex Board <b>Advanced challenge:</b> Turn on/off LEDs on Hex Board by clapping and send state over LoRaWAN to The Things Network. # Impressions @loleg's [Thread and photos](https://fosstodon.org/@loleg/109797409805990498) on Mastodon Photos by Oleg Lavrovsky `CC BY 4.0` ![](https://md.coredump.ch/uploads/upload_1ef9bb64687be271ca5baf15ae0e9345.jpg) ![](https://md.coredump.ch/uploads/upload_985ef5a0ff2fdfe9c5c42b594ae8a8d1.jpg) ![](https://md.coredump.ch/uploads/upload_e8fa4c65fe70b3c50d64db022c22e4cb.jpg) ![](https://md.coredump.ch/uploads/upload_a0768cfdabf58eaf84bda7ece7756927.jpg) # Screenshots ![](https://md.coredump.ch/uploads/upload_1a44ff2f81ca8c6b1ee79cb202712db3.jpg) ![](https://md.coredump.ch/uploads/upload_fb1b066acd5ca2236ed9b8426a4a1ee0.jpg) ![](https://md.coredump.ch/uploads/upload_0ef7b25bce4401296ffc3cbb32283ab4.png)