Значи схващам ти идеята, но ми проблесна нещо като спомен, а именно, че няма как да следиш директно напрежения над 5 волта с ардуиното. Може и да греша, но имаше някакво ограничение. Спомням си, че исках да правя една схема, която да следи заряда на акумулатори (12 волта), но трябваше да се прави допълнителен "буфер", за тока и напрежението, понеже бяха по-високи от допустимите за този контролер. Препоръчвам те да си провериш до колко волта може да подадеш на аналоговите входове.
Аха... ето...
analogRead()
Reads the value from the specified analog pin. The Arduino board contains a 6 channel (8 channels on the Mini and Nano, 16 on the Mega), 10-bit analog to digital converter. This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023. This yields a resolution between readings of: 5 volts / 1024 units or, .0049 volts (4.9 mV) per unit. The input range and resolution can be changed using analogReference().
Последното изречение е обнадеждаващо... чети си
Аха... ето...
analogRead()
Reads the value from the specified analog pin. The Arduino board contains a 6 channel (8 channels on the Mini and Nano, 16 on the Mega), 10-bit analog to digital converter. This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023. This yields a resolution between readings of: 5 volts / 1024 units or, .0049 volts (4.9 mV) per unit. The input range and resolution can be changed using analogReference().
Последното изречение е обнадеждаващо... чети си
