EN
Official user manual

M5stack Development Kit (ATOMS3)

13 pages·440 KB·Computer·PDF·ENFRITNLJA
M5stack Development Kit (ATOMS3)
Table of Contents 4 sections 7;/)19:'8: · 1.1.ARDUINO IDE · 1.2.BLUETOOTH SERIAL · 1.3.WIFI SCANNING ShowHide
Page 1 of the M5stack Development Kit (ATOMS3) user manual — 1.2.BLUETOOTH SERIAL
Page 1 · click to enlarge
Page 1

7;/)19:'8:

1.1.ARDUINO IDE

Visit Arduino's official website(https: / / www.arduino.cc/ en/ Main/ Software),Select the installation package for your own operating system to download.

> 1.Open up Arduino I DE, navigate to ` File` -> ` Peferences` -> ` Settings`

> 2.Copy the following M5Stack Boards Manager url to ` Additional Boards Manager URLs: `

https/ /raw. githubusercontent.com/ espressif/ arduino-esp32/ ghpages/ package_esp32_dev_index.json

> 3.Navigate to ` Tools` -> ` Board: ` -> ` Boards Manager...`

> 4.Search ` ESP32` in the pop-up window, find it and click ` Install`

> 5.select ` Tools` -> ` Board: ` -> ` ESP32-Arduino-ESP32 DEV Module

M5stack Development Kit (ATOMS3) — 7;/)19:'8: diagram (page 1)
Fig. 1

1.2.BLUETOOTH SERIAL

Page 2 of the M5stack Development Kit (ATOMS3) user manual — 7;/)19:'8:
Page 2 · click to enlarge
Page 2

Open the Arduino I DE and open the example program ` File` -> ` Examples` -> ` BluetoothSerial` -> ` SerialToSerialBT` . Connect the device to the computer and select the corresponding port to burn. After completion, the device will automatically run Bluetooth, and the device name is ` ESP32test` . At this time, use the Bluetooth serial port sending tool on the PC to realize the transparent transmission of Bluetooth serial data.

M5stack Development Kit (ATOMS3) — 7;/)19:'8: diagram (page 2)
Fig. 2

#include "BluetoothSerial.h"

#if!defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED) #error Bluetooth is not enabled! Please run `make menuconfig` to and en able it #endif

Page 3 of the M5stack Development Kit (ATOMS3) user manual — 1.3.WIFI SCANNING
Page 3 · click to enlarge
Page 3

void setup() {

Serial.begin(115200); SerialBT.begin("ESP32test"); //Bluetooth device name Serial.println("The device started, now you can pair it with bluetoot h!"); }

void loop() {

if (Serial.available()) {

SerialBT.write(Serial.read()); } if (SerialBT.available()) {

Serial.write(SerialBT.read()); } delay(20); }

1.3.WIFI SCANNING

Open the Arduino I DE and open the example program ` File` -> ` Examples` -> ` WiFi` -> ` WiFiScan` . Connect the device to the computer and select the corresponding port to burn. After completion, the device will automatically run the WiFi scan, and the current WiFi scan result can be obtained through the serial port monitor that comes with the Arduino.

M5stack Development Kit (ATOMS3) — 1.3.WIFI SCANNING diagram (page 3)
Fig. 3

BluetoothSerial SerialBT;

Page 4 of the M5stack Development Kit (ATOMS3) user manual — 1.3.WIFI SCANNING
Page 4 · click to enlarge
Page 4

#include "WiFi.h"

void setup() {

Serial.begin(115200); // Set WiFi to station mode and disconnect from an AP if it was pre viously connected

WiFi.mode(WIFI_STA); WiFi.disconnect(); delay(100);

Serial.println("Setup done"); }

void loop() {

Serial.println("scan start");

// WiFi.scanNetworks will return the number of networks found int n = WiFi.scanNetworks(); Serial.println("scan done"); if (n == 0) {

Serial.println("no networks found"); } else {

Serial.print(n); Serial.println(" networks found"); for (int i = 0; i < n; ++i) {

// Print SSID and RSSI for each network found Serial.print(i + 1); Serial.print(": "); Serial.print(WiFi.SSID(i)); Serial.print(" ("); Serial.print(WiFi.RSSI(i)); Serial.print(")"); Serial.println((WiFi.encryptionType(i) == WIFI_AUTH_OPEN)?" ":"*");

delay(10); } } Serial.println("");

// Wait a bit before scanning again delay(5000); }

Ask about the M5stack Development Kit (ATOMS3)

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the M5stack Development Kit (ATOMS3)

Be the first to ask — other owners or our team will answer.

Original document

M5stack Development Kit (ATOMS3) manual PDF

13 pages·440 KB·Computer·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…