Do Debugging mean - reuploading code that has a little change in it?
I hope i didn't toast any circuit on the board.
I will try to connect SERVO to
Motors are always powered from external source. Switch only separate system power from motor power.
That's helpfull answer. When i connect board via usb, and deconnect external power, servo and distance sensor works(i'm sure) BUT not motors.
I would start with 6 volt battery power as power regulator might be broken.
In the house i've found little battery from rc car - 7,2V 500mAh. Tried it but i chave to charge it.
Here's one thing, Seems like board doesn't like external battery at all. When i only on EX battery -code works weird(like i sad before), but when i connect powerbank 5V to the usb port - WORKS perfectly like from PC. I can't find any problem in the code. Ehhh
I will check the voltage later - tomorrow cuz it's 10:30 p.m. and i'm tired.
USB (powerbank 5V) + 8x 1,5V AA battery (their actuall voltage is ~10V) and switch OFF:
5V - GND: ~5V
3V3 - GND: ~3,3V
Vin - GND: 0 (nothing shows)
8x 1,5V AA battery and switch ON:
5V - GND: 5V
3V - GND: 3,3V
Vin - GND: 9,8V - program starts runnig in circle - starts stoping - the L diode flashing - and the runing for like 1 sec and voltage drops to ~6,3V. - do you want a video that shows how program works on external battery?