Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User
esp32 ;

ESP32 Ausgangstrom einstellen

28.05.2020 (👁8436)

ESP32 Ausgang auf 40mA Strom einstellen

Arduino, Strom, Treiber, MosFET

GPIO Ausgang Strom anpassen

Beim ESP32 kann man die maximale Stromstärke im Prozessor anpassen.

Ein Digitaler Ausgang wird beim ESP32 normalerweise mit 20mA Milliampere belastet.

Man kann den Digitalen Ausgang aber auch auf 40mA umschalten

• 2: ~20 mA

• 3: ~40 mA

esp_err_tgpio_set_drive_capability(gpio_num_t gpio_num, gpio_drive_cap_t strength)

Set GPIO pad drive capability.

Return

·        ESP_OK Success

·        ESP_ERR_INVALID_ARG Parameter error

Parameters

·        gpio_num: GPIO number, only support output GPIOs

·        strength: Drive capability of the pad

 

esp_err_tgpio_get_drive_capability(gpio_num_t gpio_num, gpio_drive_cap_t *strength)

Get GPIO pad drive capability.

Return

·        ESP_OK Success

·        ESP_ERR_INVALID_ARG Parameter error

Parameters

·        gpio_num: GPIO number, only support output GPIOs

·        strength: Pointer to accept drive capability of the pad

 

 

Each digital output pin is associated with its configurable drive strength. Column “Drive Strength” in Table IO_MUX lists the default values.

The drive strength of the digital output pins can be configured into one of the following four options:

• 0: ~5 mA

• 1: ~10 mA

• 2: ~20 mA

• 3: ~40 mA

The default value is 2. The drive strength of the internal pull-up (wpu) and pull-down (wpd) is ~75 µA.

 

The maximum output current (sink/source) of the ESP32 is 12mA.