DE
Offizielle Bedienungsanleitung

M5stack Development Kit (ATOMS3)

13 Seiten·440 KB·Computer·PDF·ENFRITNLJA
M5stack Development Kit (ATOMS3)
Inhaltsverzeichnis 4 Abschnitte 7;/)19:'8: · 1.1.ARDUINO IDE · 1.2.BLUETOOTH SERIAL · 1.3.WIFI SCANNING AnzeigenAusblenden
Page 1 of the M5stack Development Kit (ATOMS3) user manual — 1.2.BLUETOOTH SERIAL
Seite 1 · Zum Vergrößern klicken
Seite 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)
Abb. 1

1.2.BLUETOOTH SERIAL

Page 2 of the M5stack Development Kit (ATOMS3) user manual — 7;/)19:'8:
Seite 2 · Zum Vergrößern klicken
Seite 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)
Abb. 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
Seite 3 · Zum Vergrößern klicken
Seite 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)
Abb. 3

BluetoothSerial SerialBT;

Page 4 of the M5stack Development Kit (ATOMS3) user manual — 1.3.WIFI SCANNING
Seite 4 · Zum Vergrößern klicken
Seite 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); }

Frage zu M5stack Development Kit (ATOMS3) stellen

Besitzer und unser Team antworten in der Regel innerhalb eines Tages – und Ihre Frage hilft auch anderen weiter.

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

0 questions
Noch keine Fragen zu M5stack Development Kit (ATOMS3)

Stellen Sie die erste Frage — andere Nutzer oder unser Team antworten Ihnen.

Originaldokument

M5stack Development Kit (ATOMS3) PDF-Anleitung

13 Seiten·440 KB·Computer·PDF
Klicken Sie oben auf eine Seite, um sie hier zu öffnen
Seite 1 / …
100%
Seiten werden geladen…