Simulated Battery Storage using Real Live Data

I am trying to use real live data from a solar panel through an arduino and use that with a simulated battery to get an output. Does anyone know a way this can be done?

2 Comments

I am not clear on what the data from the arduino is?
It is the voltage coming from the solar panel

Sign in to comment.

Answers (1)

Abhi Sundararaman
Abhi Sundararaman on 13 Oct 2017
Moved: Sabin on 4 Jan 2023
If the arduino is just supplying the voltage value, then you could start by using the Arduino Support Package, and run your simulation in external mode so you can communicate with a model on your arduino. From there you would have to implement the simulated battery in Simulink on your development PC.
External mode would allow your simulated battery model on your computer to communicate with the model on your arduino that has the voltage values.

Communities

More Answers in the  Power Electronics Control

Asked:

on 11 Oct 2017

Moved:

on 4 Jan 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!