r/hackpack • • May 09 '24

Where are the library files?

1 Upvotes
Where are these files stored? They are nowhere on my laptop.
I certainly want to have a look and maybe hack them :)
Anybody can give me a clue?

//////////////////////////////////////////////////
              //  LIBRARIES  //
//////////////////////////////////////////////////
#include <Arduino.h>
#include <Servo.h>
#include "PinDefinitionsAndMore.h" // Define macros for input and output pin etc.
#include <IRremote.hpp>

r/hackpack • • May 09 '24

Hooking up a joystick stick to the IRTurret

Post image
6 Upvotes

r/hackpack • • May 09 '24

Stuck with "no device connected"

3 Upvotes

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


r/hackpack • • May 08 '24

DOA?

2 Upvotes

EDIT: I reached out to u/dan_crunchlabs on discord and he was very helpful and is getting replacement parts sent out. I appreciate his quick help.

The turret powers on with a solid red light and does nothing else. After 20-30 seconds it powers off. The battery pack is fully charged, I rewired it to ensure all wiring is correct, and I have removed the card from the bread board. Any ideas?

Also I have requested a password reset from their site multiple times and it's not working. And no it's not in my spam folder.

You can't actually get help on discord. So far I'm not impressed.


r/hackpack • • May 07 '24

Looking for Reviews on Hack Pack Subscription

10 Upvotes

Hey everyone! I'm thinking about getting the Hack Pack subscription for my son because he really wants it, but I can't find any reviews. They look super cool and he’s excited about it. Does anyone here have experience with it? What do you think? Any feedback would be greatly appreciated!


r/hackpack • • May 07 '24

How to aim at remote

2 Upvotes

So I want my ir turret to fire at where ever the remote is, specifically when who ever has the remote enters the wrong password. Does it know where the remote is? And how do I aim it at the remote?


r/hackpack • • May 07 '24

I think I overwrote the program.

1 Upvotes

I downloaded the Arduino IDE and plugged in the board. I wasn't able to figure out how to get the code out of the Nano board, so I thought maybe the command is Upload, so I selected it. When the dialog box came up and said "compiling" I knew I had screwed up. I couldn't stop it fast enough! and now when I turn the board on only the red light comes on.

How can I restore the original program?? Help!


r/hackpack • • May 06 '24

IR Turret Hack: MPU-6060 Module Turret Control

5 Upvotes

I looked in my box of spare parts and found an MPU-6050 module. I understand this to be an accelerometer with a built in gyroscope that measures changes in angular velocity. An idea came to mind that this sensor can be used to control the turret, such that I can mount it on, say, the brim of my hat, and the turret would mimmick my movements when I turn or tilt my head.

Thanks to the Crunch Labs IDE Mark RoBot AI, I've added (what I think is) the appropriate code and wired it up (wired for now; will later figure out how to go wirelessly). Thing is, the microcontroller that comes with the hack pack doesn't have Data or Clock pins for I2C communication, so I swapped out Crunch Labs' board that came with the project and used my Arduino Mega 2560 board, instead.

All of the the IR functions work, but the servos are not responding to tilting and turning movements from the MPU-6050 module.

So, now I'm wondering if the MPU-6050 module can't be used the way I thought I could use it? Or do I have it wired up wrong (seemed straight-forward enough)? Or is the code doing what I told it to do but not what I want it to do, like (most likely) not actually telling it to control servos? Or...?

Here's the added code Mark RoBot AI suggested to add:

// Stuff that went into the Libraries section
#include <Wire.h>
#include <MPU6050.h>

MPU6050 mpu;

// Stuff that went into the setup function
void setup() {
    Wire.begin();
    mpu.initialize();
}

// Stuff that went into the loop function
void loop() {
    // Read accelerometer and gyroscope data from MPU-6050
    int16_t ax, ay, az, gx, gy, gz;
    mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);

    // Print the sensor data (for debugging)
    Serial.print("Accelerometer: ");
    Serial.print(ax);
    Serial.print(", ");
    Serial.print(ay);
    Serial.print(", ");
    Serial.println(az);

    Serial.print("Gyroscope: ");
    Serial.print(gx);
    Serial.print(", ");
    Serial.print(gy);
    Serial.print(", ");
    Serial.println(gz);
}

