2019-03-19, 11:20 AM
Hello, Thanks for your help.
The link seem to confirm that 0xFD is 0x5 on 328p.
I've just look the code on pypilot:
// read fuses, and report this as flag if they are wrong
uint8_t lowBits = boot_lock_fuse_bits_get(GET_LOW_FUSE_BITS);
uint8_t highBits = boot_lock_fuse_bits_get(GET_HIGH_FUSE_BITS);
uint8_t extendedBits = boot_lock_fuse_bits_get(GET_EXTENDED_FUSE_BITS);
uint8_t lockBits = boot_lock_fuse_bits_get(GET_LOCK_BITS);
if(lowBits != 0xFF || highBits != 0xda ||
(extendedBits != 0xFD && extendedBits != 0xFC) || lockBits != 0xCF)
flags |= BAD_FUSES;
So regarding this code, good fuses are
0xda
0xff
0xfd or 0xfc
0xcf
My lock bits are ff insead of cf so I change them.
Now, my servo.flags are "sync".
I must have look in the code instead of the doc it would have same me some hours
But my helm still don't move. I use a brushed esc: https://hobbyking.com/fr_fr/hobbywing-qu...a-esc.html
In boat and crawler mode, it should have full speed reverse.
In the ESC manual, it's written that 3 shorts bip detect 3s lipo (that what i've from my desk 12v power supply), and 1 long beep self test and throttle range calibration (start with throttle in neutral). I've not the long beep so i think the esc don't get any signal. One time I got the long bip, then the helm start to move randomly, so I think the connection are good
Not sure how i've to wire it. I've wired the 6 pin to 5v, and the 9 digital pin to the esc white wire (pwm). Not connected the 2 other wires of the esc. I've no sensors but disabled them in the code.
Does pypilot start sending "standby" signal to pwm even if disabled ? (for esc calibration ?).
Thanks !
The link seem to confirm that 0xFD is 0x5 on 328p.
I've just look the code on pypilot:
// read fuses, and report this as flag if they are wrong
uint8_t lowBits = boot_lock_fuse_bits_get(GET_LOW_FUSE_BITS);
uint8_t highBits = boot_lock_fuse_bits_get(GET_HIGH_FUSE_BITS);
uint8_t extendedBits = boot_lock_fuse_bits_get(GET_EXTENDED_FUSE_BITS);
uint8_t lockBits = boot_lock_fuse_bits_get(GET_LOCK_BITS);
if(lowBits != 0xFF || highBits != 0xda ||
(extendedBits != 0xFD && extendedBits != 0xFC) || lockBits != 0xCF)
flags |= BAD_FUSES;
So regarding this code, good fuses are
0xda
0xff
0xfd or 0xfc
0xcf
My lock bits are ff insead of cf so I change them.
Now, my servo.flags are "sync".
I must have look in the code instead of the doc it would have same me some hours
But my helm still don't move. I use a brushed esc: https://hobbyking.com/fr_fr/hobbywing-qu...a-esc.html
In boat and crawler mode, it should have full speed reverse.
In the ESC manual, it's written that 3 shorts bip detect 3s lipo (that what i've from my desk 12v power supply), and 1 long beep self test and throttle range calibration (start with throttle in neutral). I've not the long beep so i think the esc don't get any signal. One time I got the long bip, then the helm start to move randomly, so I think the connection are good
Not sure how i've to wire it. I've wired the 6 pin to 5v, and the 9 digital pin to the esc white wire (pwm). Not connected the 2 other wires of the esc. I've no sensors but disabled them in the code.
Does pypilot start sending "standby" signal to pwm even if disabled ? (for esc calibration ?).
Thanks !