PMIC on Nano 33 IoT

Hello World,

Me and my apprentice are working on the Engineering Kit with the self balancing motorcycle. Our goal is it to archive erverything with the Arduino IDE and not with simulink or mathlab (due to licence and software problems). So far we are able to balance it quite well with a PID and some tweaks over a dashboard in the Arduino Cloud.

So we are using the Nano 33 IoT and the Nano Motor carrier with the latest firmware. In the beginning of the Project we were able to controll every Servo with the example "servoTest". Now that we are done with the balancing we want to take care of the steering. But it seems like it is not possible to controll any servo anymore.

When connected via USB the servo barely moves. I guess because it has not enough power. When disconnecting USB and turning the 3.6V battery on the servo does not move at all. Also it is not possible to Upload the servoTest example because the PMIC library has some errors:

C:\Users\rm\Documents\Arduino\libraries\Arduino_BQ24195\src\BQ24195.cpp: In member function 'bool PMICClass::begin()':
C:\Users\rm\Documents\Arduino\libraries\Arduino_BQ24195\src\BQ24195.cpp:70:13: error: 'PIN_USB_HOST_ENABLE' was not declared in this scope
     pinMode(PIN_USB_HOST_ENABLE, OUTPUT);
note: suggested alternative: 'REG_USB_HOST_INTFLAG'
     pinMode(PIN_USB_HOST_ENABLE, OUTPUT);

I guess because of the PMIC is not working, the power is not going from the battery to the servos?
We reinstalled everything and tried to load a new firmware but notihing works. Servos are fine.

Any Ideas?

Thanks
Marvin

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project.

So I managed to Compile and Upload the example sketch by patching the BQ24195.cpp as shown here: https://github.com/arduino-libraries/Arduino_BQ24195/pull/1

But I still only have the Battery Voltage on the Servo pin. There should be +5V but there are only 3,5 - 3,6V. When i plug in the USB cable, I have 4,9V but the Voltage breaks down as soon as the servo turns a bit. For me, it seems like the Voltage Boost is not working correctly..

Hi @jonasadam, I'm tring to compile the library, like you did.
Did you simply substitute the .cpp file with the one suggested in the github issue? Unfortunately it does not work for me!
Thanks