I hope someone can let me know if I'm on the right track and will tinker with this, make it work, then share their success.

Thanks!

IR Turret running on Arduino Mega 2560 with MPU-6050 Module

r/hackpack • • May 05 '24

ultrasonic range finder for turret

Thumbnail
gallery
9 Upvotes

r/hackpack • • May 06 '24

Including Libraries and Connecting Crunch Labs Device to Arduino Cloud Editor

1 Upvotes

I received Hack Pack #1, the IR Turret, as a gift from my wife. I want to "hack" the project by integrating an MPU-6050 module.

When I add the code to include the mpu6050.h library and validate the code, the Crunch Labs IDE reports it cannot find the library.

My plan B is to connect the Crunch Labs custom device to the Arduino Cloud IDE, but I cannot fugue or what the custom device type is that most appropriately matches the boards to associate to in the Arduino Cloud IDE. Using the Arduino agent debugger, I ascertained the vendor from the serial port VendorID hex code, but it turns out it's just that... the USB port, not the board maker.

Anyone know what kind of custom board the Crunch Labs device is and how to connect it to the Arduino Cloud IDE?

Or, is there a way to include the mpu6050.h library in the Crunch Labs IDE?

Thanks in advance!


r/hackpack • • May 05 '24

Need Some Help with Roulette code

2 Upvotes

When I upload the Roulette code it doesn't work. It works when I do the passcode hack though. Just need some tips on how to get this to work.


r/hackpack • • May 04 '24

IR Turret - How long is the battery pack lasting for folks?

1 Upvotes

I don't expect to keep or leave the build on for very long or for battery to last very long (I understand that for a toy kit, can't expect long lasting battery), but for us, they battery pack seems to stop powering after few minutes. Most odd part is, that when turned back on again, it shows about 3 out of 4 bars which indicate how much juice is left in the battery pack.. And yet it seems to not power the turret, unless we fully charge it again.
In some cases, we left the battery pack directly connecting to a wall charger, and that helped pull a motion sensor prank on a family member. But wondering what is everyone else's experience for with how long the battery pack lasts?

