使用官网上深度睡眠的示例demo-------deep-sleep,测试的电流是90uA,电流太大了

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: 使用官网上深度睡眠的示例demo-------deep-sleep,测试的电流是90uA,电流太大了

Postby ESP_ICY » Thu Jan 20, 2022 7:09 am

这边方便提供一下电流测试时的波形图吗

fst202130609
Posts: 171
Joined: Thu Sep 23, 2021 10:03 am

Re: 使用官网上深度睡眠的示例demo-------deep-sleep,测试的电流是90uA,电流太大了

Postby fst202130609 » Thu Jan 20, 2022 8:25 am

用万用表来测试的,波形怎么抓,难道用逻辑分析仪?

fst202130609
Posts: 171
Joined: Thu Sep 23, 2021 10:03 am

Re: 使用官网上深度睡眠的示例demo-------deep-sleep,测试的电流是90uA,电流太大了

Postby fst202130609 » Thu Jan 20, 2022 8:28 am

我按照硬件原理图,在esp_deep_sleep_start();前把这些io口设置为输出模式,并设置为高电平,发现电流还是没变。
gpio_reset_pin(0);
gpio_reset_pin(1);
gpio_reset_pin(2);
gpio_reset_pin(3);
gpio_reset_pin(6);
gpio_reset_pin(7);
gpio_reset_pin(8);
gpio_reset_pin(9);
gpio_reset_pin(18);
gpio_reset_pin(19);
gpio_set_direction(0, GPIO_MODE_OUTPUT);
gpio_set_direction(1, GPIO_MODE_OUTPUT);
gpio_set_direction(2, GPIO_MODE_OUTPUT);
gpio_set_direction(3, GPIO_MODE_OUTPUT);
gpio_set_direction(4, GPIO_MODE_INPUT);
gpio_set_direction(5, GPIO_MODE_INPUT);
gpio_set_direction(6, GPIO_MODE_OUTPUT);
gpio_set_direction(7, GPIO_MODE_OUTPUT);
gpio_set_direction(8, GPIO_MODE_OUTPUT);
gpio_set_direction(9, GPIO_MODE_OUTPUT);
gpio_set_direction(18, GPIO_MODE_OUTPUT);
gpio_set_direction(19, GPIO_MODE_OUTPUT);

gpio_set_level(0, 1);
gpio_set_level(1, 1);
gpio_set_level(2, 0);
gpio_set_level(3, 0);
gpio_set_level(6, 0);
gpio_set_level(7, 0);
gpio_set_level(8, 0);
gpio_set_level(9, 0);
gpio_set_level(18, 1);
gpio_set_level(19, 1);

Who is online

Users browsing this forum: No registered users and 82 guests