Got a WT32-eth01 board. I tried a few examples it works.
I do not need extreme speed, I do need less energy consumption. It now draws on average some 160mA
I read (part) of the datasheets. Lowering the CPU frequency should help and also lowering the LAN speed should help. In theory it can work with ~75mA so I read......
I am using the Arduino IDE, call me old fashioned but I am pretty 'loose' on this piece of software.
I managed to lower the CPU freq from 240MHz to 80 MHz with result of a 120mA draw:
In the setup:
Code: Select all
// Set the CPU frequency to 80 MHz for consumption optimization
setCpuFrequencyMhz(80);
// Print the XTAL crystal frequency
Serial.print("XTAL Crystal Frequency: ");
Serial.print(getXtalFrequencyMhz());
Serial.println(" MHz");
// Print the CPU frequency
Serial.print("CPU Frequency: ");
Serial.print(getCpuFrequencyMhz());
Serial.println(" MHz");
// Print the APB bus frequency
Serial.print("APB Bus Frequency: ");
Serial.print(getApbFrequency());
Serial.println(" Hz");
Next would be to lower he link speed of the LAN8720A chip. It should be possible to lower that speed from 100Mb to 10Mb, and in theory (datasheet) that would roughly half its energy consumption.
However, I do not know how to do this. I found this thread: https://esp32.com/viewtopic.php?t=40956
It says: Try to get Ethernet handler https://github.com/espressif/arduino-es ... ETH.h#L165
But when I click that I am at a loss what to do.
Question 1: Can I use a lower than 80Mhz CPU speed and still maintain network via Ethernet?
Question 2: (Most important for now) How can I set the LAN8720A speed to 10Mb ?
Hope someone can help me....
Thanks