At first I thought it was a bug in my code, but after testing several different Mega2560 boards with the same code, I found out that this block has a voltage regulator bug. USB, it works fine, but when using the 12V power connector on the plug, the voltage regulator overheats and the board starts to respond erratically, randomly shutting down and restarting. - EDIT - After the manufacturer contacted them and offered to replace the circuit board, it turned out I had a bad unit and the replacement works as expected. Have changed my review to reflect this: sometimes things go through quality control but how the manufacturer handles the situation is just as important as the product itself and they took care of it quickly.
LAFVIN Super Starter Kit for Arduino R3 Mega2560 Mega328 Nano with Detailed Tutorial - Compatible with Arduino IDE
11 Review
REXQualis Comprehensive Starter Kit with Arduino MEGA 2560 & Detailed Tutorial for Arduino IDE Compatibility
11 Review
GeeekPi Raspberry Pi Cluster Case with Cooling Fan and Heatsink for Pi 4 Model B, 3 Model B+ & 3/2 Model B
11 Review
Vilros Raspberry Pi 4 4GB Complete Starter Kit - Black Fan-Cooled Aluminum Case for Heavy-Duty Performance
12 Review
Glarks 660 Pieces Phillips Assortment Motherboard
10 Review
36-Pack Black Rubber PC CPU/Case Fan Screws/Rivets Set for Computer
11 Review
Comprehensive 500pcs Laptop Screw Kit Set for 🔩 IBM HP Dell Lenovo Samsung Sony Toshiba Gateway Acer
12 Review
🔧 Premium Repair Replacement Screws & Tools for MacBook Pro Retina 15"/13" - Complete Bottom Case Set
10 Review