Wemos C3 fw upload

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Wemos C3 fw upload

#1 Post by mra2ko » 01 Feb 2024, 23:11

Hi all,
I buy Wemos C3 mini V2.1.0, but I am not able flash the FW... I testing all ways, but still not.
Anyone who can write step by step pls...
Thank !

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Wemos C3 fw upload

#2 Post by TD-er » 01 Feb 2024, 23:33

Have you tried the web flasher?
https://td-er.nl/ESPEasy/latest/

Sometimes you need to keep the "boot" button pressed. (labeled "9" on the Wemos C3 mini)

mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Re: Wemos C3 fw upload

#3 Post by mra2ko » 04 Feb 2024, 17:12

Hi, yes i try also... But solved. Poor chinese version :/ I have 3 the same, two not working, 3th work, also work board when i buy in local store...
I try today connect some sensors.

On chinese board nor working :/ other working with DS18B20. But I have some issue with analog input.
I have from battery resistor divider roughly /10 on analog input is +/- 0,42V my formula in device setting is (%value%*18.7/4095). When I apply formula in device, output is ok 4,2 +/-, but after reboot is value 1.53. Open device, no change, make submit and output is ok... Something after reboot is wrong

ADC1 CH0, tested with all att options



TD-er wrote: 01 Feb 2024, 23:33 Have you tried the web flasher?
https://td-er.nl/ESPEasy/latest/

Sometimes you need to keep the "boot" button pressed. (labeled "9" on the Wemos C3 mini)

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Wemos C3 fw upload

#4 Post by TD-er » 04 Feb 2024, 19:49

If it is a board with USB-C connector, please try with rotating your USB-C connector 180 degree.

mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Re: Wemos C3 fw upload

#5 Post by mra2ko » 04 Feb 2024, 19:55

TD-er wrote: 04 Feb 2024, 19:49 If it is a board with USB-C connector, please try with rotating your USB-C connector 180 degree.
I try it, not working... I think the chip have little bit higher temp....
Any idea about the wrong output on ADC after reboot ?

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Wemos C3 fw upload

#6 Post by TD-er » 04 Feb 2024, 20:46

What do you mean about wrong output on ADC after reboot?
ADC is an input pin.
And if it is 'floating' as in nothing connected to it, then it can read any analog value.

Please note that the ESP32-C series do not need to have GPIO-0 pulled to GND, but those need GPIO-9 to be pulled to GND to enter flash mode.
See: https://espeasy.readthedocs.io/en/lates ... pping-pins

mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Re: Wemos C3 fw upload

#7 Post by mra2ko » 05 Feb 2024, 21:47

I use ADC1 CH0 as baterry monitoring is not ok ?



TD-er wrote: 04 Feb 2024, 20:46 What do you mean about wrong output on ADC after reboot?
ADC is an input pin.
And if it is 'floating' as in nothing connected to it, then it can read any analog value.

Please note that the ESP32-C series do not need to have GPIO-0 pulled to GND, but those need GPIO-9 to be pulled to GND to enter flash mode.
See: https://espeasy.readthedocs.io/en/lates ... pping-pins

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Wemos C3 fw upload

#8 Post by TD-er » 05 Feb 2024, 22:27

Should not be a problem as that's the same pin as GPIO-0.
On the ESP32-C3, this is not one of the strapping pins so this pin can have any state during boot.

However it is possible the pin is pulled-up (or down) during boot and this might briefly change the charge of any capacitor you may have placed over the analog input to filter out noise.
So maybe the first reading of the analog input value may be wrong. (or first few readings)

mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Re: Wemos C3 fw upload

#9 Post by mra2ko » 06 Feb 2024, 11:03

I have GPIO-0 as input for battery measuring over resistive divider. On input is battery voltage/10, for examle 0,4V max.
I setup the "device" set the formula (%value%*18.7/4095) , submit and on device list i see good number 4,2V, everithing is ok, but after reboot i dont see 4,2V but 1,53V.
After open the device, only submit is value again in 4,2v...
I think after reboot is not aplied formula (%value%*18.7/4095)

User avatar
Ath
Normal user
Posts: 3519
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wemos C3 fw upload

#10 Post by Ath » 06 Feb 2024, 11:34

What interval have you set for the task?
Does it change after executing the command "taskrun,<adc-task>" ? (<adc-task> should be the number or name of the task that has your ADC configuration)
/Ton (PayPal.me)

mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Re: Wemos C3 fw upload

#11 Post by mra2ko » 06 Feb 2024, 22:10

Nothing...

Task nr. 2 or name "analog"
TaskRun,<2> or TaskRun,<analog>

INVALID_PARAMETERS

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Wemos C3 fw upload

#12 Post by TD-er » 06 Feb 2024, 22:38

Without the <>

Code: Select all

taskrun,2

User avatar
Ath
Normal user
Posts: 3519
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Wemos C3 fw upload

#13 Post by Ath » 06 Feb 2024, 22:39

That should have either been "taskrun,2" or "taskrun,analog"... I've used the same example-syntax as used in the documentation :?
/Ton (PayPal.me)

mra2ko
Normal user
Posts: 80
Joined: 06 Dec 2021, 08:32
Location: Czech Republic

Re: Wemos C3 fw upload

#14 Post by mra2ko » 07 Feb 2024, 18:42

Also try it without <>, but no change when run command.
After open device/edit/submit is ok...
Build: ESP_Easy_mega_20240127_normal_ESP32c3_4M316k_LittleFS_CDC Jan 27 2024


33434: SYS : -81
35264: DS : Temperature: 7.9 (28-41-0c-96-f0-01-3c-c1 [DS18B20])
38384: ADC : Analog value: 328 = 1.50
38432: SYS : -76
40174: DS : Temperature: 7.9 (28-41-0c-96-f0-01-3c-c1 [DS18B20])
43385: ADC : Analog value: 320 = 1.46
43432: SYS : -78
45177: DS : Temperature: 7.9 (28-41-0c-96-f0-01-3c-c1 [DS18B20])
48384: ADC : Analog value: 330 = 1.51
48432: SYS : -78
48542: HTTP: TaskRun,2
48555: ADC : Analog value: 283 = 1.29
48628: static_file: /favicon.ico to: 192.168.100.18
50181: DS : Temperature: 7.9 (28-41-0c-96-f0-01-3c-c1 [DS18B20])
53432: SYS : -86
53554: ADC : Analog value: 328 = 1.50
55186: DS : Temperature: 7.9 (28-41-0c-96-f0-01-3c-c1 [DS18B20])
58432: SYS : -77
58553: ADC : Analog value: 319 = 1.46
60187: DS : Temperature: 7.9 (28-41-0c-96-f0-01-3c-c1 [DS18B20])
63007: HTTP: TaskRun,analog
63021: ADC : Analog value: 328 = 1.50
63141: static_file: /favicon.ico to: 192.168.100.18
63433: SYS : -80
65190: DS : Temperature: 7.9 (28-41-0c-96-f0-01-3c-c1 [DS18B20])
68018: ADC : Analog value: 319 = 1.46
68467: SYS : -77
70191: DS : Temperature: 7.8 (28-41-0c-96-f0-01-3c-c1 [DS18B20])
70996: static_file: /favicon.ico to: 192.168.100.18
73079: static_file: /favicon.ico to: 192.168.100.18
73100: ADC : Analog value: 328 = 1.50
73433: SYS : -77
75242: DS : Temperature: 7.9 (28-41-0c-96-f0-01-3c-c1 [DS18B20])
75332: SaveToFile: CustomTaskSettings index: 1
75334: SaveToFile: free stack: 6296
77269: FILE : Saved config.dat offset: 35840 size: 7
77271: SaveToFile: free stack after: 6296
77279: SaveToFile: TaskSettings index: 1
77281: SaveToFile: free stack: 6904
79246: FILE : Saved config.dat offset: 34816 size: 536
79248: SaveToFile: free stack after: 6904
79279: ESPEasy console using ESPEasySerial
79301: ESPEasy console fallback enabled
79303: Skip saving settings, not changed
79304: Skip saving SecuritySettings, not changed
79324: mDNS : Starting mDNS...
79330: mDNS : Started, with name: Pepa-teplomer-sever-11.local
79363: ADC : Analog value: 863 = 3.94
79572: static_file: /favicon.ico to: 192.168.100.18
79597: SYS : -79
79622: ADC : Analog value: 872 = 3.98
80433: DS : Temperature: 7.9 (28-41-0c-96-f0-01-3c-c1 [DS18B20])

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 32 guests