Skip to content

Solar4FarmIA describes and simulates an autonomous power system composed of batteries and solar panels. This kind of systems allow its user to provide enough energy for smart agriculture robots.

Notifications You must be signed in to change notification settings

sudogauss/Solar4FarmIA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solar4FarmIA

This project contains a report describing an autonomous power system based on renewable solar energy and its carbon footprint. This report discusses a way to build this type of system, evaluates energy requirements of a smart agriculture bot(FarmBot), describes a way to simulate solar activity, bot's activity and power system behavior. It gives some formulas to calculate the carbon footprint of solar panels and all the power system.

Code

The Solar4FarmIA folder contains the code simulating FarmBot(bot.py), Power system(power_system.py) and Solar activity(solar_activity.py). It also contains a timer.py iterator for the each-day-and-hour-of-the-year iteration. You can change consts in const.py to modify simulation parameters.

Run

Note: follow this steps only for Linux, use your own method to generate venv and run code for Windows.

Attention!!!: You must respect the right format of your csv data files. Take a look at the examples in data folder

Clone the repository:

    $ git clone [email protected]:sudogauss/Solar4FarmIA.git
    $ cd Solar4FarmIA

Run the following commands to generate virtual environment and install all dependencies

    $ python3 -m venv venv
    $ source venv/bin/activate
    $ pip3 install -r requirements.txt

There is two simulations available: solar panel comparison (panel_simulation.py) and solar panel surface comparison (surface_simulation.py). Run:

    $ cd Solar4FarmIA
    $ python3 panel_simulation.py <epochs> \
    $ <solar_data_file.csv> <solar_panels.csv>

or

    $ cd Solar4FarmIA
    $ python3 surface_simulation.py <epochs> \
    $ <solar_data_file.csv>

Example for panel comparison simulation. You must open solar_panel.csv to see the corrseponding number of each solar panel:

    $ cd Solar4FarmIA
    $ python3 panel_simulation.py 20 data/solar_data.csv data/solar_panel.csv

Example for panel surface simulation:

    $ cd Solar4FarmIA
    $ python3 panel_simulation.py 20 data/solar_data.csv

About

Solar4FarmIA describes and simulates an autonomous power system composed of batteries and solar panels. This kind of systems allow its user to provide enough energy for smart agriculture robots.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages