Realtek Ameba RTL8195 IoT system with MQTT
This is a simple IoT project based on the “mqtt basic” example that comes with the Arduino package of Arduino IDE. In this project, simple passive components are used to aid in demonstrating the power of bidirectional communication of MQTT protocol which is widely used in modern IOT applications for its advantages in speedy response and lightweight.
An android tablet was used as an MQTT client and Ameba RTL8195. RTL8195 acted as another MQTT client communicating with the android tablet. Both clients has to connect to the same MQTT server before proceeding to the next step, you may choose to set up your own MQTT server following an online guide at http://www.steves-internet-guide.com/mqtt-hosting-brokers-and-servers/ or using the free server at https://test.mosquitto.org
By sending a “1” from the android device to the Ameba RTL8195, it turns on the LED connected with Ameba, and a “0” would turn off the LED. At any time, you can press the push button connected with the Ameba board to enquire LED status and forward it back to the android tablet. This setup simulates the real application of IoT products available in our household and is very easy to implement.
GitHub source code,
List of Deliverables
- Realtek Ameba 1 microcontroller
- DHT sensor
- Jumper wires