top of page

Clinic

Public·125 members

No motor movement on two boards

Howdy. Need some help as I've got two boards, and cannot get any servo movement on either of them using the main programs.


Neither program will drop in to calibration mode either (or any other mode based on an interrupt through the serial monitor), when I run WriteInstinct but I can still get the MPU calibrated, and the Y/ns generally work. But I never get asked "do I want to calibrate all servos". If I run nybble.ino, the IR port isn't triggering any movement, although I know from the testing that it is working.


I do get warnings when building both programs. Lots of things like...

Nybble.ino:500:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] motion.loadBySkillName("rest");

WriteInstinct.ino:231:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] motion.loadBySkillName("rest");

OpenCat.h:603:1: warning: narrowing conversion of '-4.5e+1' from 'double' to 'int8_t {aka signed char}' inside { } [-Wnarrowing]


I've re-downloaded the files, and re-uploaded. All other settings are fine, and the battery is putting out 7.9v at the moment.


If I run testServo.Ino (which really needs to have some documentation to explain it can do more than just server 1) I can get them to move, but no action when the others are run.


(I do have slightly different behaviour with the LED on a second board, but that can wait for now)


Help!?!?!? Please.


Euan

108 Views

@euan For most incoming commands, the program will do more calculation than regular loop. The “FIFO overflow” happens when the main loop pulls MPU’s readings slower than its sampling rate. “Using last reading” is actually my algorithmic fix to the original MPU library. Not a problem.

About

Cure Nybble with corrected settings or serious surgery. Debu...

bottom of page