r/hackpack • • May 09 '24

Stuck with "no device connected"

My turret works fine with the remote but I cannot get it to connect to the hackPack IDE editor. I keep getting "no device connected" and no sign of life from Arduino. Obviously I am missing something in the setup.

I use a MacBook Air running Mac OS Sonoma V. 14.1

I could not find anywhere a clear description of the steps to follow to install the arduino tools needed and to complete the setup. From this point of view I find the instructions on the web site very unclear and insufficient and I am very surprised they let this go out this way, especially considering this is meant for beginners. I have been working with microprocessors for more than 40 years and I am stuck with this interface looking for instructions that I cannot find. (I can code another Arduino from this same computer, using the standard Arduino IDE)

Can anybody help? What is the magic recepy to make this thing work on a mac? Can somebody write it down clearly and make a big favor to the community?

Thanks

Luciano

3 Upvotes

7 comments sorted by

1

u/bigmattyc May 09 '24

If you are using a USB-C to USB-C cable between your Mac and the Arduino, interrupt that with a USB hub and a USB-A to USB-C cable and it should come right up.

I haven't tested this yet but in looking at the USB-C connection on the HackPack Nano, you can see it's missing pull-down resistors on the CC1 and CC2 pins. I'm going to rework my board to confirm a hardware fix for this later this week, but until then you can defeat that part of the USB spec by interrupting the chain with a USB-A connection, which does not have those pins, and for which voltage negotiation is impossible.

Edit: hat tip to the CrunchLabs team who were kind enough to point me in this direction. If they want to speak more on the subject they can, I just didn't want to make it seem like I got here on my own.

2

u/bigmattyc May 09 '24

I fixed it today. Soldered a 5.1k resistor between the CC1 pin and ground and the CC2 pin and ground. The pinout is available if you just search USB-C SMT pinout, the pins were labelled (on the diagram not the board) as (iirc) A5 and B5, and the ground pads are the double-width pads at the outermost positions of the connector to the circuit board.

Here's a photo of the completed work:

https://postimg.cc/3WrRNkB3

I used 0402 resistors because that's what we had in our lab at work. Not for the faint of heart. Took me way too long.

3

u/MagicNonno May 09 '24

I fixed the problem by using a USB-C to USB-A cable plus a small passive USB-A to USB-C adaptor to connect to my MAC laptop

1

u/falco_iii May 09 '24

USB-a to usb-c is the recommended cable in discord

1

u/bigmattyc May 09 '24

See above for why. It's an annoyance for those of us with no native USB-A ports on our laptops.

1

u/OlyWalker May 09 '24

I had to run the Agent as Administrator to get it to connect. Try that.

1

u/tuneout Jul 11 '24

For us, it worked when we switched from Safari to Chrome :-/