Introduction: Intel IoT Roadshow Paris - TCup

About: Freelance Javascript developer, startup maker and bullshit killer. Built @Whyd, @PlayemJS and co-founded @fHACKtory. Also drummer and candid blogger.

TCup is a device+app that helps you improve the quality of your tea consumption, by adapting the infusion process accordingly to the type of tea, and by notifying you when your cup of tea has arrived to your favorite drinking temperature.

We have developed this project during Intel IoT Roadshow in Paris, in September 13th, 2015. Our team is composed of Kevin Lefevre (iPhone development) and Adrien Joly (Node.js development).

Step 1: Assemble the Hardware

You will need the following hardware:

After connecting and configuring the Edison board so that it connects to your Wifi network, execute the following steps:

  1. Plug the shield on the Edison board
  2. Plug the temperature sensors to A0
  3. Plug the LCD display to the first I2C
  4. Don't forget to set the shield board to 5 volts, for the LCD to work properly.

Now that the hardware is set up, let's push some code to give it some life!

Step 2: Fit the Temperature Sensor Into a Cup

The temperature sensor is composed of a chip and 3 resistors. In order to get a reliable measurement, the resistors must be as close to the hot water as possible, without ever getting wet (because the circuit is not waterproof).

In order to do that:

  1. Take two plastic or cardboard cups;
  2. Cut a piece of the first cup so that the temperature sensor can fit in;
  3. Put the second cup inside the first cup;
  4. Make sure that the resistors of the temperature sensor touch the second cup.

Step 3: Push the Software

The software is composed of the following:

  • A Node.js application that will run on the Edison board, for sensing the temperature of the cup and displaying status.
  • An iOS app that will run on an iPhone to control the device, and enable Push notifications.
  • And an alternative web client (shipped with the Node.js application) to control the device.

Execute the following steps:

  1. Download/clone the Node.js server
  2. Push the Node.js server to your Edison board (e.g. using XDK)
  3. Run `npm install` in the server's directory (on your board) to install the dependencies
  4. Download/clone the iPhone app
  5. Update the IP address of your Edison board in the iPhone app's source code
  6. Compile and install the app on your iPhone
  7. Generate a certificate + key for sending APNS notifications to your iPhone
  8. Upload the files cert.pem and key.pem to the Node.js server's directory, on your Edison board
  9. Run the Node.js server on the Edison board (`node main.js`)
  10. Start the iPhone app, and enjoy!

If you experience any trouble with the iPhone app, you can alternatively use our web client, by opening the port 1337 of your Edison in your web browser.

Step 4: Craft a Box for Your Edison Board (BONUS)

You can re-use the cardboard box of your Edison board.

  1. Cut it so that your USB (or A/C) cables and sensor wires can find a way out of your box;
  2. Cut a hole for your LCD display;
  3. Then cut a piece of the top of the box, so that it pushes the LCD display forward.

Your DIY box looks great!


Intel® IoT Invitational

Participated in the
Intel® IoT Invitational