Giter Site home page Giter Site logo

scv2-sketches's Introduction

SCv2-sketches

Sketches for SCv2

The primary sketch for productiuon is the load share

Licensed under MIT license

See the modified MIT license file.

Primary Code Functionality

  • Calculates and shares target wattage among upto 3 SCv2 modules
  • normalizes output power
  • normalizes output voltage
  • defaults to 6600.00 watts target charge rate from station
  • stores new target charge rate to eeprom when modified by user via api
  • starts up with target charge rate wattage from eeprom or defualt if not set
  • ramps up at 50 watts per second
  • ramps down instantly
  • cuts charge rate back to 75% of target wattage over 113.5v if over 1800.00 watts

API COMMANDS

Version 2 of the API accepts one command, change target wattage * 100 Every command must be ended by a newline char of \n

1kw = 100000 you can look at this as 1000.00 watts

API PUSHED DATA

    //battery volts
    Serial.print(volts);
    Serial.print(",");

    //total charging amps
    Serial.print(amps);
    Serial.print(",");

    //total charging amps per charger
    Serial.print(amps/chargerCount);
    Serial.print(",");

    //charger count
    Serial.print(chargerCount);
    Serial.print(",");

    //target watts
    Serial.print(watts);
    Serial.print(",");

    //target max watts
    Serial.print(MAX_STATION_WATTS);
    Serial.print(",");

    //target total amps
    Serial.print(chargingAmps*chargerCount);
    Serial.print(",");

    //target amps per charger
    Serial.print(chargingAmps);

    //start extending with a comma
    Serial.print(",");

    //print api version
    Serial.println(VERSION);
  

scv2-sketches's People

Contributors

riaevangelist avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.