# Seeking Guidance for Implementing a Battery Device in OpenEMS

**URL:** <https://community.openems.io/t/seeking-guidance-for-implementing-a-battery-device-in-openems/2104>\
**Category:** Uncategorized\
**Created:** [November 14, 2023, 11:22pm UTC](https://community.openems.io/t/seeking-guidance-for-implementing-a-battery-device-in-openems/2104 "2023-11-14T23:22:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![stefan.feilmeier](https://community.openems.io/user_avatar/community.openems.io/stefan.feilmeier/32/2585_2.png) [@stefan.feilmeier](https://community.openems.io/u/stefan.feilmeier)\
**Post date:** [January 2, 2024, 2:11pm UTC](https://community.openems.io/t/seeking-guidance-for-implementing-a-battery-device-in-openems/2104/5 "2024-01-02T14:11:51Z")

</div>

Hi @ChahtourAla,

as Klinki suggested, you should have a look at the implementation of the FENECON Home battery. It should be a very good example for your project:

- communication based on Modbus
- implementation uses a proper State-Machine, with start/stop capabilities
- there is a Battery-Protection activated, that makes sure the cell voltages stay in proper ranges
- etc.

> <https://github.com/OpenEMS/openems/tree/develop/io.openems.edge.battery.fenecon.home>
>
> //github.com/OpenEMS/openems/tree/develop/io.openems.edge.battery.fenecon.home

More background information can be found in theses threads:

- [Edge-Module - Programmierstil](https://community.openems.io/t/edge-module-programmierstil/1477) (German language)
- [ESS that can talk with OpenEMS using Modbus TCP](https://community.openems.io/t/ess-that-can-talk-with-openems-using-modbus-tcp/1029)

Regards,  
Stefan

---

_[View the full topic](https://community.openems.io/t/seeking-guidance-for-implementing-a-battery-device-in-openems/2104)._
