Uploaded August 2025 | Updated September 2026, 3 days ago
Measuring the battery voltage, getting rid of noise and sinusoidal component …
↓↓↓ Complete description, time index and links below ↓↓↓
Last time we saw that oversampling removes noise from the current measurements and that my RC filter doesn’t remove the sinusoidal component. We modified the oversampling to improve that (link below). Let’s measure the battery voltage now.
We start with a recap of the requirements and the circuit. Next we look at some raw ADC data of the battery voltage. After that we implement a textbook oversampling. Finally we translate our oversampled values into proper amperes.
00:00 Intro – let’s tackle the battery voltage measurement
00:37 Recap – of the requirements and the circuit
03:29 Setup – current sensor modified, additional resistors
04:57 Code 1 – getting raw ADC values for the voltage
05:58 Tests 1 – ADC values for different voltages and loads
09:02 Results 1 – ADC values’ noise, offset and error
12:57 Design – digital filter for random and sinusoidal noise
17:11 Oversampling – without multiplication and division
21:39 Code 2 – textbook oversampling of the ADC values
26:57 Tests 2 – first test repeated with oversampled values
29:21 Results 2 - oversampled values’ noise, offset and error
32:44 Code 3 – implementing offset correction and scaling
34:25 Test 3 – we’re within 10mV of a BRYMEN BM829s
37:55 Wrap-up – not sure what to tackle next, bye
Full Fly-by-Wire Electric Outboard youtube.com/playlist?list=PLwq-2MnM58FKvpYgFXgNCjlKo14L0KI16
Full Fly-by-Wire Electric Outboard (2): Throttle Rough Design & Parts Selection youtu.be/md_40aFueLc
Full Fly-by-Wire Electric Outboard (6): Current Measurement Circuit & Code (1) youtu.be/ZjQUw6jp80M
Full Fly-by-Wire Electric Outboard (8): Current Measurement Circuit & Code (3) youtu.be/-Fj_ZWyiETA
#flybywire #electricoutboard #haswing #trollingmotor #outboardmotor #outboard #robertssmorgasbord
Measuring the battery voltage, getting rid of noise and sinusoidal component …
↓↓↓ Complete description, time index and links below ↓↓↓
Last time we saw that oversampling removes noise from the current measurements and that my RC filter doesn’t remove the sinusoidal component. We modified the oversampling to improve that (link below). Let’s measure the battery voltage now.
We start with a recap of the requirements and the circuit. Next we look at some raw ADC data of the battery voltage. After that we implement a textbook oversampling. Finally we translate our oversampled values into proper amperes.
00:00 Intro – let’s tackle the battery voltage measurement
00:37 Recap – of the requirements and the circuit
03:29 Setup – current sensor modified, additional resistors
04:57 Code 1 – getting raw ADC values for the voltage
05:58 Tests 1 – ADC values for different voltages and loads
09:02 Results 1 – ADC values’ noise, offset and error
12:57 Design – digital filter for random and sinusoidal noise
17:11 Oversampling – without multiplication and division
21:39 Code 2 – textbook oversampling of the ADC values
26:57 Tests 2 – first test repeated with oversampled values
29:21 Results 2 - oversampled values’ noise, offset and error
32:44 Code 3 – implementing offset correction and scaling
34:25 Test 3 – we’re within 10mV of a BRYMEN BM829s
37:55 Wrap-up – not sure what to tackle next, bye
Full Fly-by-Wire Electric Outboard youtube.com/playlist?list=PLwq-2MnM58FKvpYgFXgNCjlKo14L0KI16
Full Fly-by-Wire Electric Outboard (2): Throttle Rough Design & Parts Selection youtu.be/md_40aFueLc
Full Fly-by-Wire Electric Outboard (6): Current Measurement Circuit & Code (1) youtu.be/ZjQUw6jp80M
Full Fly-by-Wire Electric Outboard (8): Current Measurement Circuit & Code (3) youtu.be/-Fj_ZWyiETA
#flybywire #electricoutboard #haswing #trollingmotor #outboardmotor #outboard #robertssmorgasbord










