Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:31 07 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : uM2(+): Constant Current/Voltage PSU

     Page 3 of 5    
Author Message
centrex

Guru

Joined: 13/11/2011
Location: Australia
Posts: 320
Posted: 11:01am 14 Apr 2016
Copy link to clipboard 
Print this post

I have one PCB left if anyone wants it pm me, $5ea plus postage.
Cliff

edit

All the boards have now been spoken for.
Thanks
Cliff

Thanks Peter for the setup info much appreciated.Edited by centrex 2016-04-16
Cliff
 
Emady
Newbie

Joined: 02/02/2016
Location: United Kingdom
Posts: 23
Posted: 07:40am 15 Apr 2016
Copy link to clipboard 
Print this post

  Quote  My concept was to use an old laptop power brick - this would give an output range of around 0-15v. The main limitation is cooling the LT3080. Calculate the heat output for your worst case scenario (1V @ 1AMP off 24V supply = 23W!!!) and size the heatsink accordingly. 1W/degC is about as big as you can use without the die to case conductivity of the LT3080 being the limiting issue.


Thanks for the reply, so would the input voltage have an effect on the output voltage then? If not then I would probably use a 9V supply which should limit the heat output to less than 10W or am I talking nonsense...
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10218
Posted: 07:46am 15 Apr 2016
Copy link to clipboard 
Print this post

  Quote  Thanks for the reply, so would the input voltage have an effect on the output voltage then? If not then I would probably use a 9V supply which should limit the heat output to less than 10W or am I talking nonsense...


Totally depends on the output voltage you want. The maximum will be 3V or so below the input voltage. If you don't need an output >6V then 9V is fine
 
plover

Guru

Joined: 18/04/2013
Location: Australia
Posts: 306
Posted: 02:04am 16 Apr 2016
Copy link to clipboard 
Print this post

I now have 2 pcbs in my hands, and various other main components in the mail. I think I have obtained Schematic and layout information needed as well.

I will have to get displays on order and find that there are a number which to me looks the same.

With driver IC ILI 9341, is the following a safe bet?

http://www.ebay.com/itm/2-8-Inch-240x320-Serial-SPI-TFT-Screen-LCD-PCB-Board-Driver-IC-ILI9341-For-5110-/181625077737

2.8"Inch 240x320 Serial SPI TFT Screen LCD+PCB Board Driver IC ILI9341 For 5110
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2949
Posted: 12:50pm 16 Apr 2016
Copy link to clipboard 
Print this post

Hi Plover,

Hopefully your chips arrive soon, they were posted last week (OK .... LATE last week)..

That display doesn't look like it has a touch screen fitted...

This one looks to be the unit you need..

SPI Touch Panel


Regards,

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
plover

Guru

Joined: 18/04/2013
Location: Australia
Posts: 306
Posted: 03:27am 17 Apr 2016
Copy link to clipboard 
Print this post

bigmik
Thanks, my lucky day placing the post, I think my sixth sense helped me. Havfing no experience with these screens I have no idea what to look for. Nice little uplifting bit to have been saved from getting it wrong.

I unexpectedly got stuck all Sunday in trying to debug my Android Phone. I had told my wife any phone could play mp3 files, then to find I could not get my android phone to do that, was loss of face.

I got rather intrigued because on a simple Telstra phone for my neighbour, non android of course, I took the SD card out and put 8GB of songs on it and it is now pensioned off as mp3 player.

Tried the same trick on Android and the fun began. Edited by plover 2016-04-18
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10218
Posted: 10:15pm 18 Apr 2016
Copy link to clipboard 
Print this post

ERRATA

I've just built up the complete PCB by moving the components from my prototype.
There is one silkscreen error. The resistor shown in the picture is marked as 10K but should be 18K





Other than that the board works perfectly. Note R25 and R47 should be 100K as per the schematic. For some reason the value didn't make it to the silkscreen.
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 11:15pm 18 Apr 2016
Copy link to clipboard 
Print this post

Can you look which package of the LM334Z you have, they seem to come in many varieties. Want to be sure i order the right one (which follows the pcb layout).

Microblocks. Build with logic.
 
centrex

Guru

Joined: 13/11/2011
Location: Australia
Posts: 320
Posted: 11:53pm 18 Apr 2016
Copy link to clipboard 
Print this post

Hi Peter
How critical is the resistor I have built the board with the components as marked, difficult to remove components from plated through holes.
Just wondering is this the board I sent you.
Regards
Cliff.
Cliff
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10218
Posted: 02:31am 19 Apr 2016
Copy link to clipboard 
Print this post

  Quote  Can you look which package of the LM334Z


This one

  Quote  How critical is the resistor I have built the board with the components as marked


Critical I'm afraid - this resistor sets the opamp gain. To remove just heat one pad with the soldering iron and then pull that end of the resistor with a finger nail. Then hold the resistor and heat the other pad to remove. To clear the holes heat with the soldering iron on one side of the board and then with your mouth close to the other side of the board (but not too close ) blow hard as you remove the soldering iron - this will leave the hole clear for re-use.

Bug in code

There is a line missing in the initialisation

DriveAmps=SetAmps-LowAmpAdjust


should appear just after VAR RESTORE e.g.

VIN=pin(VIN_ADC)*VIN_CAL+diode 'get input voltage for first output voltage validation
VAR RESTORE 'restore voltage and current set values if previously set
DriveAmps=SetAmps-LowAmpAdjust
if SetVolts > VIN-dropout then SetVolts=VIN-dropout ' ensure set voltage is valid
'
' Main program
'