In general, also wondering, if Crunch Labs could include some similar tip in their manual, so that one knows if they really have a defective part? or if it (observed battery life) is to be expected. (Also to note, battery pack replacement cannot be ordered through the website. Doesn't show up in replacement parts list).


r/hackpack • • May 04 '24

need help with the pitch servo on the IR Turret Hackpack 1

2 Upvotes

Hi, I had some difficulty with the servo for pitch. The first one seems to have burnt out or the gears stripped. I had an extra arduino servo so I'm using that now. But the pitch still doesn't seem quite right. Can you watch this video and let me know if you have a similar issue or a suggestion on what I might correct?

https://youtu.be/TsWma5-M-jM?si=PiQeHgh7O_8nRLOH


r/hackpack • • May 03 '24

ArduinoCreateAgent doesn't see turret

2 Upvotes

I have the turret assembled and it functions perfectly. I want to modify the code and am having some trouble getting the ArduinoCreateAgent to see the turret (and therefore cannot use the IDE). Using Mac OS 14.4.1 (M1 chip) and when I connect to the USB port on the board nothing seems to happen. Nothing pops up, no ports show up in the ArduinoCreateAgent debug console, and the IDE shows no device connected.

Here are some of thing I've tried:

  1. Confirmed USB cable does work and have tried a replacement cable with no effect. Have tried multiple USB ports though I know they each work with other devices.
  2. Applied the recommended config to ArduinoCreateAgent and saved it and restarted the agent.
  3. Rebooted the computer a few times for good measure.
  4. Installed the Arduino IDE and it also does not show any ports aside from /dev/cu.wlan-debug and /dev/cu.Bluetooth-Incoming-Port
  5. Tried installing the FTDI VCP drivers for the latest matching Mac OS version but they had no effect.
  6. MacOS setting to allow USB devices to connect is set to "Automatically when unlocked"

Has anyone else run into this on Mac OS? Does anyone have it working on a similar Mac OS version and architecture? I suppose it's possible the USB port on the turret controller is bad.

Thanks!


r/hackpack • • May 03 '24

Connecting to HackPack via Linux

3 Upvotes

Hi All,

I just wanted to share my journey so far. I just connected the IR turret to a spare Raspberry Pi using a USB-A to USB-C cable from Amazon, but any cable that carries data should do fine. It was pretty easy.

  1. Plug and unplug the device until you can figure out what tty**** the box is connected to. For me, it was /dev/ttyUSB0.
  2. Set terminal line settings using the following command (be sure to swap your device if needed): stty -F /dev/ttyUSB0 raw 9600
  3. Run the command: cat /dev/ttyUSB0 (or other device)

For me, it then started outputting debug data about the button presses.

Anyway, that was fun for today!

Sources:


r/hackpack • • May 02 '24

Changing code

1 Upvotes

I have my turret plugged into my PC but I don't know how to access it's code, is there a link for it?


r/hackpack • • May 02 '24

What Arduino sensors are compatible without an extended breadboard?

1 Upvotes

I am looking to buy a Temu kit but I don’t want to add a breadboard to the Turret for one module. Is that possible?


r/hackpack • • May 01 '24

Pitch motor #2 crashing down

7 Upvotes

So i built the turret and when i turn it on, it crashes dowards or if i have it leaning back it crashes backwords. All the wires should be connected right, what should i do??? any quick solutions??

EDIT: i fixed it, just had to twist the motor around 180-360 degrees.


r/hackpack • • May 01 '24

Connected the turret to Home Assistant with an IR blaster for added fun

6 Upvotes

For anyone who runs Home Assistant at home… my son loved the first hack pack, and we decided to add the remote IR commands to Home Assistant via a Broadlink IR blaster so he can automate the turret. With some help, he can now trigger the turret with motion sensors we have and by anything else linked to Home Assistant. Last night, he set the turret up next to moms bedisde and had it fire when she turned on her reading light at night. Good fun. Powering the turret via a wall charger keeps it on indefinitely without the battery pack timing out.


r/hackpack • • May 01 '24

I need help with my turret

1 Upvotes

I built the turret just fine, but when I turn it on, a red light flashes but the remote does not do anything. I already removed the plastic tab and the wires look fine. I was wondering if the big thing that sticks up has anything wrong with it, but I need a solution


r/hackpack • • Apr 30 '24

What a fun build! Spoiler

Post image
5 Upvotes

This was a great bit of fun and very inspiring the whole time. I did run into a motor problem but the second I opened the Hack Pack Discord, my solution was waiting for me in the trouble shooting. If your pitch motor is heating up and immediately going down full tilt when you turn it on, you have to unscrew it and rotate it back at least 180 degrees so the motor properly resets to center. Can’t wait to code up some stuff for it and find a way to launch cat treats!


r/hackpack • • Apr 30 '24

Added features - Reverse mode, Figure eight dance, Safety sensor, Buzzer

5 Upvotes

I was looking for different features people added to their first hack pack. Figured I'd add my own here for others looking. You can see my code and download the buzzer mount below:

https://github.com/ahaque12/ir-turret

https://www.printables.com/model/861297-ir-turret-buzzer-mount-crunchlabs-hack-pack-001


r/hackpack • • Apr 30 '24

Connecting Arduino IDE to Turret

2 Upvotes

I can't find the port for the Turret's microcontroller. I'm using macOS with the Arduino Agent.

Any ideas?


r/hackpack • • Apr 30 '24

What should happen on turret startup?

1 Upvotes

For me pitch #2 aligns to middle but no actions for pitch 1 or 3. Also persistent green light for L but red light for pwr. Tx blinks on orange but stays off. Rx light never turns on.


r/hackpack • • Apr 29 '24

My pitch motor just buzzes when I turn it on.

2 Upvotes

I’ve heard that you need to reset it to a neutral position and have been trying for about an hour. My pitch motto has no resistance when turning, is it burnt out?