Reader small image

You're reading from  Hands-On Internet of Things with MQTT

Product typeBook
Published inOct 2019
Reading LevelIntermediate
PublisherPackt
ISBN-139781789341782
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Tim Pulver
Tim Pulver
author image
Tim Pulver

Tim Pulver is a Berlin-based freelance interaction designer and developer. In his work, he combines his physical prototyping experience and knowledge of interface design with modern technologies such as 3D printing, laser cutting, web technologies, and machine learning to create unique interactive experiences. In recent years, he has worked on interactive data visualizations, web-based audiovisual experiences, musical interfaces, and cables an innovative browser-based visual programming language that enables the creation of interactive audiovisual prototypes without writing any code. He holds a Bachelor of Arts degree in interface design from the University of Applied Sciences in Potsdam, Germany.
Read more about Tim Pulver

Right arrow

Chapter 5: Building Your Own Automatic Pet Food Dispenser

  1. The # character is called a multi-level wildcard. By using it, we subscribe to all subtopics of the topic.
  2. In this project, we are using the public namespace with the try/try login credentials. It is neither secure nor private, and we just use it because it is easier and more tolerable for a prototype. If you want more security and privacy for your data, you need to use a private channel on Shiftr (or any other MQTT server with private channel functionality).
  3. If Shiftr stops working at some point, you can just move on to another (free) MQTT server (a list can be found at https://github.com/mqtt/mqtt.github.io/wiki/public_brokers). This is the beauty of MQTT: there are many implementations, and you can easily move on to another provider or simply create your own (local) server.
  4. You can control the smart pet food dispenser from any MQTT client. MQTT clients come in many shapes and sizes. You can control it using the Terminal (for example, using Mosquitto, which we installed in Chapter 3Getting Started with MQTT), using iOS or Android apps, or using macOS and Windows apps. You can also create a new Arduino project that also uses MQTT, and easily let the two Arduinos communicate using MQTT in the same way.
  5. Writing as little code as possible is the most efficient way of making your ideas a reality. When you find tiny examples or code snippets that solve parts of your problems, you should try to combine them instead of writing all of the code from scratch. You will be faster this way: you don't need to be an expert, and mostly using code that has been used by other people means that it will probably work when you use it.
  6. You really don't need to be an expert to build breathtaking prototypes. In the physical prototyping workshops I've held, many people who have never written code before built awesome prototypes anyway by combining examples, adding some code to glue them together, and making it look nice by spending time on building a case and hiding the (often ugly-looking) inner workings of the prototype.
  1. Please don't bet the life of your pet on your prototype working. As stated before, it is not secure, can probably fail in other ways, and should just be used as a prototype.
  2. There are many more things that you can build using just a servomotor and the techniques we used. Have a brainstorming session and try to come up with five ideas.
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-On Internet of Things with MQTT
Published in: Oct 2019Publisher: PacktISBN-13: 9781789341782

Author (1)

author image
Tim Pulver

Tim Pulver is a Berlin-based freelance interaction designer and developer. In his work, he combines his physical prototyping experience and knowledge of interface design with modern technologies such as 3D printing, laser cutting, web technologies, and machine learning to create unique interactive experiences. In recent years, he has worked on interactive data visualizations, web-based audiovisual experiences, musical interfaces, and cables an innovative browser-based visual programming language that enables the creation of interactive audiovisual prototypes without writing any code. He holds a Bachelor of Arts degree in interface design from the University of Applied Sciences in Potsdam, Germany.
Read more about Tim Pulver