Hi, I want to use a couple of 0805 resistors, hook them up in tandem to 220V AC power source, and then do some zero-crossing detection.
I know I know, this totally isn't how you are supposed to get it done, but bear with me.
My question is which one of the follow 2 scheme is the least evil way to get it done?
Plan 1:
Hook the resistors directly to an AIN pin. The pin and the resistors will be in serial connection, the current will go directly through the MCU to the ground.
The major problem with that is I don't know the impedence of the MCU, so it could take a really long time via trial and error to evetually settle down an appropriate value.
Plan 2: connect those resistors to the ground, then draw voltage from in between 2 resistors.
At least on surface this one sound better. It's simpler, l;et's say I want to user the max range of the nrf51822's ADC, which is 3.6V. So all I have to do is to
calculate the proportion of those resistors, since 3.6/220 = 0.01636, my resistor ratio could be 500k : 500k :16k, the current will be minuscule although again questions stand as how tiny a current will not be sufficient enough to trigger nrf51822's AIN input.
Anyway, your opinion?