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

USB details #28

Open
ModMike opened this issue Feb 18, 2022 · 2 comments
Open

USB details #28

ModMike opened this issue Feb 18, 2022 · 2 comments

Comments

@ModMike
Copy link

ModMike commented Feb 18, 2022

Can you provide some documentation of the USB functionality? I only need 1 tool head board so I don't need the CAN to daisy chain it.

  1. How do I enable it?
  2. Do I need to use USB power lines in addition to the main power?

Thanks for an AMAZING board. Best idea ever.

@iPeel
Copy link

iPeel commented Feb 20, 2022

If you look at the back of the 0.61 PCB there's 6 pads in two columns between the Microfit3 connector and the USB connector but on the other side of the PCB. The top 2 pads are the USB D+ and D- and the bottom pads are the Canbus + and -, the middle are the Microfit3 data pins. There are tracks between the canbus and microfit pads, cut these ( bottom left to middle left, and bottom right to middle right) with a knife then solder bridge between the USB and the Microfit pads ( top left to middle left, top right to middle right ), this effectively turns the microfit3 connector into running USB instead of Canbus.

You can then wire the microfit3 cable up to a USB type A, but don't take the ground from the USB or the power from the USB, just the D+ and D-. I used some sheilded cable to run from the USB, complete with the sheild but didn't terminate the sheild at the Huvud end. USB D+ is on the same side as the 24v+ and USB D- is on the same side as the power -.

Then, follow the instructions for flashing the Huvud board ( STM32, 2K bootloader etc ) but instead of using Canbus, choose to use USB. You can even flash the Huvud board over the USB going to the Microfit3 connector and this will confirm the USB is working.

To configure Klipper it's the same as any other USB board, look for its identity in /dev/serial/by-id and set this as the Serial in the MCU configuration:

[mcu head0]
serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_53FF6D064848885546352367-if00
restart_method = command

@ModMike
Copy link
Author

ModMike commented Feb 20, 2022

Thank you SO MUCH! I am fine with the CAN hat (have 3 on the way) I just wanted to avoid using GPIO in case I need them in the future. I understand that I am only using 2 and I can add a ton of devices on CAN. It also seems like USB will be easier to maintain via flash.

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

2 participants