GithubHelp home page GithubHelp logo

esp32-mini-32-v1.3's Introduction

ESP32-MINI-32-V1.3

ESP32-Arduino-demo

Unit 1 Blink

LED can change Blink frequency by changing delay time

digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
delay(1000);                       // wait for a second
Serial.println("blink on");
digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
delay(1000);                       // wait for a second

Flash every second


Unit 2 Bluetooth

Phone pairing to connect to Bluetooth

void setup() {
  Serial.begin(115200);
  SerialBT.begin("ESP32test"); //Bluetooth device name
  Serial.println("The device started, now you can pair it with bluetooth!");
  Serial.println("My name is ESP32test");
}

ESP32 Bluetooth name is set by SerialBT.begin()


Uint 3 wifi

wifi_scan

Wifi scan serial port information display can connect wifi name and signal strength

 Serial.begin(115200);

    // Set WiFi to station mode and disconnect from an AP if it was previously connected
    WiFi.mode(WIFI_STA);
    WiFi.disconnect();
    delay(100);

    Serial.println("Setup done")

wifi_web_sever

By connecting to WiFi, you can generate a web page.

const char* ssid = "TP-LINK-";//Please input your wifi ID
const char* password = "123456";//Please input your wifi password

//Log in with a browser to generate a mac address:
//example:192.168.0.108
digitalWrite(led, 1);
server.send(200, "text/plain", "hello from esp32!");
digitalWrite(led, 0);

Log in to 192.168.0.x,The screen will display:"hello from esp32!"


esp32-mini-32-v1.3's People

Contributors

lilygo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp32-mini-32-v1.3's Issues

Bluetooth

Hi all,

I have a pair of "TTGO T-Display V1.1 ESP32 - with 1.14 inch TFT Display" and a pair of "ESP32-CAM" and one "TTGO T7 Mini32 V1.3".

All where I upload the same sketch with bluetooth, the bluetooth works without problems. only with the TTGO T7 Mini32 V1.3 the bluetooth will not work. How is that possible? I am using the same code and the same Arduino environment

Where can I find the arduino drivers for this board?

Sorrry for the non-issue but I am trying to setup my arduino to use this ESP32 but I was no able to locate the hardware drivers on here.

Do I need to update Arduino with more than the Esspresif/arduino-esp32 drivers?

If not, what board should I choose in the library?

Many thanks!

External antenna

I am interested in using the external antenna u.fl connector. I can not find any information about how to make that work on the pcb. Can you please provide this information. A picture showing it would be great.

i2c not available on pins 35 and 33

theres nothing obvious i can see on the schematic, and afaik i should be able to map i2c sda/scl to these pins, but it doesnt work. the lines are being held high. if i change to other pins my code works fine.

about SPP mode hangup problem

Dear Sir:

the following code is what I used for send out data which captured from ADC via BT SPP. what I met problem is the data no longer send out after two times connect / disconnect from android BT serial terminal app. after put some debug code in loop(), I found after two times connect / disconnect, the data did'nt send out.
where is my missing point? if this a potential bug for real application or product prototyping?

Thanks in advance.

=============================================================
#include "BluetoothSerial.h"
#include "esp_bt_main.h"
#include "esp_bt_device.h"

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

#define LED_BUILTIN 22
#define DIST_SENSOR_PIN 33

#define uS_TO_S_FACTOR 1000000
#define DELAY_MS 10

typedef enum {
BT_UNKOWN = -1,
BT_DISCONNTECT = 0,
BT_CONNECTED = 1,
};

char sensor_name[16] = {0};
int bt_event_type = BT_UNKOWN;

BluetoothSerial SerialBT;

void callback(esp_spp_cb_event_t event, esp_spp_cb_param_t *param)
{
if (event == ESP_SPP_SRV_OPEN_EVT) {
Serial.println("Client Connected");
bt_event_type = BT_CONNECTED;
}

if (event == ESP_SPP_CLOSE_EVT ) {
Serial.println("Client disconnected");
bt_event_type = BT_DISCONNTECT;
}
}

bool initBluetooth()
{
if (!btStart()) {
Serial.println("Failed to initialize controller");
return false;
}

if (esp_bluedroid_init() != ESP_OK) {
Serial.println("Failed to initialize bluedroid");
return false;
}

if (esp_bluedroid_enable() != ESP_OK) {
Serial.println("Failed to enable bluedroid");
return false;
}

return true;
}

void printDeviceAddress()
{
const uint8_t* point = esp_bt_dev_get_address();

memset(sensor_name, 0x00, 16);
sprintf(sensor_name, "DIST_%02X%02X", point[4], point[5]);

for (int i = 0; i < 6; i++) {
char str[3];
sprintf(str, "%02X", (int)point[i]);
Serial.print(str);
if (i < 5) {
Serial.print(":");
}
}
Serial.println("");
Serial.println("");
}

// the setup function runs once when you press reset or power the board
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
pinMode(DIST_SENSOR_PIN, INPUT);

Serial.begin(115200);

delay(100);
Serial.println("");

analogSetCycles(8);
analogSetSamples(2);
adcStart(DIST_SENSOR_PIN);
digitalWrite(LED_BUILTIN, LOW);

Serial.println("Distance Sensor V2.0");
Serial.println("");

initBluetooth();
printDeviceAddress();

SerialBT.begin(sensor_name);
SerialBT.register_callback(callback);
Serial.println(sensor_name);
bt_event_type = BT_DISCONNTECT;
}

// the loop function runs over and over again forever
void loop() {
int dist_val = 0;
unsigned long start_time = 0;
unsigned long stop_time = 0;
int diff_time = 0;

//start_time = millis();
digitalWrite(LED_BUILTIN, HIGH);

dist_val = analogRead(DIST_SENSOR_PIN);

diff_time = SerialBT.available();

if (bt_event_type == BT_CONNECTED) {
SerialBT.println(String(dist_val));
//} else if(bt_event_type == BT_DISCONNTECT) {
// Serial.println(String(dist_val));
//} else {
// Serial.println("no data");
}

Serial.println(String(dist_val) + " " + String(diff_time));

//stop_time = millis();
//diff_time = DELAY_MS - (stop_time - start_time);
//if (diff_time > 0) delay(diff_time);
delay(DELAY_MS);

digitalWrite(LED_BUILTIN, LOW);
delay(DELAY_MS);
}

BR, Akio

leds

What do the led stand for?
Red = power
green =???
bleu = ???

en what do the switch (close to the usb)

Read lipo charging progress?

Is there a way how we can read the remaining battery level of a connected lipo battery / how much the battery is charged?

Dimensional Drawing

hi, do y'all have a dimensional drawing available? specifically looking to locate the screw holes, USB, switch, and buttons, within the board.

Eagle library

Hello guys, do you happen to have an eagle library?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.