Usin Thingspeak to control a remote device?

7 ビュー (過去 30 日間)
Giovanni
Giovanni 2025 年 3 月 3 日
コメント済み: Giovanni 2025 年 3 月 3 日
Hello,
I am exploring Thingspeak features. I have successfully set up an Arduino board with sensors to send messages and display the channel on the Dashboard. It seems to me, however, that the reverse is not possible, i.e. to send messages to Arduino in order to control it. In fact the four widgets available are only supposed to receive data, not to send them. Is this because I have a free account or is it a feature of Thingspeak? As an example, Arduino IoT offers both possibilities.
Thanks
Giovanni

採用された回答

Vinod
Vinod 2025 年 3 月 3 日
編集済み: Vinod 2025 年 3 月 3 日
Hello @Giovanni - there are a couple of ways you can use ThingSpeak to control a device.
A few points to note:
  1. The Talkback app requires your device to poll the ThingSpeak API, and it must have sufficient delays built in so your device doesn't hit server-side rate limits. In general, polling is less efficient than "push" messages. I would strongly recommend the MQTT publish/subscribe pattern as it is more efficient for your device and for ThingSpeak servers.
  2. With a free account, you may update a channel only once every 15s. So, if you are looking for some means of "real-time" control, you will want to purchase a license so you can update a channel up to once per second.
  3. If your "real-time" needs are faster than once a second, I'd recommend considering if the control action can be done on the device without needing the cloud. Cloud connections add latency and will generally be significantly slower than any control logic implemented on the device. Consider building a closed-loop control system using Simulink and generating code for your embedded hardware.
  1 件のコメント
Giovanni
Giovanni 2025 年 3 月 3 日
Thank you, Vinod. It's clear now
Giovanni

サインインしてコメントする。

その他の回答 (1 件)

Christopher Stapels
Christopher Stapels 2025 年 3 月 3 日
Good examples, @Vinod Also, this example shows specifically remote physical control though unfotunately uses esp8266. Still, I think it is another good related example, and it is similar.

コミュニティ

その他の回答  ThingSpeak コミュニティ

カテゴリ

Help Center および File ExchangeWrite Data to Channel についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by