I'm still waiting for my new MCU boards, but the ferrite beads showed up today, so I couldn't resist trying some experiments. I got some confusing results.
First, I added a couple of 10 uF tantalum capacitors. One, from B+ (fat wire to the car battery, and power source for the controller board) to ground. There was already a 100 nF and a 330 nF there. Second, from 3.3 V to ground. There was already a 100 nF, a 10 nF, and another 100 nF directly on the pins of the SD card daughter board.
Then I tried a few different things in the fuse holder at the B+ terminal:
In the following 'scope images, CH1 is 3.3 V, CH2 is D+ (generator armature). I did these tests at low idle, so the generator was putting out very little, like, 10s of millivolts on average. I would not expect the big
82CNQ030 diode to be forward biased, and that is the only real connection between D+ and B+.
EDIT: WRONG! I had my wires crossed. In fact. CH1 is 3.3 V, CH2 is DF (field coils). D+ was likely a little under 4 V, however, B+ is around 6 V, so the diode would still be reverse biased.
The fuse (so, the only change is the new caps.):
Laird 28C0236-0EW-10
Wurth 74275046:
A couple things jump out at me. One is that the capacitors appear to have flattened the spikes on D+ quite a bit, and the
Wurth 74275046, especially, seems to make it even better! Strange, though, that the caps. and ferrite beads are on the other side of the diode from D+, but still seem to make a difference. Another is that none of these have done a whole heck of a lot to improve the situation on the 3.3 V line. In fact, the 3.3 V supply seems to be
amplifying the spike on D+.
All this made me wonder what would happen if I disconnected the 5 V LDO regulator (by pulling the J2 jumper) and powered the MCU board with a 9v battery pack. In this configuration I'm using the
LD1117S50TR 5 V regulator on the MCU board, which then feeds the
LD39050PU33R 3.3 V regulator on the MCU board, which powers the MCU and the SD card. In this test, the two capacitors are still on B+, and I had the fuse back in the fuse holder. This is what I got:
Again, not a whole lot of improvement. Well, OK, maybe
no improvement.
I did find that if I rev the engine so that the generator voltage comes up, the spikes start to flatten out. Maybe that's because the
82CNQ030 diode is starting to connect D+ to B+ and the battery provides some smoothing? Or maybe that's just how things work with the armature and the commutator?
This all seems mysterious to me. I'm still hoping that everything will look better with a new, undamaged MCU. If not, I still have some ideas I haven't tried yet.
- Series 1N5817-T schottky at the B+ tap (i.e., the fuse holder) [meant to try that and a low resistor today, but forgot]
- 1N5817-T schottky from ground to D+ to try to keep it from spiking negative
- Series 4.7 uH choke instead of a ferrite bead
- Dedicated 3.3 V regulator just for the SD card
As always, let me know if you have any insights!