Hanna
Sourcecode Batteriemanagementsystem
Funktionen | Variablen
BMS-Basic.c-Dateireferenz

BMS Steuerprogramme für Laden und Betrieb. Mehr ...

#include <stdio.h>
#include <stdint.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <stdbool.h>
#include "board_init.h"
#include "BMS-Basic.h"
#include "Hardware/ad7997.h"
#include "Hardware/bms_mosfet.h"
#include "Hardware/com74hc595.h"
#include "Hardware/ds1388_rtc.h"
#include "Hardware/temp_mcp9843.h"
#include "serial_interface/twi_master_driver.h"
#include "serial_interface/usartx.h"
#include "ventilator.h"
#include "display_ausgabe.h"
#include "Hardware/taster.h"
#include "screens_gfx.h"
#include "sdcard_bms.h"
Include-Abhängigkeitsdiagramm für BMS-Basic.c:

gehe zum Quellcode dieser Datei

Funktionen

void akkuauswahl (void)
 
void control_check (void)
 
void entlade_steuerung (void)
 
void excel_ausgabe ()
 
 ISR (PORTD_INT1_vect)
 
 ISR (PORTE_INT0_vect)
 
void lade_bestimmung (void)
 
void lade_steuerung (void)
 
void leerlauf_steuerung (void)
 
void notstrom (void)
 
void SOC_berechnung (void)
 
void SOH_berechnung (void)
 
void temperatur_entladen (void)
 
void temperatur_laden (void)
 
void terminal_ausgabe ()
 
void terminal_usb_ausgabe ()
 
void zeit_berechnung (void)
 

Variablen

bool akku [8] = { false, false, false, false, false, false, false, false }
 
bool akku_an [8] = { false, false, false, false, false, false, false, false }
 
bool akku_laden [8] = { false, false, false, false, false, false, false, false }
 
int aktuelle_zelle_P1 = 4
 
int aktuelle_zelle_P2 = 0
 
uint32_t betriebszeit_s [8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
 
int16_t c_max [8] = { 750, 750, 750, 750, 750, 750, 750, 750 }
 
float charge [8] = { 600, 600, 600, 600, 600, 600, 600, 600 }
 
unsigned char com74hc595 [COM74HC595_SIZE]
 
int einlese_zeit [2] = { 0x00, 0x00 }
 
bool entlade_start = false
 
bool flag_tcrit [8] = { false, false, false, false, false, false, false, false }
 
bool flag_tlower [8] = { false, false, false, false, false, false, false, false }
 
bool flag_tupper [8] = { false, false, false, false, false, false, false, false }
 
float gesamt_volt = 0.00
 
int h [8][2]
 
bool laden = false
 
uint32_t ladezeit_s [8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
 
float ladezyklus [8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
 
bool last = false
 
int m [8][2]
 
uint8_t max_volt = 0
 
uint8_t min_volt = 0
 
bool reset_eingabe [8] = { false, false, false, false, false, false, false, false }
 
int s [8][2]
 
uint8_t sendRegData [16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
 
int SOC [8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
 
int SOH [8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
 
uint8_t state_counter = 0
 
bool usb_versorgung = false
 
bool vent_1 = false
 
bool vent_2 = false
 
float voltage_rechnen [8][5]
 

Ausführliche Beschreibung

BMS Steuerprogramme für Laden und Betrieb.

Autor
Hanna Burggraf
Datum
02.01.2016
            $Revision: 465 $
            $Date: 2016-04-02 12:42:42 +0200 (Sat, 02 Apr 2016) $

Definiert in Datei BMS-Basic.c.

Dokumentation der Funktionen

void SOC_berechnung ( void  )
Noch zu erledigen:
Restlaufzeit bei aktueller Stromstärke aus charge berechnen

Definiert in Zeile 571 der Datei BMS-Basic.c.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft: