This project aims to develop a battery hardware simulator, which will serve as a tool for studying microgrids. The primary objective is to create a simulation system that can emulate various battery technologies that are used in microgrids, including lithium-ion and lead acid. By utilizing this battery simulator, Cal Poly students can safely test battery management systems and battery-sensitive electronics without the inherent risks associated with real batteries. Our project implemented this design with a 4-quadrant programmable power supply (ITECH) connected to an AP Systems grid tied inverter. The power supply acts as the battery which can receive or supply power from or to the grid through the inverter. The power supply is programmed with different battery technology discharge profiles using the ‘List’ function.