Git Product home page Git Product logo

b3603's Issues

Set the OPT2 AFR0 bit from the code

To make everything work we need the OPT2 AFR0 to be enabled so that PWM will work on the Timer1 Channel1 and Timer2 Channel1. To make installation easier it would be nice if the application took care of that at startup rather than rely on the programmer who may have forgotten it.

At the very least we need to read it and alert if it is turned off.

Use the buttons

Find how to make use of the buttons and integrate them into a UI that doesn't necessarily depend on the serial port.

Save settings to EEPROM

Currently settings are temporal and not saved, they should be saved in EEPROM so that if the unit comes back online it comes with the last common used setting. This is especially important for auto-on semantics.

It is also critical for calibration (Issue #8) or otherwise calibration will be needed every time the unit is turned on which is rather tedious.

Any update on this project ?

Hi,
I received this power supply just a few days ago and it's a great little first lab bench power supply. I quite also like the DPS style power supply but they have several points that I don't really like. (One encoder instead of multiple potentiometer, user interface, button etc)
As a first step for the recommended noobs project "building a power supply from scratch" I would like to focus on the software side (how to limit current, pid loop etc). I think that making a replacement sheild for my nice B3603 cloud be a great exercise.
I see that in the readme you are talking about making a replacement sheild, still an ongoing project ? Seems like not to me on the github insights.
So Yeah, I'm french, only knew how to code with arduino and basic python3. If anyone is interested to help say hello !

Alert when the unit is fed below 6V

Accurate will suffer considerably if the unit is fed less than 6V and it gets pretty inaccurate once you go below 5V. The device should alert about this, it should allow operation but give a warning to let the user know he is outside bounds.

Cannot control voltage, current, output state

The board responds correctly to setting voltage, current, etc., but there is almost no physical reaction. The only thing that changes is CC/CV/OUT LED state.
It happens not because power source, laboratory power supply is far better than cheap inverter and it still goes on with full input voltage on output.

I hope that this is the last time I submit an issue :)

UART can't handle high speeds

When I tried to communicate with the unit through a script I had to put sleeps between characters being written or data was lost. The polling rate of the unit is too slow to handle the required speeds.

We need to either speed up the polling loop or slow down the uart rate to avoid such overruns.

Board not responding to serial commands

I've programmed a fresh STM8S with provided code, but it looks like there is no response from board when it starts or when I write to it through serial port. CC (yellow) LED is always on.
I've tested my USB-SERIAL adapter and Intel Galileo serial port. Both working.
STM was programmed using stm8flash/STVP and ST-LINK/V2 mini.

Implement a watchdog

To prevent the case that the unit is stuck and keeps on going we need to have a watchdog reboot the unit and reset it in case the MCU is stuck either due to a software or a hardware issue.

Implement calibration

Need to calibrate:

  • Vin ADC
  • Vout ADC & Vout PWM
  • Iout ADC & Iout PWM

For the Vin a single data point is needed (no offset), but maybe using two points would help find an offset in the ADC itself

For the Vout and Iout two points are a must since the basic formula has an offset in it for both sense and control.

Manual - How to program STM8

Hello,
Can you provide some how to about the "byte options" to flash the the *.ihx hex?
I flash the STM8 with ST-LINK with ST Visual Programmer, but in the display only shows random digit from 6 to 8 in B3603 module.
I also try with your old *.ihx hex file with same results.
Please point me in the right path.
Thank you.

When driving a current limited load CC led is not turned on

When using five 100ohm resistors in parallel I tried to set the voltage to 7V and the current to 0.01A, the voltage was at around 1V and the current at 0.04A (the PWM is not calibrated yet) but it is definitely a constant current situation. The CC led didn't turn on as expected.

Output glitch at startup

The output pin means enabled at 0V, when the unit comes online its default for the output control pin is LOW 0V so the output is enabled until the MCU boots up sufficiently to turn the output off, assuming the default is to be off.

This is an inherent limitation of the hardware and there is very little that can be done about it. The best that can be done is to optimize the software such that this glitch is as small as possible and that the output pin is configured and set as per the definition as soon as possible.

How are the 74HC595 wired?

This is needed to be able to drive the screen, we need to know both how the '595 is wired to the MCU and how it is wired to the 7-segment 4-digit display.

Handle case of top board inserted in reverse

The top board can be inserted reversed and it seems to work. The ADC shows up saturated with a raw reading of 1023 and this can be detected and maybe some action taken to avoid damage in this case.

The unit was trying to feed out about 5V, nothing good can happen with that setting...

How are the leds wired?

The CC/CV signal seems to come from the bottom board, how is it then relayed to the leds? How/who lights up the active led?

Limit number of updates to the 7-segment display

When the display is updated much faster than the persistence-of-vision rate the digits simply seem blurry especially if the numbers change back and forth. What is needed is to have a schedule to the updates and to not update the data to be displayed except on those boundaries.

The most responsive solution would be to have a timer run after an update to count 1/10th of a second and only change the data after that timer expires. This will allow changing at a maximum rate of 10 times per second but if there was no change for some time than a new change will take effect immediately.

Code is too large to fit STM8

After running make I get this:

CC main.c
CC display.c
CC uart.c
CC eeprom.c
CC outputs.c
CC config.c
CC fixedpoint.c
CC parse.c
CC adc.c
LINK b3603.ihx
Code is too large, it is 8570 bytes
Makefile:12: commands for 'check_size' object failed
make: *** [check_size] error 1

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.