This is the code from Crunchlabs' first Hack Pack box - the IRTurret.
I copied the the code from the CrunchLabs browser-based IDE into the default folder here. I modified it slightly (by adding the prototype function definitions at the top) so that the code can build outside of the Arduino IDE.
Note: The default code includes the header file, "PinDefinitionsAndMore.h" which (as far as I can tell) is not needed and the code builds fine without it. However, I asked the "Mark RoBot" AI chatbot what is in that file, and the contents here in the PinDefinitionsAndMore.h file I created is what it gave me. I'm sure this was just an LLM halucination though, as it seems to not be needed.
- Hack Pack Subscription
- IRTurret Information Page
- CrunchLabs Provided IRTurret Source Code and In-Browser IDE
- Official Hack Pack Discord Server
I created a copy of the code as a starting point for any customizations. I plan on flashing and operating the IR Turret with an ESP32 which will provide more compute power, more GPIO, and has built-in wifi and bluetooth transceivers. This should make it fairly easy to allow controlling the turret from a phone, for example.
The Servo library (used by the code included in the IT Turret) is incompatible with ESP32. The ESP32Servo library (included in the "custom") code is a drop-in replacement for this, at least for the needs of this project.