Author Topic: Strange problems you have encountered  (Read 2867 times)

0 Members and 1 Guest are viewing this topic.

Offline NiHaoMikeTopic starter

  • Super Contributor
  • ***
  • Posts: 9158
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Strange problems you have encountered
« on: December 27, 2011, 03:01:47 am »
I was troubleshooting a digital power meter ("Watt-A-Duino", based on Arduino and dsPIC) that I made for senior design. The calibration drifted badly with the 5V supply. I only needed to operate it on PoE for the demo, so I didn't bother looking into it. But now that I need to actually use it, I needed to figure out why the voltage channel was getting such a poor PSRR. The AFE opamps showed no change as the 5V supply varied a little. I was puzzled since the voltage channel used the dsPIC's internal ADC, which ran off the 3.3V supply that did not drift much. Turns out that in doing level translation between the dsPIC and Arduino, I just put in series resistors. That did limit the current to a safe value, but the current flowing through the protection diodes caused charge injection that was messing up the ADC. I added some clamping diodes and now the PSRR is as good as I expected.

In another part of the project, I had a via come apart (probably blew like a fuse) and start arcing. Things get pretty exciting when it's on a 270V DC bus with 440uF of capacitance! http://arduino.cc/forum/index.php/topic,80200.0.html
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 10107
  • Country: nz
Re: Strange problems you have encountered
« Reply #1 on: December 27, 2011, 03:18:39 am »
I had a strange issue where the 12+/- signal from a PC RS232 port was feeding back through the wires to the MAX232 at the other end and getting onto the main VCC rail.
Even though the system was off the few mA of 12v from the serial port could power up the micro controller enough for it to respond to serial commands.

The serial response i got back was often corrupt but the fact that it was responding at all meant the micro was running and receiving a correct frame with good checksums.

Ya always have to watch that, power on ICs data pins will flow back to power pins when the IC is off.
« Last Edit: December 27, 2011, 03:21:53 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf