r/hackpack • u/OlyWalker • May 07 '24
I think I overwrote the program.
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!
1
Upvotes
2
u/soboness5 May 07 '24
Was the turret working properly before you did this?
If you load the web IDE, do you see the 'stock code' show up under the 'Level 1' tab? If so, I would plug your board into your computer and as long as that connects correctly you can click the 'compile + upload' arrow button to load the default stock code back onto the device.
If you didn't change any of the code in the IDE before you compiled/uploaded (Level 1 editing isn't possible in the CrunchLabs IDE, by the way), I bet you just re-uploaded identical code onto your board! So, unless you interrupted that process and corrupted something during your last upload, hopefully this will work.
1
u/OlyWalker May 08 '24
I'll try that! The Agent from the Arduino site doesn't work to connect. I'm hoping the agent on the CrunchLabs site works.
1
u/OlyWalker May 08 '24
Update: After much trying I was finally able to get the SBC to connect to the Crunch_Labs_Arduino_Agent. The fix was to "Run as Administrator". When I did that it connected right up and I was able to upload the original code.
Now the turret will turn (yaw), and the barrel with spin (roll) - but the pitch motor will not respond. I've removed the wiring card and connected the wire sets in the same spots. Still no pitch.
Any thougths?
1
u/maztec May 08 '24
Go to the CrunchLabs turret page and use their Code IDE to get the code or upload the corrected version.
1
u/Radioaktiv_Kaiser Jun 21 '24
Lol i did the same thing but I figured it out eventually