Author Topic: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)  (Read 451903 times)

0 Members and 3 Guests are viewing this topic.

Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1000 on: June 18, 2018, 07:48:15 am »
How to roll back to Firmware V1.02?

I mean, the sketch,psu_lib and sci-parser comes from 1.02 release, ethernet library which version I should use?

Update:Master lib works.

Ethernet lib was not changed recently (i.e. from 1.02 to 1.1.1)

Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1001 on: June 18, 2018, 07:52:14 am »
my psu goes to standby while switch on the channel outputs (both), when OCP is enabled and output voltage from 5v and above with current below 9mA

when OCP disabled works upto 39.99, at 40V goes to standby. no idea what went wrong.

Code: [Select]
CH1 U_DAC = 33244
06/17/2018 10:28:33 PM
CH2 U_DAC = 18389
CH1 U_MON = 744
CH2 U_MON = 679
CH1 U_MON_DAC = 16561
CH2 U_MON_DAC = 9164
CH1 I_DAC = 2420
CH2 I_DAC = 2203
CH1 I_MON = 740
CH2 I_MON = 706
CH1 I_MON_DAC = 1242
CH2 I_MON_DAC = 1127
AUX TEMP = 383
CH1 TEMP = 408
CH2 TEMP = 399
MAIN_LOOP_DURATION = 306 858 1441 / 144 841 100866 / 24 8346299
ADC_COUNTER = 0 / 0 / 1082

I need more info for this one. What did you changed, e.g. just firmware or more stuff? Did you test that with or without connected load, what is load value, etc. Anyway this sound pretty weird.

Offline s8548a

  • Regular Contributor
  • *
  • Posts: 116
  • Country: in
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1002 on: June 18, 2018, 05:56:35 pm »
Changes made: after updating to V1.1.1 just re-calibrated.

PSU was going to standby without load.

I thought of a wrong calibration might happened and today tried to do the calibration again , after the first voltage point 150mV, the 19.10 voltage is not coming.

 

Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1003 on: June 19, 2018, 07:10:47 am »
That's really strange. You'd like to say that calibration works fine in 1.02 and not in 1.1.1? Can you set 19 V outside of calibration wizard?

Offline s8548a

  • Regular Contributor
  • *
  • Posts: 116
  • Country: in
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1004 on: June 19, 2018, 09:42:52 am »
No, I checked on the 1.02 and 1.1.1, same behavior.

either my PSU was faulty already and I did't noticed or something happened during the re-assembly.

The calibration wizard is working, apologies, that was a midnight blunder I made. The issue is actually as below:
psu goes to standby while switch on the channel outputs (both), when OCP is enabled and output voltage from 5v and above with current below 9mA setting-no load.
when OCP disabled works upto 39.99, at 40V goes to standby.

Code: [Select]
CH1 U_DAC = 17471
06/19/2018 3:11:56 PM
CH2 U_DAC = 17263
CH1 U_MON = 8675
CH2 U_MON = 8615
CH1 U_MON_DAC = 8672
CH2 U_MON_DAC = 8600
CH1 I_DAC = 2524
CH2 I_DAC = 2495
CH1 I_MON = 742
CH2 I_MON = 704
CH1 I_MON_DAC = 1292
CH2 I_MON_DAC = 1273
AUX TEMP = 403
CH1 TEMP = 461
CH2 TEMP = 447
MAIN_LOOP_DURATION = 287 1092 2188 / 287 1090 2218 / 30 10107278
ADC_COUNTER = 926 / 9210 / 240243
Dynamic ram used: 684
Program static ram used 33908
Stack ram used 4360
My guess at free mem: 59352
SD volume is FAT 32
SD card begin result: 1
SD fs begin result: 1
SD blocks per cluster: 64
SD cluster count: 243584
SD fat start block: 12576
SD fat count: 2
SD blocks per fat: 1904
SD root dir start: 2
SD data start block: 16384
SD card size: 7990 MB
SD flash erase size: 128 blocks
SD erase single block


 

Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1005 on: June 19, 2018, 09:46:20 am »
... or something happened during the re-assembly.

Yeah, that's the tough one to debug remotely :). Try to establish serial communication (e.g. using EEZ Studio or any serial console) and check out what error is reported when PSU goes into stand-by.

Offline s8548a

  • Regular Contributor
  • *
  • Posts: 116
  • Country: in
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1006 on: June 19, 2018, 10:11:28 am »
Connected the PSU via serial from the Arduino port directly ( back panel port was not working, shorted the SPD and SPU pins of IC17 to GND still not working)


**TRACE [2018-06-19 15:40:15]: Profile 0 saved!
06/19/2018 3:37:46 PM
**TRACE [2018-06-19 15:40:18]: Profile 0 saved!
**TRACE [2018-06-19 15:40:18]: PWR_DIRECT -> LOW
 

Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1007 on: June 19, 2018, 10:15:58 am »
Doesn't help a lot. Nothing faulty is reported then that PSU is going into stand-by. That's happen when you reach 40 V or when you works with OCP and low voltage?

Offline s8548a

  • Regular Contributor
  • *
  • Posts: 116
  • Country: in
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1008 on: June 19, 2018, 10:24:49 am »
with OCP and low voltage, for eg: I cant switch ON the channel with 5V and 8mA set. if set 9mA and above can switch ON with upto 39.99V
 

Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1009 on: June 19, 2018, 10:37:50 am »
Ok, does your current is calibrated, more or less accurately? For example if OCP is active and channel is uncalibrated the firmware could read without load current of mentioned 9 mA and will trip the OCP and if you set "Shutdown when protection tripped" (see below) then PSU will goes to stand-by.


Offline s8548a

  • Regular Contributor
  • *
  • Posts: 116
  • Country: in
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1010 on: June 19, 2018, 12:32:00 pm »
Yes it is enabled.

I will disable it until a precise calibration done again.

Thank you very much for your patience and your precious time. :-+
 

Offline iainwhite

  • Supporter
  • ****
  • Posts: 317
  • Country: us
  • Measure twice...
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1011 on: June 20, 2018, 09:31:43 pm »
I installed firmware 1.1.1 onto my psu and also downloaded EEZstudio to try.   
I was able to connect via USB and do some basic logging to the SD card.
It all seems to work very well.

Thanks for the updates.
 
The following users thanked this post: prasimix

Offline Pjoms

  • Regular Contributor
  • *
  • Posts: 51
  • Country: se
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1012 on: July 15, 2018, 02:00:34 pm »
The SD-card issue is a quite interesting behaviour.
I have the crowd campaign unit and have never got any error from the SD-card, but yesterday then I started the pdu I got SD-card error every single time.
Updating fw fixed it, but what is different now that suddenly makes that problem to appear?
 

Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1013 on: July 15, 2018, 03:03:35 pm »
You'd like to say that from yesterday you started to receive SD card errors with old firmware (i.e. that what was originally delivered) or v1.1?

Offline Pjoms

  • Regular Contributor
  • *
  • Posts: 51
  • Country: se
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1014 on: July 15, 2018, 03:30:46 pm »
I have updated fw every time you have released something new. The version I had then the SD card error occurred yesterday was v1.1 and installed in June.
 

Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1015 on: July 15, 2018, 03:34:03 pm »
Hm, yes that is strange or perhaps not since we are decided to switch to different SD Card lib due to some other issue with first one. We found that with new lib (introduced with v1.1) SPI speed has to be lower and that is implemented in hot-fix release v1.1.1.

Offline s8548a

  • Regular Contributor
  • *
  • Posts: 116
  • Country: in
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1016 on: July 16, 2018, 08:21:14 am »
On FW V1.1.1, last week I have got SD card failure when PSU faced mechanical shock while moving it.

re-assembling the front panel solved it.
 

Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1017 on: July 16, 2018, 08:27:01 am »
Yeah, that SD card socket that comes with TFT LCD is far for optimal. In next version (it such thing is happen) I'll use a separate push-push type of socket/connector that hold SD card much better and is more resilient to mechanical shock.

Offline chenguoping

  • Newbie
  • Posts: 2
  • Country: cn
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1018 on: July 17, 2018, 07:56:21 am »
Hi prasimix,
I am interesting the software of PSU, does there has any doc to introduce the design procedure or detail. thx.

best regards.
 
 

Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1019 on: July 17, 2018, 08:04:08 am »
Everything is open source, hosted on GitHub. Short intro about architecture can be found in readme.md or here (pages generated by Doxygen). Reference manual about SCPI is available in web, .odt and .pdf format.

Offline denco

  • Newbie
  • Posts: 1
  • Country: nl
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1020 on: July 19, 2018, 10:13:10 pm »
Hello prasimix,

First of all thanks for all the hard work you put into this awesome project.
I am going to build a EEZ H24005 and I had a question based on the modification on the SD card mentioned by morris6.
Well, in my build it also is not easy to change the SD card, you would need to disassemble the whole front panel. That is why I put an SD card socket, a push push type, on a piece of board and placed this on a bracket beneath the Arduino shield. It is (wire wrap) wired direct to the signals on the LCD1 connector. Gnd and +3v3 from C140 and C105, shield wire to Earth connector.
I saw that there is an optional (not assembled) micro SD card on the bottom of the Arduino shield board which is also connected through SPI to the Arduino, just like the SD card on display.
Would it be possible to replace this micro SD card by a right angled 6 or 8 pins header to connect to a separate PCB with a push push (micro) SD card socket, like the one morris6 used?
 

Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1021 on: July 20, 2018, 05:52:26 am »
It should be possible. Perhaps if you can find some ready made SD Card adapter on eBay or similar shops then you can replace existing micro SD card socket and put on that place a header with pinout that match such adapter.

EDIT: if you are not going to use SD card on the TFT you can also bring to that header LCDSD_CS instead of EXTSD_CS used for micro SD card. If not, that can be define in firmware.
« Last Edit: July 20, 2018, 05:57:11 am by prasimix »
 

Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Web simulator!
« Reply #1022 on: August 03, 2018, 04:32:59 pm »
Just as an exercise of working with Emscripten, we made possible to run EEZ H24005 simulation on the web, i.e. you don't need to install prepared Windows or build/run Linux/Mac simulator version anymore :). You can find it on the the following address: https://www.envox.hr/eez-psu-simulator. SCPI console is also included.


Offline prasimixTopic starter

  • Supporter
  • ****
  • Posts: 2022
  • Country: hr
    • EEZ
Re: Web simulator!
« Reply #1023 on: August 03, 2018, 05:22:00 pm »
A small hint: to connect/disconnect load simply click on "resistor" image. When enabled/connected you can change its value by click and drag over resistor image or you can use SCPI command: SIMU:LOAD, for example to set on the current channel load of 4.7 Ohm enter: SIMU:LOAD 4.7.

Offline Pjoms

  • Regular Contributor
  • *
  • Posts: 51
  • Country: se
Re: DIY SCPI programmable dual channel bench PSU 0-50V/3A (now EEZ H24005)
« Reply #1024 on: August 05, 2018, 09:49:38 am »
I just run into a case there I need a small AC supply to test a device.
Would it be possible to make an “AC-mode” there a predefined list is doing the half wave for each channel. The channels are external serial coupled to make a midpoint reference. 
If it’s possible to calculate the list in the firmware just by typing in AC voltage and frequency that would be great, but some predefined voltages at 50 and 60Hz should possible cover many cases.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf