Skip to content

RobotCasserole1736/ButtonBox2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Button Box 2025

Four buttons, plus a 12-position switch. Two TBD slots, likely to be switches at some point? Maybe? Designed for selecting what we want the robot to do next. Critically, not for saying how the robot does something, that's an XBOX controller.

BOM

Case

3d printed. Onshape model here.

Designed to bolt to a driver station or something like that.

In Robot Code

See GenericHID - https://docs.wpilib.org/en/stable/docs/software/basic-programming/joystick.html#button-usage

Use getRawButton() to get each state.

18 buttons are enumerated.

The chickenhead knob may be thought of as 12 buttons, only one of which is pressed at a time (generally)

Each pushbutton is either pressed or not pressed.

Each switch (future) is either on or off.

Arduino Inputs

image

Which of the 12 digital inputs goes with each physical position depends on how you put the knob on.

Wired so pin numbers increase counterclockwise.

Chris suspects this will be a problem at some point.

HID Inputs

Buttons are index'ed like this:

image

Again, which button goes with which position on the chickenhead knob depends on how you mount the chickenhead knob.

Indices increase counterclockwise.

Fancy Pictures

PXL_20250124_204141088

PXL_20250124_204133635

About

like a toddler's busyboard, but for students.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages