Digital Controlled Power Supply Project

32 views
Skip to first unread message

RobJ

unread,
May 16, 2020, 10:45:46 AM5/16/20
to jallib
Hi all,

For your information. I created a new project using JAL. It is a digital controlled linear power supply, posted on Instructables:

I hope it will help promoting JAL.

This project also resulted in a new JAL library since I used a Digital Potentiometer for which I created a library. There was already one library available for the Microchip mcp4131 but I used a x9c103 from Renasas. The library is currently available in the latest bee package.

Next to that I am thinking if I should create an library for non volatile storage using High Endurance Flash (HEF). You all know EEPROM for storage of non volatile data and for which there is a JAL library. In my power supply design I used a PIC16F1765 which does not have EEPROM storage but uses what Microchip calls High Endurance Flash which resides at the last part of the program memory in flash. Programming this flash is different than programming EEPROM but until now I did not hear of any request for a library to program HEF.

My upcoming project is a library for the TM1637 a popular chip to drive six 7-segment displays combined with a keyboard scanner for which a library was requested some time ago. I created the library but am waiting for the components to test it. Once tested it will be added to the bee package.

Kind regards,

Rob


v

unread,
May 17, 2020, 12:29:49 AM5/17/20
to jal...@googlegroups.com
Very nice Rob,
Your picture remember me the voltmeter/ammeters I have ordered in december 2019 and did not arrived yet, seems the pack is blocked in China.
In old boys memory, the linear is always better than any switching supply when talking about noise. However the newest switching supplies with spread spectrum seems to be used including in nowadays HIFI equipments. Anyway, those can not be compared with old days HiFi...:)
High endurance flash used as a EEPROM is a pain in the ass, I've tried once to use it but gave up.
good luck to your future projects!

--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/dd5c6c46-dbfd-480b-bb32-de9ea01bfa69%40googlegroups.com.

Rob CJ

unread,
May 17, 2020, 2:18:05 AM5/17/20
to jal...@googlegroups.com
Hi V,

Thanks. The Power Supply that I initially created had an analog voltmeter and analog ampèremeter since digital variants did not exist at that time 😉. I replaced them by the digital versions a few years ago.

I also had problems getting the High Endurance Flash up and running. The problem is that all examples that I saw did not work (or I did not understand them). Still there is still some strange issue with the start address so I had to add 1 to it before it worked.

So maybe I should look at the starting address issue and make a library out of that so that it can used just as easily as EEPROM.

Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens v <vsur...@gmail.com>
Verzonden: zondag 17 mei 2020 06:29
Aan: jal...@googlegroups.com <jal...@googlegroups.com>
Onderwerp: Re: [jallib] Digital Controlled Power Supply Project
 

Rob CJ

unread,
May 17, 2020, 5:22:39 AM5/17/20
to jal...@googlegroups.com
Hi V,

I started with a library called 'pic_data_hef' that will have the exact same interface as the current JAL library 'pic_data_eeprom' and I will make sample files and test it for the PIC16F1765, PIC16F1503 and PIC16F1455. 

For which PIC did you try to implement the High Endurance Flash programming? If I have the sample I can test it on that one too.

Thanks.

Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens Rob CJ <rob...@hotmail.com>
Verzonden: zondag 17 mei 2020 08:18

RobJ

unread,
May 23, 2020, 12:30:00 PM5/23/20
to jallib
Hi Vasile,

As mentioned on the Jallist group I made a library for storing non-volatile data in High Endurance Flash. The library follows the same interface as for EEPROM. In line with the EEPROM library 'pic_data_eeprom.jal' I called it 'pic_data_hef.jal'.

Initially it did not work correctly but that was caused by the fact that the datasheets are incorrect wrt to the descriptions on how to program it. Finally I got it working using the example given in an Application Note for programming HEF. 

There are also a few sample files uploaded. All should be available in the next bee-package that will be created tomorrow.

Kind regards,

Rob

To unsubscribe from this group and stop receiving emails from it, send an email to jallib+unsubscribe@googlegroups.com.

v

unread,
May 24, 2020, 11:00:35 AM5/24/20
to jal...@googlegroups.com
Nice job Rob!
It's nice to see "young and restless" jallians. :) Since 2000 or so... I've seen many enthusiastics !
It seems the other Rob (Hamerling) let the library on good hands.
I'm struggling these days to understood/modify the DDS libraries...

To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/6540d2cd-36fc-4b38-a7a5-db092c262d4e%40googlegroups.com.

Rob CJ

unread,
May 24, 2020, 11:17:04 AM5/24/20
to jal...@googlegroups.com
Hi Vasile,

Thanks.

I am surprised to see the libraries I really did not know we had like the dds library you mention.

If you can improve it or create a new one be my guest.

Kind regards,

Rob


Verzonden: zondag 24 mei 2020 17:00

Aan: jal...@googlegroups.com <jal...@googlegroups.com>
Onderwerp: Re: [jallib] Digital Controlled Power Supply Project
Reply all
Reply to author
Forward
0 new messages