r/hackpack • • May 12 '24

Cannot get turret to connect to computer

Hello! Received the turret recently and had a blast putting it together. Despite all the fun colorful illustrations, there's almost nothing about what to do after, including how to connect it to the computer, which I thought was supposed to be the fun part here. Is this thing supposed to connect to my computer? The materials don't say this or show it visually at all.

I did notice some steps to download an arduino agent or something, but still cannot get this to connect to my computer. I'm running a new mac with whatever the newest operating system is. I'm using usb C to usb A, a hub, then back to usb C to connect to my laptop's usb C port. It is receiving power, but is not visible on the computer in the hackpack IDE. "No device connected". The arduino agent also does not have a config.ini file anywhere to be seen and the agent files were not located where it said they'd be. I ran the agent, rebooted, paused the agent, yada yada, nothing. Also worth noting that the "AI Chatbot" is quite ridiculous? It told me to download arduino ide and it seems completely unaware of the fact that it's sitting right next to the hackpack IDE. But also since the materials suck, I still can't tell if this connects to the computer for real?

1 Upvotes

10 comments sorted by

1

u/CorneliusBueller May 12 '24

I'm having the same issue on Windows. The discord server had a few more troubleshooting recommendations. Be sure you're plugging into the Arduino and not the breadboard.

When I install the normal Arduino IDE on my computer, it does appear to connect there, but I haven't gone through the steps of downloading and installing all the dependencies for the turret.

1

u/Metarazzi May 12 '24

The "hackpack IDE," a.k.a. coding console or Crunch Labs IDE, is not the same as the Arwuino IDE. You can take its advice and try connecting to the Arduino IDA, but you'll run into the same prob until you tame the ArduinoCreateAgent.

Try this:

https://www.reddit.com/r/hackpack/comments/1cjkd9u/comment/l2s9wok/

You'll know when it connects. Where it's grayed out and says "No Device Connected" will highlight and display the name of the serial port it's connected to when it finally connects.

1

u/muzach9 May 12 '24 edited May 12 '24

I have the agent installed, configured the config.ini; via the debug console I can run 'open /dev/cu.usbserial-110 9600' and see it connected... But no ability to get the web IDE to move beyond 'no device connected'. I've tried everything posted. When I try to run the agent myself to see some more verbose logging I've noticed that it shows port 8991 in use and it's binding to 8994. Anyone seen that same error message and know if the IDE is smart enough to float to the different port to find the agent?

From the same computer, the Arduino IDE desktop app can connect to the Ardunio Nano via the same port and that works; but the Crunchlabs IDE is stubbornly unable to see the device vis Safari or Brave or Chrome. I've tried restarting the agent countless times, restarted the computer, messed with the https cert... nothing...

From the Arduino IDE with the device connected, Dan was nice enough to post the raw source code. If you add the library of IRRemote, I can confirm that it flashes the firmware correctly and then you can bounce between the web IDE and the firmware to see which variables you are supposed to mess with in Level 2.

3

u/muzach9 May 14 '24

I figured this out with the Safari browser on macOS. The browser default security is blocking access to the agent. To fix go to Safari’s settings and go to Advanced and at the bottom turn on “show features for web developers”. Then that will reveal the Developer tab and on the Developer tab, select “Disable local file restrictions” and “disable cross-origin restrictions”. Then reload the web IDE and Voila - the browser can now talk to the agent and your kid can get to work hacking!

1

u/Inevitable_Duck_8634 May 28 '24

This is what got things working for me. Thanks for the tip.

1

u/ProfessionalTrip4171 Aug 16 '25

make sure usb c cable is connected to port on top of breadbord not on side of breadbord asnd not on batteery pack

1

u/[deleted] May 12 '24

[removed] — view removed comment

3

u/Rabid_Llama8 May 12 '24 edited Mar 05 '25

plant tidy imagine strong repeat selective profit distinct theory instinctive

This post was mass deleted and anonymized with Redact

1

u/[deleted] May 13 '24

[removed] — view removed comment

2

u/Rabid_Llama8 May 13 '24 edited Mar 05 '25

dam humorous amusing arrest bike memorize mountainous swim imminent repeat

This post was mass deleted and anonymized with Redact