Ble Robot Car Using Realtek Ameba Rtl8722dm (amb21) Board

Photo of vinayyn

Made by vinayyn / Robotics / IoT

About the project

Here I am showcasing BLE Robot Car Controlling With Bluefruit Connect App.

Project info

Difficulty: Moderate

Platforms: AdafruitAndroidSeeed Studio

Estimated time: 3 hours

License: GNU General Public License, version 3 or later (GPL3+)

Items used in this project

Hardware components

Jumper wires (generic) Jumper wires (generic) x 1
Toggle Switch, (On)-Off-(On) Toggle Switch, (On)-Off-(On) x 1
chasis chasis x 1
Wheel 10cm Diameter Wheel 10cm Diameter x 4
Rechargeable Battery, 12 V Rechargeable Battery, 12 V x 1
SparkFun Dual H-Bridge motor drivers L298 SparkFun Dual H-Bridge motor drivers L298 x 1
Geared DC Motor, 12 V Geared DC Motor, 12 V x 4
Ameba RTL8722DM IoT Development Board Ameba RTL8722DM IoT Development Board x 1

View all

Software apps and online services

Tape, Double Sided Tape, Double Sided
Multitool, Screwdriver Multitool, Screwdriver
Solder Flux, Soldering Solder Flux, Soldering
Solder Wire, Lead Free Solder Wire, Lead Free
Adafruit Bluefruit Connect Adafruit Bluefruit Connect
Arduino IDE Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic) Soldering iron (generic) x 1

Story

Introduction To Ameba RTL8722DM Board (AMB 21)

Ameba RTL8722DM IoT Development Board integrates the RTL8722DM SoC which is the latest generation SoC of the Ameba IoT solution family, and it is powered by a high-performance 32-bit dual MCU with a new architecture from Arm. an Arm v8M (Cortex-M33 instruction set compatible) running at up to 200MHz and an Arm®v8M (Cortex-M23 instruction set compatible) running at up to 20MHz.

RTL872xD is a highly integrated single-chip low power dual bands (2.4GHz and 5GHz) Wireless LAN (WLAN) and Bluetooth Low Energy (BLE 5.0) communication controller. It consists of a high-performance MCU (Armv8-M, Cortex-M33 instruction set compatible) called Real-M300 (or KM4 thereafter) and a low power MCU (Armv8-M, Cortex-M23 instruction set compatible) called Real-M200 (or KM0 thereafter), WLAN (802.11 a/b/g/n) MAC, a 1T1R capable WLAN baseband, RF, Bluetooth, and peripherals. High-speed connectivity interfaces, SDIO, and USB are provided. There are also audio codec, Key-Scan, and touch keys integrated into this IC. Besides, flexible design configures GPIO to different functions according to applications. RTL872xD also integrates memories (ROM/SRAM/PSRAM) for IoT (Internet of Things) Wi-Fi protocol functions and applications. The user-friendly development kits (SDK and HDK) are supported to customers for developing IoT applications. The KM4 MCU is a 32-bit core that offers system enhancements such as low power consumption, enhanced debug features, floating-point computation, DSP instructions, and a high level of support block integration. The KM4 MCU incorporates a 3-stage pipeline. The KM0 coprocessor is an energy-efficient and easy-to-use 32-bit core that is code- and tool-compatible with the KM4 core. The KM0 coprocessor offers up to 20MHz performance with a simple instruction set and reduced code size.

Ameba RTL8722DM Board (AMB 21)

Ameba RTL8722DM Board (AMB 21)

Ameba RTL8722DM Board (AMB 21)

Features
  • Ultra-low power consumption suitable for IoT applications
  • Latest high-security architecture with secure boot
  • Dual Arm® powered CPUs for higher performance
  • Fast wireless speeds with the latest wireless technologies such as Wi-Fi 5GHz and BLE5
  • Rich I/O peripherals to further expand your projects

CPU
  • 32-bit Arm®Cortex®-M4, up to 200MHz.32-bit Arm®Cortex®-M0, up to 20MHz.

MEMORY
  • 512KB SRAM + 4MB PSRAM

KEY FEATURES

Integrated 802.11a/n Wi-Fi SocTrust zone-M SecurityHardware SSL EngineRoot Trust Secure BootUSB Host/DeviceSD HostBLE5.0CodecLCDCKey Matrix

OTHER FEATURES

1 PCM interface4 UART interface1 I2S Interface2 I2C interface7 ADC17 PWMMax 54 GPIO

The wireless features of RTL872xD

Wi-Fi Features

  • 802.11 a/b/g/n 1x1, 2.4GHz & 5GHz
  • Supports 20MHz/40MHz up to MCS7 l Low power architecture
  • Low power Tx/Rx for short-range application @1.8V
  • Low power beacon listen mode l Low power Rx mode
  • Very low power suspends mode (DLPS)
  • Built-in PA, also supports external PA and LNA
  • Supports Antenna diversity
  • Internal PTA interface for arbitrating data transmission between Wi-Fi and internal Bluetooth or external 2.4G devices

Bluetooth Features

  • BLE 5.0
  • Both central and peripheral modes
  • High power mode (8dbm, shares the same PA with Wi-Fi)
  • Internal co-existence mechanism between Wi-Fi and BT to share the same antenna

To Learn More About The Ameba RTL8722DM Board (AMB 21) go through this link click Here.

_______________________________________________________________

Here I am showcasing BLE Robot Car Controlling With Bluefruit Connect App

Working Of BLE Robot Car Controlling With Bluefruit Connect App

I am controlling a robot car using the Bluefruit connect app. The app sends the Particular commands when I press the control pad on the app. on the receiver side, I have used Realtek Ameba RTL8722DM (AMB21) Board. The RTL8722DM receives the Bluetooth data and processes the received data and sends the Contro signal to the Motor Driver. The motor Driver Controls the Four motors according to the control signals.

Block Diagram of the project

Block Diagram of the project

Block Diagram of the project

BLE Robot Car

BLE Robot Car

BLE Robot Car

Demo Video

Demo Video

Useful Links

1. https://www.amebaiot.com/en/rtl8722dm-arduino-online-api-documents/

2.https://www.amebaiot.com/en/

Schematics, diagrams and documents

Connection diagram

Code

Code

The code is based on C

Credits

Leave your feedback...