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