Without this the power supply won't generate output after powering on until after the current is explicitly set by the user

Here is my board up and running - thanks Cliff



Edited by matherp 2016-04-20
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 08:46am 19 Apr 2016
Copy link to clipboard 
Print this post

@Matherp,

I am busy with laying out a small pcb. I like to mostly use SMD parts.
Looking at the resistors i noticed that many of them will not have much current going through them and it would be possible to use a 0.1w smd versions.
Higher wattage is difficult to source.

Could you help me out and specify which resistors would absolutely need to be 0.25w.

The 1 Ohm current sense resistors i already have 1W versions and also for the backlight i am using a 0.5w. I am just wondering which of the rest that are currently 0.25w could be substituted with a 0.1w.

I am also going to use it up to maximum 16v/1A output using a 19v input, if that will make a difference.

Would that be a 27 Ohm resistor as the load?
Maybe a nice add on feature to measure resistance, with a low enough current set it would be save to do.

This is my progress so far (50x50mm)


Edited by MicroBlocks 2016-04-20
Microblocks. Build with logic.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10218
Posted: 09:21pm 19 Apr 2016
Copy link to clipboard 
Print this post

  Quote  Could you help me out and specify which resistors would absolutely need to be 0.25w.


0.1W is probably fine for all the others except perhaps the 10 ohm resistor feeding AVDD. You would have to look up requirements for AVDD in the Microchip datasheet

  Quote  Would that be a 27 Ohm resistor as the load?


Yes

  Quote  Maybe a nice add on feature to measure resistance, with a low enough current set it would be save to do.


That is doable, you could also display power. I'll leave it up to all you good folk to add features to the Basic code as you wish
 
centrex

Guru

Joined: 13/11/2011
Location: Australia
Posts: 320
Posted: 11:04pm 19 Apr 2016
Copy link to clipboard 
Print this post

Hi Peter
Would you be able to update the schematic and the Gerber's for the power supply to the current detail.
My board is working quite well although I have to go through the full calibration, job for the weekend.

Cliff
Cliff
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10218
Posted: 09:49pm 20 Apr 2016
Copy link to clipboard 
Print this post

These should now be consistent. There are no wiring changes just value/labelling.

I have however also added an extra hole for each of the electrolytic caps so you can now use a 5mm lead-spacing device or a 2.5mm

2016-04-21_074855_PSuM2V11.zip
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2949
Posted: 10:30pm 24 Apr 2016
Copy link to clipboard 
Print this post

Hi All,

I just bought one of These Cases and I think it would make a decent case for the PSU. You probably could mount the Laptop charger inside as well.

Kind Regards,

Mick
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
centrex

Guru

Joined: 13/11/2011
Location: Australia
Posts: 320
Posted: 06:03pm 29 Apr 2016
Copy link to clipboard 
Print this post

I have the power supply running and calibrated as best I can.




I have noticed a couple of things.......
There appears to be a residual voltage and current shown on the display and it also appears across the 10 ohm load measured with a multimeter this is with the unit "OFF".

Also if I turn off the supply to the unit, when I turn the supply back on I have to reset the current section otherwise it goes direct to the current limit mode.

Perhaps this is normal, maybe Peter can give an answer.

Other than the above it works very well I am most pleased.

Cliff
Cliff
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10218
Posted: 08:59pm 29 Apr 2016
Copy link to clipboard 
Print this post

  Quote  I have noticed a couple of things.......
There appears to be a residual voltage and current shown on the display and it also appears across the 10 ohm load measured with a multimeter this is with the unit "OFF".


PWM is switched off when in this mode so it must be that the 0V output of the uP is very slightly above GND. If you are worried about it I can only suggest putting a relay in-line with the output and switching it with a spare uP pin driving a NPN transistor.

  Quote  Also if I turn off the supply to the unit, when I turn the supply back on I have to reset the current section otherwise it goes direct to the current limit mode.


This is the bug I posted a fix to in the second post of page 5 of the thread
 
centrex

Guru

Joined: 13/11/2011
Location: Australia
Posts: 320
Posted: 09:43pm 29 Apr 2016
Copy link to clipboard 
Print this post

Thanks Peter, it such a low amount it does not worry me just for interest.

I will double check that I have the required change to the program.

Thanks it is a great device.
Cliff
 
centrex

Guru

Joined: 13/11/2011
Location: Australia
Posts: 320
Posted: 10:51pm 29 Apr 2016
Copy link to clipboard 
Print this post

All fixed thanks Peter that will teach me to read all the posts.
Cliff
 
Spacedementia87
Newbie

Joined: 03/08/2016
Location: United Kingdom
Posts: 26
Posted: 12:27pm 03 Aug 2016
Copy link to clipboard 
Print this post

Hello,

Thanks for this. It looks great and I am just working my way around the schematics ensuring I understand it before breadboarding it up.

I will start by breadboarding the PS circuit without the screen or microcontroller to check it all works!

Couple of Q's though.

1. There are a few capacitors and diodes without values. Does the value not matter in these cases? Seems odd. Should I have 0.1 nF or 12,000uF?

2. Would an ATmega chip work as a replacement for the micromite? I already have an act programmer etc... Setting up be be able to program a micromite is quite a bit more up front.

Thanks for all the good work!
 
     Page 3 of 5    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025