AWS EC2 instance can be used to control BeagleBone Ai-64 from web browser. The AWS E2C instace has public IP address so we can connect from all over the world. For communication between BeagleBone AI-64 we will use MQTT.

MQTT is a versatile and robust messaging protocol that has become a popular choice for IoT and M2M communication. Its simplicity, efficiency, and reliability make it a great option for many different applications and industries.

To develop simple web server we will use Node.js.

Node.js is an open-source, cross-platform JavaScript runtime environment built on the V8 engine of Google Chrome. It allows developers to run JavaScript code outside of the browser, on the server-side, and provides an event-driven, non-blocking I/O model that makes it highly efficient and scalable.

Connection diagram between AWS E2C Instance and BeagleBone AI-64

On the AWS E2C Instance we will install the EMQ X message broker from https://www.emqx.io/

EMQ X is an open-source, highly scalable and distributed MQTT message broker that supports MQTT 5.0, MQTT 3.1.1 and MQTT-SN protocols.

To BeagleBone AI-64 we will connect AHT15 digital temperature and humidity sensor and two leds.

Once connected, the EC2 instance can receive and process MQTT messages from BeagleBone AI-64, and send messages to the devices as well. This can be used for a variety of use cases, such as:

  1. Monitoring and controlling IoT devices remotely from the cloud.
  2. Collecting and analyzing data from IoT devices in real-time.
  3. Sending alerts and notifications to IoT devices based on certain conditions.