Table of Contents

connect to ThingSpeak Channel () & write API () & read API ()

Description

The block connects the PictoBlox to the ThinkSpeak Channel with the specified write and the read API keys. Without this block, other functionality does not work related to ThinkSpeak.

  1. Channel ID: This is the unique ID by which the channel data can be identified.
  2. Read and Write API: These are the unique API keys for performing data read and write operations. You can locate it in the API section of the channel.

Example

In this example, we will send the humidity and temperature sensor data to the cloud on the ThingSpeak servers.

In this example, we will send the humidity and temperature sensor data to the cloud on the ThingSpeak servers.

ThingSpeak Channel

Create a channel on ThingSpeak with 2 fields – Temperature and Humidity.

DHT Sensor Connection to Quarky

DHT sensors have 3 pins: GND, VCC, and Signal. You have to connect the following 3 pins to the Quarky Expansion Board:

  1. GND to Ground Pin of Quarky Expansion Board
  2. VCC to 3.3V or VCC Pin of Quarky Expansion Board
  3. Signal to the D3 (Digital Pin) of the Quarky Expansion Board

Script

The following script reads the temperature and humidity reading from the DHT sensor and sends them to the ThingSpeak channel.

Output

Read More
All articles loaded
No more articles to load