Spark max hard limit forward fault won’t go away

Can someone tell me what the hard limit forward is and why the fault won’t go away.
We have a neo through a 100:1 max planetary with a throughbore encoder wired in through a breakout board
Our intake pivot right now relies on this, so help would be appreciated

Can you send a picture of the error and how it’s wired?

Sorry, the images wouldn’t upload the first time, but here are pictures of the error on the hardware client and the wiring of the breakout board



If you need any more photos, I’ll try to provide asap

Do you have a limit switch attached? If you aren’t using one, you can just turn off the switch for “hard forward limit” and “hard reverse limit”

Would an ir sensor connected to the dio port be able to activate this fault through code?

I shouldn’t, i think the only way to trigger that is physically through the limit switch pins on the breakout board

Make sure you have the normally open/normally closed setting so it matches what you are doing electrically.

Make sure you have set your encoder type to alternate (either with sparkMax.getAlternateEncoder(8192) or via rev hardware client), since if it is in absolute mode the index pins are shared with limit switch pins

Make sure you don’t have a “hair” or solder bridge between P6 and the forward limit switch solder pad next to it (can’t see what’s happening under that zip tie).

2 Likes

Also make sure there’s nothing lodged in the piggyback data port.

How would I be able to set zero with the through bore when its in alternate encoder mode?

https://codedocs.revrobotics.com/java/com/revrobotics/sparkrelativeencoder#setPosition(double)

Sorry for the delay on this one. It looks like your breakout board is misaligned. Make sure the notches on the board line up with the notches on the case, as well as the outer edges of the logo box.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.