|
Re: Weird behavior from a Spike
I do not think there is anything a programmer can do which should cause a Spike relay to trip if the relay were working properly and it is wired correctly. There are a few tests you should probably try to verify that the electrical portion of this circuit is wired and working correctly before going too far in another direction. Here are a few things to test.
1. Are any outputs of the spike accidentally grounded? There should be no path to ground from your LEDs since you are connecting it to an H-Bridge so either output could get energized. If you have a path to ground, it should be no surprise that the breaker will trip when you switch the output in one direction.
2. Does the LED circuit have a short or low resistance? Check this with an ohmmeter first, then make sure it can be powered and works correctly from another source. Also test its current draw. LEDs do not usually pull a lot of current, but you should ensure you do not have one that pulls a pulls an unexpected amount of current, is defective, or is improperly wired.
3. What happens if you disconnect all outputs from the SPIKE and run your code? If the spike does not fault internally, then the problem is probably in the circuit it is being connected to.
4. Try testing the voltage output from the spike when operated with nothing connected and see if the outputs get controlled as expected. You might also try connecting a window motor or some other modest sized and unloaded motor to the output to watch what happens. Again, if you can drive a regular motor properly using the spike, the the problem is probably downstream from that point, meaning the LED circuit.
5. Again, check one more time for any connection to ground. When working with a SPIKE this could easily show the kind of behavior you are seeing. All circuit connections to external circuits should only go to and from the output pins of the Spike. There should be no connections anywhere else.
__________________
This is the zeroth day of the rest of your life.
|