Now i look for a little programm to correct this.
Here are my measurements:
0.0V - 5
0.1V - 195
0.2V - 338
0.3V - 463
0.4V - 555
0.5V - 643
0.6V - 714
0.7V - 782
0.8V - 842
0.9V - 900
1.0V - 952
thanks for your tips.
Explore... Chat... Share...
void read_sar_dout(uint16 * buf)
{
volatile uint32 * sar_regs = &SAR_BASE[32]; // 8 regs 0x60000D80...
int i;
for(i = 0; i < 8; i++) {
int x = ~(*sar_regs++);
int z = (x & 0xFF) - 21;
x &= 0x700;
if(z > 0) x = ((z * 279) >> 8) + x;
buf[i] = x;
}
}
uint16 sar_dout, tout, sardata[8];
read_sar_dout(sardata);
for (i = 0; i < 8; i++) {
sar_dout += sardata[i];
ADC_DBG("%d, ", sardata[i]);
}
pvvx wrote:Your measurements are not true.
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]