after responding n to 'reset join calibration' the servos rotate, but when I enter calibration values (ex: c12 5), I hear a beep of the buzzer and the corresponding servo does not rotate. I tried several servos and there are no rotation! Why ...
I found the cause of the problem it is the remote that does not work. I launched the testInfraredremote program and I have the same message 'Repeat' every time. This means that it does not decode the transmitted signal. problem led emitter of the remote control ? led receiver on the NyBoard V0.2?
For IR remote, click the button but don’t keep pressing on it. Because it’s looping rapidly, if it detects the same button twice, it will print repeat.
C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src/IRremote.h:24:7: warning: type 'struct decode_results' violates one definition rule [-Wodr]
class decode result {
C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\RobotIRremote.h:27:7: note: a different type is defined in another translation unit
class decode result {
C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src/IRremote.h:27:17: note: the first difference of corresponding definitions is field 'value'
unsigned long value; // Decoded value
^
C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\RobotIRremote.h:30:16: note: a field with different name is defined in another translation unit
unsigned int panasonicAddress; // This is only used for decoding Panasonic data
another thing : in the programme i have : Serial.begin(57600) but in my serial monitor i have to put 74880 bauds, if not i receive on my sm some characters incomprehensible
No, it should not take that long. Make sure that it's placed on a flat table and don't touch the board or table. Also check the dial switch on the down side of the board. Is it at "Arduino" rather than "Pi"?
Lo switch è su Arduino, Nella compilazione visualizza gli errori che vedi in foto ma poi invia comunque il codice dalla IDE di Arduino al robot ma dopo oltre 1 ora la situazione è sempre la stessa come in foto.
Sì certo il comando lo accetta i motori si spostano correttamente ed alla fine premo anche "s" ma se provo a farlo sedere e ripeto il comando "c" si nota che la posizione e non è stata memorizzata.
I still think some video or screenshots will be more helpful for diagnosing your problem. Such as how you interacted with the serial terminal's prompts, and where you think it's a problem. The "s" command will only save calibration value, not the joint angles of the postures.
Il terminale è quello che vedi li sotto, all'ingresso mi ha chiesto se volevo eseguire i reset e l'update instinct gli ho risposto di no a quel punto ho digitato "c" ed ho regolato i motori ....quella parte funziona. Ho quindi salvato "s" le modifiche man mano ma quando poi rifaccio la procedura "c" il robot si posiziona nella sua posa di configurazion e gli arti sono come erno in principio.
Secondo me il problema è quello che non riesce a calibrare 123456 ma solo 123... oppure 23..6 e non capisco inoltre quegli errore durante la compilazione
I found the cause of the problem it is the remote that does not work. I launched the testInfraredremote program and I have the same message 'Repeat' every time. This means that it does not decode the transmitted signal. problem led emitter of the remote control ? led receiver on the NyBoard V0.2?
For IR remote, click the button but don’t keep pressing on it. Because it’s looping rapidly, if it detects the same button twice, it will print repeat.
Is the board powered by two 3.7V Li-ion batteries? Are you connecting SW3 between BATT and V_S?
I answer yes for the two questions. Now i have the display : 21:15:16.083 -> other button F7B70000, ...
the messages are also dislayed
C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src/IRremote.h:24:7: warning: type 'struct decode_results' violates one definition rule [-Wodr]
class decode result {
C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\RobotIRremote.h:27:7: note: a different type is defined in another translation unit
class decode result {
C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src/IRremote.h:27:17: note: the first difference of corresponding definitions is field 'value'
unsigned long value; // Decoded value
^
C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\RobotIRremote.h:30:16: note: a field with different name is defined in another translation unit
unsigned int panasonicAddress; // This is only used for decoding Panasonic data
forget the last message please, now i receive again "
06:17:24.149 -> REPEAT
06:17:25.806 -> REPEAT
06:17:27.010 -> REPEAT
...
On line 92 of testInfraredRemote.ino, change
delay(500); to
delay(1000);
and see whether you still see repeat.
it is the same thing
another thing : in the programme i have : Serial.begin(57600) but in my serial monitor i have to put 74880 bauds, if not i receive on my sm some characters incomprehensible
Have you installed the 20MHz NyBoard:
ATmega328P (5V 20MHz) NyBoard
and selected it? Check 4.2.3 of the instruction doc.
Regular Arduino runs at 16MHz, and your default setting is probably also at 16MHz.
20/16=1.25
74880/57600=1.3
They are so close.
yes, yes it is ok now, many thanks
congrats!
How many time a calibration ?????? At now over 20 minutes it's not a possible !!!
You only need to calibrate each joint once, and the calibration value will be saved to the on chip memory for future use.
Ok ma quanto tempo deve stare a stampare numeri ? è normale che stia oltre 40 minuti ?
No, it should not take that long. Make sure that it's placed on a flat table and don't touch the board or table. Also check the dial switch on the down side of the board. Is it at "Arduino" rather than "Pi"?
Lo switch è su Arduino, Nella compilazione visualizza gli errori che vedi in foto ma poi invia comunque il codice dalla IDE di Arduino al robot ma dopo oltre 1 ora la situazione è sempre la stessa come in foto.
inoltre......ho provato a interrompere. Ho quindi digitato il comand "c" ed ottengo :
14:37:37.495 -> 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
14:37:37.495 -> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
14:37:37.495 -> c0, 0,
il robot è ora in piedi sulle ginocchia a 90° con le spalle.
Se provo a eseguire le regolazioni con i comandi m0...16 e ogni volta salvo la regolazione "s", il dato non viene memorizzato
The calibration commands starts with "c". For example, "c0 16" will set the calibration value of joint 0 to 16. Then you can save it by entering "s".
You also need to set the serial monitor as "no line ending".
Sì certo il comando lo accetta i motori si spostano correttamente ed alla fine premo anche "s" ma se provo a farlo sedere e ripeto il comando "c" si nota che la posizione e non è stata memorizzata.
I still think some video or screenshots will be more helpful for diagnosing your problem. Such as how you interacted with the serial terminal's prompts, and where you think it's a problem. The "s" command will only save calibration value, not the joint angles of the postures.
Dimmi quali screenshoot ti servono e te li posto.
Il terminale è quello che vedi li sotto, all'ingresso mi ha chiesto se volevo eseguire i reset e l'update instinct gli ho risposto di no a quel punto ho digitato "c" ed ho regolato i motori ....quella parte funziona. Ho quindi salvato "s" le modifiche man mano ma quando poi rifaccio la procedura "c" il robot si posiziona nella sua posa di configurazion e gli arti sono come erno in principio.
Secondo me il problema è quello che non riesce a calibrare 123456 ma solo 123... oppure 23..6 e non capisco inoltre quegli errore durante la compilazione