Lesson 6 Introduction IoTEmpowered - Water-Monitor/IoT-Portfolio-FJS GitHub Wiki

In the very beginning of the lesson, we had to do some self-reflection about the previous lessons, our wishes for the last few lessons and so on... The following part sums up some of the feedback, that has been mentioned by everyone. It was the first preparation for IoTempower.

Scaling & Testing

What are issues, that could come up in the future?

  • Infrastructure (lose overview), chaos, breadboard could become too small, managing IP-addresses, need for usb-port, seeing status of all sensors, security, privacy, bandwidth

How can we do testing?

  • Involve AI, Unit-testing: Abstract all simulator components into smaller components

What would we like to see:

  • Maybe start class a little bit earlier so we have more time for preparing and loose less time for the actual lesson

Roles of...

  • Simulators: for measuring water
  • MQTT (why only MQTT?): defines multiple topics, no need to worry about other things, is less heavy and a standard, security
  • Stories: Open up more ideas, helps with creativity, we already have some kind of tests, base of testing

What do we want for iotempower?

  • Arduino was not really user-friendly: not always helpful with showing error messages, auto-correction, less "eclipse"-like,...
  • Examples again
  • support power savings
  • how many messages have been sent (system overview)
  • works offline

IotEmpower-Start

First, we had to research on some commands of iotempower:

  • Iot exec acesspoint/ acesspoint = meant for the main laptop, creates acesspoints which can be connected with the other laptops
  • Iot menu: gets you to the deploy, adopt etc. function faster
  • Iot upgrade/ install: update iotempower or freshly reinstall it
  • Console serial = Serial Monitor in Arduino
  • Adopt: another way to flash stuff
  • Deploy = flashing
  • mqtt_broker : start mosquitto
  • mqtt_listen: subscribes to topics
  • mqtt_send: publishes to certain topics
  • Iot doc server: start a webserver with port 8001, will also show you all command helps

In the next task, we were supposed to research on a few sensores in the iot doc serve. These will be needed if we want to code in the setup.ccp files and use the sensores. Thanks to these 'commands', we only need one line of a code to get to great results.

  • Rfid reader: mfrc522, name can be addressed via MQTT,
  • PWM: pulse with modulation, (name, pin, frequency)
  • Servo motor: creates a new servo motor controller, (name, pin, min_us, max_us, turn_time_ns)
  • ultra sonic distance: create a new HC-SR04 or RCWL-1601, name, trigger_pin, echo_pin, timeout_us
  • rgb_single: name, pin_r, pin_g, pin_b, invert=false