Jump to content
Electronics-Lab.com Community

Creating WiFi Access Point using MCU -- Ameba Arduino


Recommended Posts

Most of time when we use WiFi, we only use our WiFi device as a "station"(STA) that mainly receive information sent from "access point" (AP). Ameba Microcontroller from Realtek can not only connect to WiFI as a station, but also broadcast its own signal and become an AP, here is how,

 

In AP mode, Ameba can accept at most 3 station connections, and can be set to open mode or security mode (WPA2).

 

Preparation

  • Ameba x 1

Example

In this example, we turn on the AP mode of Ameba and connect station to Ameba.
Open the WiFi AP example, "File" -> "Examples" -> "AmebaWiFi" -> "WiFiAPMode"
1

 

In the snippet highlighted in yellow, fill in your SSID, PASSWORD and CHANNEL.
The snippet highlighted in pink is the API we used to turn on the AP mode in security mode. If you want to turn on the AP mode in open mode, please modify the code to status = WiFi.apbegin(ssid, channel);
Then upload the sample code and press reset, and you can see related information shown in serial monitor.
2

In the figure below, we show the messages shown in serial monitor when two stations connect to Ameba AP in open mode:
3

In the figure below, we show the messages shown in serial monitor when a station connects to Ameba AP in security mode:
4

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...