# Towards the Real-World Deployment of a Smart Home EMS: A DP Implementation on the Raspberry Pi
## 4 Embedded Implementation of the Chosen EMS
### Dynamic Programming Algorithm
A suitable test bench was set up to assess the EMS performance in a chosen case study (i.e., four networked dwellings including renewable generators) that was emulated. The experimental results show that the EMS can perform each of its tasks on the embedded platform within the allowed time frames; they also show that the embedded EMS correctly exchanges data with the wireless sensors and the grid manager's data aggregator. Furthermore, an extended validation of the EMS effectiveness was performed in terms of cash flow increase and uncertainty reduction. In particular, the experiments showed that the EMS performs its computations in a few minutes for the _Planning_ task and in less than 2.5 s for the _Online Replanning_ task. Furthermore, the EMS performance is very good since the uncertainty on the daily profile of the power exchanged by the users with the utility is significantly mitigated (NMRSE = 2.88% and NMAE = 22%). This result is a first step towards the quick and affordable adoption of EMSs in smart homes. As for the future development of this work, the short execution times obtained for the proposed embedded EMS suggest that there is sufficient margin to take into account other important aspects such as battery state of health in the EMS formulation. Furthermore, future activities will contemplate testing the embedded EMS on the field, i.e., within real-world smart homes. Conceptualization and methodology, G.L.T., M.L., M.C.D.P. and A.D.P. ; software development, G.L.T. ; validation, G.L.T., M.L. and M.C.D.P. and writing, review and editing, G.L.T., M.L., M.C.D.P. and A.D.P. This research received no external funding. The authors declare no conflict of interest. ## References

* (1) [PERSON]; [PERSON]; [PERSON]; [PERSON] The New Frontier of Smart Grids. _IEEE Ind. Electron. Mag._**2011**, \(5\), 49-63. [CrossRef]
* (2) [PERSON]; [PERSON]; [PERSON] Future Energy Systems: Integrating Renewable Energy Sources into the Smart Power Grid Through Industrial Electronics. _IEEE Ind. Electron. Mag._**2010**, \(4\), 18-37. [CrossRef]
* (3) [PERSON]; [PERSON]; [PERSON] Impacts of forecast accuracy on grid integration of renewable energy sources. In Proceedings of the 2013 IEEE Powertech Grenoble Conference, Grenoble, France, 16-20 June 2013; pp. 1-6. [CrossRef]
* (4) [PERSON]; [PERSON] Evaluating the limits of solar photovoltaics (PV) in traditional electric power systems. _Energy Policy_**2007**, _35_, 2852-2861. [CrossRef]
* (5) [PERSON]; [PERSON] Evaluating the limits of solar photovoltaics (PV) in electric power systems utilizing energy storage and other enabling technologies. _Energy Policy_**2007**, _35_, 4424-4433. [CrossRef]
* (6) [PERSON]; [PERSON]; [PERSON]; [PERSON] A Customized Evolutionary Algorithm for Multiobjective Management of Residential Energy Resources. _IEEE Trans. Ind. Inform._**2017**, _13_, 492-501. [CrossRef]
* (7) [PERSON]; [PERSON]; [PERSON]; [PERSON]. Optimal household appliances scheduling under day-ahead pricing and load-shaping demand response strategies. _IEEE Trans. Ind. Inform._**2015**, _11_, 1509-1519. [CrossRef]
* (8) [PERSON]; [PERSON]; [PERSON] Temporal Self-Regulation of Energy Demand. _IEEE Trans. Ind. Inform._**2016**, _12_, 1196-1205. [CrossRef]
* (9) [PERSON]; [PERSON] Demand side management: Demand response, intelligent energy systems, and smart loads. _IEEE Trans. Ind. Inform._**2011**, \(7\), 381-388. [CrossRef]
* (10) [PERSON]; [PERSON] Responsive End-User based Demand Side Management in Multi-Microgrid Environment. _IEEE Trans. Ind. Inform._**2014**, _3203. [CrossRef]
* (11) [PERSON]; [PERSON]; [PERSON]; [PERSON] Smart home energy management systems survey. In Proceedings of the 2014 International Conference on Renewable Energies for Developing Countries, REDEC 2014, Beirut, Lebanon, 26-27 November 2014; pp. 167-173. [CrossRef]* [PERSON] and [PERSON] (2014) [PERSON]; [PERSON] [PERSON] Assessment of communication technologies for a home energy management system.