Lab 3 overview

The previous two labs showed you how you can connect an IoT device to IBM® Bluemix® and use Watson analytics and external APIs (Twitter and Twilio). This lab demonstrates a further integration of IoT smart devices.

This lab shows you how to connect an iOS application to an IoT device and use the IBM Watson IoT™ Platform. Optionally, you will communicate with a robot that is connected to the Raspberry Pi. You will add a voice user interface to invoke commands on the Raspberry Pi.

Finally, you’ll implement the popular robot called the iRobot Create2. You don’t need the iRobot to complete this lab, but it’ll be more fun if you have it.


Complete the previous two labs. Be sure you have the following software and an IBM Bluemix account:

  • Mac OS 10.2 or later
  • Swift 3
  • Xcode 8.2.1 or later
  • Optional: iRobot Create2 with a serial port adapter

Application architecture

The following diagram shows the architecture of the application that you’ll build in this lab. On the bottom left, a smart device (smartphone) connects to the Watson IoT Platform service hosted on Bluemix.

Commands issued from the smart device invoke actions on the Raspberry Pi. The Raspberry Pi is optionally connected through a serial port to the iRobot Create2.