I come to you today because I very often lose the usb connection. I installed a small relay on PWM2 in order to cut the voltage in the Phidgets when the guidance is disabled. I noticed that the loss of USB connection happens when I deactivate the guidance.
Here is my current montage:
-PCB
-BNO055 installed
-RTK on
-AOG v4.1.12
-I cut the red wire of my USB cable to avoid double powering of the Arduino
Hi Brian,
Before installing the relay I had 1 or 2 connection losses during the day but since I installed it is rather every 10 minutes. But I absolutely need this relay because it allows me to cut the voltage in the Phidgets so that I can turn around.
I specify that I have the Cytron md13s powered by 12V
When a relay is turned off, it creates a fly back voltage. This causes electrical disturbances in your electrical system. The easiest way to get rid of this is to hook up a diode backwards on the relay coil as close to the relay coil as possible. Here is a good illustration of why it happens and why the relay fixes it (TLDR):
Are you using good single point grounding technique? All ground coming to the same place and then a heavy wire to the battery. Also a heavy wire wire from the positive to a single point that then stars out to all the connections. Make sure no other grounds like GPS, or the antenna touch the chassis, but all those ground come back to a single point.
Noise induced in the power supply lines will cause usb to lock up
2.5mm2… Not easy to root inside the box throught the screw terminal bloc. I use 1.5mm2 wire for all power line and 1,5mm2 is already not very flexible and not easy to insert in the terminal du to the space between the terminals (Battery in and the 2 ground terminals).
For the Cytron terminals, 1.5mm2 is already a little to big of it.
Ok I will try 2.5mm2 from battery to PCB Batterie in.
you can terminate the heavy wire in a convenient spot, and then run thinner wires to your parts. Be sure to fuse the positive right at the battery post
Hi @ThomasM
May I ask how you connected that relay, cause I would like to make the same setup so it would be easier to turn the steering wheel when not engaged. Can you describe the pin out for a newbie like me?
Start the Windows Device manager, click the arrow next to universal serial port controllers, find the hub and serial device that is used to connect to your arduino, and then right click, properties, click the power management tab, and then remove the check to allow the computer to power the device down.
My computer would shut off the hub, and the usb-serial adapter that receives the NMEA signals.
It looks like you have everything powered from one place.
And maybe power is off from that output, in the moment where you start engine.
So arduino is shortly off, and does not reconnect correctly.
I suggest power directly from battery (with fuse off course)