Text this: Flexible hardware for teaching and research in renewable energy and off-grid microgrids