Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Easy WiFi scanning and connecting using MicroPython on the RTL8722

Status
Not open for further replies.

crabbyhead

Newbie level 6
Joined
Feb 28, 2020
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
201
Microcontrollers are known for its low power usage and limited resources thus often deemed unable to understand Python script as Python need interpretor to translate script into machine langauge and intepretor are usaully quite resource-consuming. However, MicroPython has arisen as a lean and efficiant Python 3 interpretor that can be run on ARM Cortex-M series microcontrollers.

Ameba RTL8722 is an ARM Cortex-M33 microcontroller that has dual-band WiFi and BLE 5.0, other than that it is fully capable of running MicroPython and controls WiFi using Python script. In addition, its requirement for developing platform is also quite minimal-- only needs a serial port terminal like Tera term. Here is an example of RTL8722 controlling WiFi using just a few lines of Python code on Tera Term,


Code Python - [expand]
1
2
3
from wireless import WLAN
wifi = WLAN(mode = WLAN.STA)
wifi.scan()



Right after the last line, you will be able to see the result printed on the Tera term almost immediately,
micropython-started-4.png


More details on getting started with MicroPython on the RTL8722DM can be found at:
Ameba MicroPython: Getting Started with RTL8722 – Realtek IoT/Wi-Fi MCU Solutions

Join in the community discussions at:
AmebaIoT Community Forum
Facebook Group

Purchase links for the various Realtek development boards can be found at:
Buy Ameba Boards – Realtek IoT/Wi-Fi MCU Solutions
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top