Usin Thingspeak to control a remote device?

8 visualizaciones (últimos 30 días)
Giovanni
Giovanni el 3 de Mzo. de 2025
Comentada: Giovanni el 3 de Mzo. de 2025
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

Respuesta aceptada

Vinod
Vinod el 3 de Mzo. de 2025
Editada: Vinod el 3 de Mzo. de 2025
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.

Más respuestas (1)

Christopher Stapels
Christopher Stapels el 3 de Mzo. de 2025
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.

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre Write Data to Channel en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by