This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
efuse on arduino
#4
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 Smile


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 Smile

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 !
Reply


Messages In This Thread
efuse on arduino - by quetzal - 2019-03-18, 05:39 PM
RE: efuse on arduino - by FMJ - 2019-03-18, 06:31 PM
RE: efuse on arduino - by xfactor99 - 2019-03-18, 08:16 PM
RE: efuse on arduino - by quetzal - 2019-03-19, 11:20 AM
RE: efuse on arduino - by quetzal - 2019-03-19, 02:41 PM
RE: efuse on arduino - by seandepagnier - 2019-03-22, 02:41 AM
RE: efuse on arduino - by quetzal - 2019-03-22, 12:02 PM
RE: efuse on arduino - by jamos.tan@gmail.com - 2019-08-07, 04:14 PM
RE: efuse on arduino - by seandepagnier - 2019-08-08, 07:51 PM
RE: efuse on arduino - by jamos.tan@gmail.com - 2019-08-09, 08:15 AM
RE: efuse on arduino - by jamos.tan@gmail.com - 2019-08-10, 11:19 AM
RE: efuse on arduino - by LoriNagle - 2020-09-17, 04:23 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)