rebelrider.mike
Member
- Joined
- May 25, 2017
- Messages
- 472
Lots of companies tell you what the total harmonic displacement of their products are, but how can we be sure they're telling the truth? I mean, companies also say their 18650 cells have 9000000mAh too. But actual testing reveals more like 500mAh. So I like to test things.
Now, I've never seen an appliance or electronic device blow up from too much THD, but I'd like to know what's going on anyway. So I've been looking for some kind of THD meter that doesn't cost hundreds of dollars. I came upon this interesting discussion that among other things, talks about an application that can be used to turn a PC into an oscilloscope, and it calculates THD too. I tried it out on my laptop, and it "sees" the sound from my integrated microphone. So the principal seems sound. (No pun intended.)
To see what's happening in an electrical circuit though, some kind of device has to reduce the voltage down to something like 0.7V, according to the discussion, to avoid melting the PC. Maybe 0.5V to be safe. It was suggested a transformer and Voltage divider be used. I dug around my many piles of junk and found an old Ni-Cad drill battery charger. Last time I tried it, either the battery was bad, or the charger was bad. I don't intend to replace either one, so I opened the charger up and discovered a lovely low frequency transformer.
After liberating it from the circuit board, I poked around it, looking for continuity and Voltage output. It appears to have two separate secondary windings which are isolated from each other and the primary. Well I made a picture with labels to help keep track of things:
On the primary side, there are 3 pins. A is hot, B is neutral, C is unused.
On the secondary side, pins 1 and 2 show 2.6V, and pins 3 and 4 show 9.2V. The 1,2 coil has no continuity with the 3,4 coil.
When it was still on the circuit board, pins 2 and 3 were soldered together. I suppose that would give a total voltage of 11.8V. I made a modified version of the diagram discussed in the other forum:
I have a bunch of 10k potentiometers that I bought for fine-tuning TP4056 boards' current output. I figure one of them could be used as R1, and then the output Voltage could be fine-tuned to whatever the PC oscilloscope can read well. If I did the Voltage divider math right, I'll need somewhere around 2,260 Ohms for R1. I should be able to find a 100 Ohm resistor around somewhere. The current through the Voltage divider should be very small. Like 0.005A. I don't know how much current would be going through the TRS jack. I'm guessing another tiny amount.
Since I'll be getting a split-phase generator and inverter, it would be nice to be able to plug either 120V or 240V into the device, and adjust it for the PC. Another reason to use a pot. for R1. Maybe a switch to toggle between two different R1s? I wonder if pin C on the primary side could be used for anything. I'm thinking that the primary coil goes from pin A to pin C, with pin B being a center tap. I suppose this transformer was designed for many different applications, and not just this particular charger. Well, I'm getting ahead of myself here. Let's see if the basic device works first.
Anyway, I thought this would make a pretty cool project. Hopefully I'll have some progress to share soon.
Now, I've never seen an appliance or electronic device blow up from too much THD, but I'd like to know what's going on anyway. So I've been looking for some kind of THD meter that doesn't cost hundreds of dollars. I came upon this interesting discussion that among other things, talks about an application that can be used to turn a PC into an oscilloscope, and it calculates THD too. I tried it out on my laptop, and it "sees" the sound from my integrated microphone. So the principal seems sound. (No pun intended.)
To see what's happening in an electrical circuit though, some kind of device has to reduce the voltage down to something like 0.7V, according to the discussion, to avoid melting the PC. Maybe 0.5V to be safe. It was suggested a transformer and Voltage divider be used. I dug around my many piles of junk and found an old Ni-Cad drill battery charger. Last time I tried it, either the battery was bad, or the charger was bad. I don't intend to replace either one, so I opened the charger up and discovered a lovely low frequency transformer.
After liberating it from the circuit board, I poked around it, looking for continuity and Voltage output. It appears to have two separate secondary windings which are isolated from each other and the primary. Well I made a picture with labels to help keep track of things:
On the primary side, there are 3 pins. A is hot, B is neutral, C is unused.
On the secondary side, pins 1 and 2 show 2.6V, and pins 3 and 4 show 9.2V. The 1,2 coil has no continuity with the 3,4 coil.
When it was still on the circuit board, pins 2 and 3 were soldered together. I suppose that would give a total voltage of 11.8V. I made a modified version of the diagram discussed in the other forum:
I have a bunch of 10k potentiometers that I bought for fine-tuning TP4056 boards' current output. I figure one of them could be used as R1, and then the output Voltage could be fine-tuned to whatever the PC oscilloscope can read well. If I did the Voltage divider math right, I'll need somewhere around 2,260 Ohms for R1. I should be able to find a 100 Ohm resistor around somewhere. The current through the Voltage divider should be very small. Like 0.005A. I don't know how much current would be going through the TRS jack. I'm guessing another tiny amount.
Since I'll be getting a split-phase generator and inverter, it would be nice to be able to plug either 120V or 240V into the device, and adjust it for the PC. Another reason to use a pot. for R1. Maybe a switch to toggle between two different R1s? I wonder if pin C on the primary side could be used for anything. I'm thinking that the primary coil goes from pin A to pin C, with pin B being a center tap. I suppose this transformer was designed for many different applications, and not just this particular charger. Well, I'm getting ahead of myself here. Let's see if the basic device works first.
Anyway, I thought this would make a pretty cool project. Hopefully I'll have some progress to share soon.