Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation required: pin headers (P1, P2) #7

Open
k1-801 opened this issue Oct 8, 2023 · 5 comments
Open

Documentation required: pin headers (P1, P2) #7

k1-801 opened this issue Oct 8, 2023 · 5 comments

Comments

@k1-801
Copy link

k1-801 commented Oct 8, 2023

The pin headers P1 and P2 and their uses are not documented. It seems like P2 is meant for jumpers, like the pin header on EasyBoard, but it is never explicitly stated anywhere on the repository. It might be a good idea to put this info somewhere (readme.md ?)

@the-muldoon
Copy link

Did you happen to ever find out how to fix this issue?
In the ercf_softwarecfg, the documentation says:
[ercf]
encoder_pin = ^P1.0
encoder_resolution = 1.365188

But I get an error message of:
Pin 'P1.0' is not a valid pin name on mcu 'mcu'

@k1-801
Copy link
Author

k1-801 commented Nov 26, 2023

But I get an error message of: Pin 'P1.0' is not a valid pin name on mcu 'mcu'

Couldn't solve it either, had to switch to tge Happy Hare config instead, but it also gives errors, but different - but at least the author actually responded and promised to solve it.

@the-muldoon
Copy link

Thanks for the quick response! I've been pulling my hair out for days on it. I was getting ready to try Happy-Hare anyway! Hopefully, this link will help others in the future.
https://github.com/moggieuk/Happy-Hare

@eliwong
Copy link
Contributor

eliwong commented Dec 4, 2023

The pin headers P1 and P2 and their uses are not documented. It seems like P2 is meant for jumpers, like the pin header on EasyBoard, but it is never explicitly stated anywhere on the repository. It might be a good idea to put this info somewhere (readme.md ?)

You should be able to see each pin information for P1 and P2 on the back of the board.

P2 is used for backup USB connections. Some people think USB-C may be unstable or can be used when space does not allow.
At the same time, by connecting U5V and 5V through a jumper cap, the board can be temporarily powered through USB, and there is no need to connect to 24V when burning firmware.

P1 is the SWD debugging interface of RP2040. In most cases, it cannot be used unless you are a developer and need to debug code.

image

@eliwong
Copy link
Contributor

eliwong commented Dec 4, 2023

Did you happen to ever find out how to fix this issue? In the ercf_softwarecfg, the documentation says: [ercf] encoder_pin = ^P1.0 encoder_resolution = 1.365188

But I get an error message of: Pin 'P1.0' is not a valid pin name on mcu 'mcu'

Are you talking about klipper's configuration?
When using the RP2040 control board, the pin configuration should be written as gpio**, such as ERB's encoder pin: gpio22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants