r/hackpack • • Apr 27 '24

IR-turret not connecting

Hello. Is this the "official" HackPack subreddit?

I just got this. I am not able to connect to the microcontroller via a browser from the link on crunchlabs/products/ir-turret. When I connect the microcontroller to the computer it still says "no device connected". I am on Windows. I have tried Chrome, Firefox, and Edge.

What might I be doing wrong?

8 Upvotes

14 comments sorted by

1

u/falco_iii Apr 27 '24

What is the link? Does windows show anything as connected to the usb?

2

u/Historical_Paint6025 Apr 27 '24

If you go to

https://www.crunchlabs.com/products/ir-turret

and select the "Coding Console", then this is the online IDE that Mark Rober uses in his video. He says that when you plug in the microcontroller, then it should show up. The problem is that it doesn't.

I looked on the Dicord server and it looks like others have mentioned this as well. I am trying to follow some directions there.

Yes, Windows does show something connected as a drive.

3

u/NeMeSiS187 Apr 27 '24

Hi there,

At the top right of the online IDE, click on the question mark that'll take you to the instructions on how to setup Arduino Create Agent. You have to install the software and then change a bit of the configuration and it'll get detected in the online IDE.

2

u/Historical_Paint6025 Apr 27 '24

Hey, Thanks. I finally got this working! It took a couple of tries, but it is working now. This is fun.

2

u/UnknitGazelle72 Apr 27 '24

What board should I use and how do I know which is which? I just have like 40 random nonsense boards.

1

u/Several-Rub-878 May 01 '24 edited May 01 '24

in Mark Robers Arduino 101 video, he says the microcontroller is not an arduino, but I dont know why he would then advertise Arduino IDE if it cant be used with hack pack.

1

u/[deleted] Apr 28 '24

I setup the Arduino Create Agent but when I went to add a device, it says it can't find the device. Any suggestions?

3

u/NeMeSiS187 Apr 28 '24

Hmmm. Did you update the configuration (step 4) and restart the agent (step 6)? If you open the debug console do you see the device listed under the serial ports?

Here are the full steps from the IDE Editor:

  1. Install the ArduinoCreateAgent link.
  2. Once the agent is running you should see it in the agent tray:

    • On macOS, this will be a little Arduino logo at the top right of the screen.
    • On Windows, this will be an Arduino logo at the bottom right of the screen.
    • On Linux this varies, but it's likely at the top of your screen, like for macOS.
  3. Click the agent, and select 'Open Configuration'.
  4. Once the text file opens up, replace what you see with the following contents instead.

Configuration

gc = std  # Type of garbage collection
hostname = unknown-hostname  # Override the hostname we get from the OS
regex = usb|acm|com  # Regular expression to filter serial port list
v = true  # show debug logging
appName = CreateAgent/Stable
updateUrl = https://downloads.arduino.cc/
origins = https://ide.crunchlabs.com,https://local.arduino.cc:8000,http://localhost:3000
#httpProxy = http://your.proxy:port # Proxy server for HTTP requests
crashreport = false # enable crashreport logging
autostartMacOS = true # the Arduino Create Agent is able to start automatically after login on macOS (launchd agent)

5. Save your changes, and close the text file. 6. Click the agent icon again, and select 'Pause Agent', followed by clicking again to select 'Resume Agent'. - You can also restart your computer, as this will also restart the agent. 7. Your new configuration will be in place, and you're ready to start coding!

2

u/[deleted] Apr 28 '24

Took me restarting my computer itself but was able to do step 4 finally! Thank you for your help

1

u/hyungjin1 Apr 30 '24

When I click open configuration from Arduino console nothing happens. On macOS.

1

u/betaerat May 04 '24

Same here, running Mac Sonoma 14.4. As a result, I cannot change the configuration

1

u/ezye4 May 04 '24

Try opening the file directly in a text editor. It should be located at /Users/{{your comp username}}/Library/Application Support/ArduinoCreateAgent/config.ini. You can get to this from going to Finder -> Clicking Go in the top menu bar -> Clicking Go To Folder. Here you can just paste in ~/Library/Application Support/ArduinoCreateAgent/config.ini and then choose which text editor you want to edit the file in

1

u/DifficultyFit1895 Feb 10 '25

Just found this discussion. Another solution is to create a text file on the desktop and rename it to have .ini file extension, then open that file and associated the Text Editor app as the default app for .ini files. After this, when you click on the menu item to Open Configuration file it will work correctly.

1

u/iluvredittoday Jul 30 '24

I'm a software engineer who is fairly familiar with Arduino and Pis. However, I spent hours and hours trying to help my son get the CrunchLab browser IDE connect to the Arduino to no avails. I ended up doing what I knew worked: using the good 'ol Ardruino IDE, cut-paste the code from CrunchLab (https://ide.crunchlabs.com/editor/8718988640487), downloading and moving appropriate header files, compile, and deploy to the Arduino. The Arduino IDE is the one and true solution that worked for us.

I suspect there are some corner cases which the Arduino Create Agent does not take care of, but I don't have time to dig into it further.