goldiee36 / cycle-speed

Advanced bicycle board computer (arduino based)
Apache License 2.0
1 stars 0 forks source link

Battery measurement #4

Open goldiee36 opened 9 years ago

goldiee36 commented 9 years ago

With a voltage divider circuit. Write and test code on the breadboard.

goldiee36 commented 9 years ago

float voltage = sensorValue * (4.955 / 1023.0);