Use Ameba RTL8722DM GPIO to Control LED

by daphwl in Circuits > Arduino

62 Views, 0 Favorites, 0 Comments

Use Ameba RTL8722DM GPIO to Control LED

GPIOinterrupt.jpg

Ameba RTL8722DM

Ameba RTL8722DM is a low-power dual-band WLAN and BLE(Bluetooth Low Energy) SoC by Realtek. The RTL8722DM also include memory for Wi-Fi protocol functions and application making it simple for anyone to develop various kind of IoT applications. At the same time it has a wide range of peripheral interfaces. With all these interfaces, it can connect to most of the electronics components like LEDs, temperature and humidity sensors, and so on.

For Demo Video, Please visit the youtube channel:

In this project we will be using a button to trigger interrupt and control the LED. When the LED is pressed and released, the LED will be dimmed. And when the button is pressed and released again, the LED will lights up.

Supplies

Ameba RTL8722DM x1

LED x1

220 ohms resistor x1

Button x1

Setting Up

GPIOled 3-1.png

First, connect the breadboard to Ameba.

Then connect the LED, resistor and push button as shown in the wiring diagram.

Programming

ArduinoLogo.png

The programming can be done using Arduino IDE which makes it very easy to write code and upload to the Ameba board.

To open the sample code in the Arduino IDE, Open "File" -> "Examples" -> "AmebaGPIO" -> "LED_InterruptCtr"

Upload the code and once the upload is finish, press the reset button on the Ameba.

Final Result

The LED will light up when the reset button is pressed. Press and release the button and the LED will be dimmed. Press the button again, the LED should light up.

Additional Resources

If you need additional technical documents or the source code for this project. Please visit the official websites and join the Facebook group and forum.

Ameba Official Website: https://www.amebaiot.com/en/

Ameba Facebook Group: https://www.facebook.com/groups/amebaioten

Ameba Forum: https://forum.amebaiot.com/