Arduino pro micro turning off itself

Hello to all, I have a problem, I am building a eBrake (handbrake for pc racing simulators)

I am using a Arduino Pro Micro ATmega32U4 5V 16MHz, connected to a slider potentiometer 10k, 45mm.

Here is a link to the video tutorial of my project (LINK)

Ok, the problem is when I am not pulling the handbrake, and the potentiometer slider is on the extreme 0, the device disconect from the Pc. i ts like if it goes to stand by mode or something like that,and as soon i use the handbrake it awakes, but if I am on a game that isnt good enough, i need it on always while playing. I have to say when it is connected the Green LED and one Red LED are on, but as soon as a pull the handbrake (so the slider potentiometer moves) the lights goes brighter, as if they get more power.

here you can see the sketch:

// Analog eBrake-Handbrake
// PIN A0 to 10k pot output - Throttle Axis
// Use with Arduino ProMicro.
// Tested and working in DiRT RALLY + ASSETTO CORSA
// by AMSTUDIO
// 20.1.2017

#include <Joystick.h>

void setup()

{pinMode(A0, INPUT); 
   Joystick.begin();}

const int pinToButtonMap = A0;

void loop()

{int pot = analogRead(A0);
int mapped = map(pot,0,1023,0,255);
{Joystick.setThrottle(mapped);}}

Also the only thing I can see I did different from the video tutorial is that when soldering cables I made a mistake and used different hole named GND, not sure if that makes any difference.

I solded the first top left GND and in the video is used the second on the left. Not sure if that is the problem or not, but I do not want to change the wire if is not needed.

Thanks a lot in advance, and if need any more info or have a question please let me know and I will do my best to answer it. Bye.

My guess is that the slide pot is wired wrong and at the 0 end of the travel it is shorting +5V to Ground. Does the Arduino have a power LED to let you know if power is good?

You have to use the GND on the other side of the Arduino Micro.
If the throttle range is all down one end then swap the VCC / A0 wires.

Good Luck!

You have to use the GND on the other side of the Arduino Micro.

Nonsense, all the grounds are common.

Indeed. At least that means we have some common ground here.

That said, OP, please post your circuit diagram.