This project presents the control of electrical power distribution from solar energy or solar cell system. Via on-grid inverter To reduce the maximum electrical power requirements by using the C2000 Microcontrollers (TMS320F28377S) board as an inverter controller. By communicating the board with the inverter via Modbus RTU RS485 so that the inverter outputs the power required The energy value that will be paid from that inverter. Consider the simulation by MATLAB program to find the actual energy value Because in reality Can not know So have to use forecasting And must calculate the energy value contained in the battery For finding time to start paying - stop paying in order to get a new electrical energy demand Which this process has already been done This project will do mostly hardware.