At first I thought it was a bug in my code, but after testing several different Mega2560 boards with the same code I found that the voltage regulator in that block was defective. With a 5V supply with the USB off, everything works fine, but when using the 12V power connection on the plug, the voltage regulator overheats and the board starts to work erratically, randomly shutting down and restarting. - EDIT - After contacting the manufacturer and offering to replace the circuit board, it turns 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.
๐ MCIGICM 2 Channel DC 5V Relay Module: Optocoupler Low Level Trigger Expansion Board for Arduino UNO R3, DSP, ARM, PIC, AVR, STM32, Raspberry Pi
11 Review
REXQualis Comprehensive Starter Kit with Arduino MEGA 2560 & Detailed Tutorial for Arduino IDE Compatibility
11 Review
Gikfun Screw Shield Expansion Board: Enhance Arduino UNO R3 with the EK7007 Add-On
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
Glarks 660 Pieces Phillips Assortment Motherboard
10 Review
M.2 Screw Kit: Easy Mounting for NVMe SSDs on ASUS Motherboards
19 Review
uxcell 3.5" HDD Screw Black 200pcs for Computer PC Case - Flat Phillips Head - 6#-32 - Hard Drive Fasteners
10 Review
MacBook Retina 13-inch (A1425, A1502) and ๐ฉ 15-inch (A1398) Bottom Case Screw Set with Pentalobe Screwdriver
11 Review