TJHJ
01-08-2009, 01:48 AM
So this is from a client who I am doing some design work for, Right now I am unable to see the project but I cant reproduce these conditions when I do have it, so any ideas.
Ok the project is a set of solar panel tracking software. It is a two motor system driven by 2 H55B parallax H-bridges.
Currently It is a hand built prototype based off a USB Proto board. So non production level.
The tracking side is all fine ect. I have a terminal based debug system that just feeds sensor/ position information to the terminal to help in debugging/ tuning.
The motor drivers are turned on by a hard 12v automotive relay, that is switched using a NPN driven by the prop.
My 1st suspect was that the battery he was using was low, and when the system would try and move to fast it would drop the voltage to much and cause a reset. So he moved to a running truck battery to no change.
Customer said...
What I have figured out is that if my laptop is plugged into the machine, it will never have a problem. Not very long after I unplug either end of the USB cable, the drivers will start turning on and off. ( I asked him to power the board up with the usb completely removed from it, and He reports no change. The driver on/off is a result of the propeller board restarting. ) The machine keeps operating fine with the laptop plugged in, even in I am not using the Propeller Tool or the PST. I tried running the machine off my truck batteries with the engine running, and it did not help. The only thing that made a difference was just plugging in my laptop and it was fixed instantly with out me doing anything else. I don't know what the solution is, but that is what the problem is.
So Any ideas here? Is it picking up some weird noise that is making the FTDI chip reset and reset the prop system? Anyone experienced a similar problem? Any ideas on how to fix this?
Before I gave the machine back to him, I ran it without any usb connection just fine, for a very long time 8 hours plus and never once did I see these same conditions. I am totally stumped here. So please help me, and thank you for the time as always.
Thanks as always,
TJ
Ok the project is a set of solar panel tracking software. It is a two motor system driven by 2 H55B parallax H-bridges.
Currently It is a hand built prototype based off a USB Proto board. So non production level.
The tracking side is all fine ect. I have a terminal based debug system that just feeds sensor/ position information to the terminal to help in debugging/ tuning.
The motor drivers are turned on by a hard 12v automotive relay, that is switched using a NPN driven by the prop.
My 1st suspect was that the battery he was using was low, and when the system would try and move to fast it would drop the voltage to much and cause a reset. So he moved to a running truck battery to no change.
Customer said...
What I have figured out is that if my laptop is plugged into the machine, it will never have a problem. Not very long after I unplug either end of the USB cable, the drivers will start turning on and off. ( I asked him to power the board up with the usb completely removed from it, and He reports no change. The driver on/off is a result of the propeller board restarting. ) The machine keeps operating fine with the laptop plugged in, even in I am not using the Propeller Tool or the PST. I tried running the machine off my truck batteries with the engine running, and it did not help. The only thing that made a difference was just plugging in my laptop and it was fixed instantly with out me doing anything else. I don't know what the solution is, but that is what the problem is.
So Any ideas here? Is it picking up some weird noise that is making the FTDI chip reset and reset the prop system? Anyone experienced a similar problem? Any ideas on how to fix this?
Before I gave the machine back to him, I ran it without any usb connection just fine, for a very long time 8 hours plus and never once did I see these same conditions. I am totally stumped here. So please help me, and thank you for the time as always.
Thanks as always,
TJ