8x8x8 multiplexed LED cube with an Arduino Mega 2560

Yes, Gnds must be connected. Arduino, LED "shield", power supply.