# FutureBoard and ThingSpeak

ThingSpeak is free to use, however its settings may be difficult for beginners. This tutorial is suitable for complete beginners to start using ThingSpeak with FutureBoard.

### Registering a ThingSpeak Account

Follow the instructions to register for a ThingSpeak account.

[ThingSpeak Introduction](https://kittenbothk-eng.readthedocs.io/en/latest/Wifibrick/IoTPlatform/Thinkspeak.html)

### Setting Up ThingSpeak Platform

#### Create a new Channel

Create a new channel.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/120.png)

Choose a name for your channel.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/29.png)

Other fields can be ignored, click Save Channel.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/39.png)

Open the Sharing tab.

![../../\_images/411.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/411.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/58.png)

The Access with change to “Public”.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/65.png)

#### Add a new device[](https://kittenbothk-eng.readthedocs.io/en/latest/Wifibrick/futureboard/thingspeak.html#add-a-new-device)

Open the Devices menu, select MQTT.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/75.png)

Add a new device.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/84.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/94.png)

Select the channels accessible by this device and click Add Channel.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/104.png)

Click Add Device.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/1110.png)

IMPORTANT! These MQTT Credentials are used for connecting to ThingSpeak! Please save or download the credentials as they can’t be seen after closing this page.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/125.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/135.png)

### KittenBlock Coding

KittenBlock is recommending for beginners.

#### Connecting to ThingSpeak

Build the following program with the following parameters to connect to ThingSpeak.

* MQTT Host: mqtt3.thingspeak.com
* ID: ThingSpeak Device ID
* Username: ThingSpeak Device ClientID
* Password: ThingSpeak Device Password

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/143.png)

#### Publishing to ThingSpeak Channel

We need the Channel ID for publishing. The channel ID is displayed on the Channel page as a 7-digit number.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/153.png)

Build the following program to publish a data to ThingSpeak:

* MQTT Topic: channels/\[Channel ID]/publish
* Message: field\[field No.]=\[Numeric Data]

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/162.png)

On the ThingSpeak page, you can see the published data.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/173.png)

#### Subscribing to ThingSpeak Channel

We can read the channel data by subscribing to the channel.

* MQTT Topic: channels/\[Channel ID]/subscribe/fields/field\[field No.]

Press A to publish a message to the channel, FutureBoard will display the data received.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/183.png)
