Git Product home page Git Product logo

vc288-alt-fw's Introduction

vc288-alt-fw

VC288 Volt-amp meter alternative firmware. Targets the cheap DSN-VC288 volt-amp meter that uses the STM8S003F MCU.

How to compile

  1. Install Visual Studio Code in your system.
  2. Install the PlatformIO extension on Visual Studio Code.
  3. Once these are installed, open the PlatformIO Home from the extension icon, and install the ST STM8 platform.
  4. Open this repository, by either cloning it to a directory, or by unziping the zip archive.
  5. Finally, build the code by navigating into the PlatformIO extension icon, and expanding the appropriate release build (for instance, stm8sblue_release). Select Build to build it; then Upload to upload the code to the chip using an STLinkV2.

For more info and other tools to upload it, please consult the PlatformIO info page for ST STM8.

Load the pre-built files

Since this project uses PlatformIO, a simple action can be added later to generate the .elf or .hex file for each pull request (or release) created for the ease of flashing a pre-compiled version.

Status

This is still not fully fledged as the original.

TODOs:

  • Linearize the ADC readings to get a precise value out of it.
  • Support the STM8S103F MCU (other variants of the same voltmeter).
  • ... other stuff that will come out eventually.

vc288-alt-fw's People

Contributors

alexasf avatar cocus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vc288-alt-fw's Issues

Dynamic comma

если я правильно понял с запятой нужно работать здесь?

void set_segments(uint8_t data)
{
PA_ODR_ODR2 = data & 1; data >>= 1; // G
PC_ODR_ODR4 = data & 1; data >>= 1; // F
PC_ODR_ODR7 = data & 1; data >>= 1; // E
PC_ODR_ODR6 = data & 1; data >>= 1; // D
PC_ODR_ODR3 = data & 1; data >>= 1; // C
PA_ODR_ODR3 = data & 1; data >>= 1; // B
#ifndef SWIM_DEBUG_ENABLED
PD_ODR_ODR1 = data & 1; data >>= 1; // A (same pin of SWIM)
#else
data >>= 1;
#endif
PC_ODR_ODR5 = data & 1; data >>= 1; // Dp
}

void select_digit(uint8_t digit)
{
PD_ODR_ODR4 = digit != 0;
PD_ODR_ODR6 = digit != 1;
PD_ODR_ODR5 = digit != 2;

PB_ODR_ODR5 = digit != 3;
PB_ODR_ODR4 = digit != 4;
PA_ODR_ODR1 = digit != 5;

}

incorrect display of characters

Displays the letter A upside down and commas for 4 divisions 3 upper and one lower 2 more not lit at all... please help me. How to fix the normal display? to show everywhere 0 and commas only where necessary.

Alternative MCU ?

My vc288 board looks the same but MCU markings are totally scratched up. And i cannot write ROP Option Byte. Is it possible that i have different MCU?
IMG_20210822_100721

How to calibrate

Please my friend tell me how to calibrate?, I connected 12 volts for measurement, it shows 319 volts and should show 12

Calibration

Привет всем. Столкнулся тоже с проблемой калибровки. Залил актуальную прошивку. Версия платы 1, при подаче питания 5в - показания 11,3
6в - 21,5
7в - 32.8
8в - 43,0
Резисторы перепроверил тестером и вроде соответствуют скетчу RV1,2 - 20k , R1-8k2 , R2-270k , R3-180k , R4-8k2
Подскажите правильное направление решения. Спасибо.
ENG
Hello everybody. I also ran into a calibration problem. Uploaded the current firmware. Board version 1, when the input power is 5V - display show 11.3
6v - 21.5
7v - 32.8
8v - 43.0
I checked the resistors with a tester and seem to correspond to the sketch RV1,2 - 20k, R1-8k2, R2-270k, R3-180k, R4-8k2
Prompt the right direction of the solution. Thank you.

Out data to UART

Feature request
Would be great to have the data sent to UART if values are changed.

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.