SDG

  Рет қаралды 20,658

SDG Electronics

SDG Electronics

9 жыл бұрын

Designing a CC LED driver - Following on from Part 1, I design some code for a Microchip dsPIC33FJ16GS502 microcontroller to user the high speed PWM module to drive a high power LED at a constant current.
Equipment used:
Rigol MSO1074Z oscilloscope
GW Instek GPS-3303 Power Supply
MPLAB REAL ICE
MPLAB X and XC16 C Compiler #ElectronicsCreators

Пікірлер: 35
@sidyajv
@sidyajv 3 жыл бұрын
This channel is so underrated.
@SmallFlockers
@SmallFlockers 7 жыл бұрын
Well done! I love your bravery of allowing us to fully witness the debugging you went through, including all of the small, silly errors we all make. That helps all of us, especially newbies on what to expect. It would help setting up youtube as a video series so we can advance automatically through each video for a particular project.
@ajithpinninti8845
@ajithpinninti8845 10 ай бұрын
You are amazing, Thanks for all the process you went through to create one..
@peterdkay
@peterdkay 9 жыл бұрын
Excellent video. I love how you show the debug process warts and all. Keep it up I really enjoy your presentations
@sdgelectronics
@sdgelectronics 9 жыл бұрын
Peter Kay Thank you. I like to show problems as well as it may help someone in the future.
@DarianCabot
@DarianCabot 9 жыл бұрын
Excellent video. I'm really glad that I found your channel. Thanks
@sdgelectronics
@sdgelectronics 9 жыл бұрын
Darian Cabot Thanks Darian
@Alex-yq2tf
@Alex-yq2tf 6 жыл бұрын
Any more video updates on the CC LED Driver PCB and assembly? Such a great video series!!
@dixsusu
@dixsusu 5 жыл бұрын
That's just great mate !
@robertcalkjr.8325
@robertcalkjr.8325 9 жыл бұрын
Thanks Steve.
@srinivasansg
@srinivasansg 6 жыл бұрын
Thanks for sharing your knowledge.
@AmirHakimiRezaei
@AmirHakimiRezaei 9 жыл бұрын
Thank you for the tutorial
@MalcolmCrabbe
@MalcolmCrabbe 9 жыл бұрын
Just subscribed - I skipped through some of the video as the pace didn't hold my short attention span, but loved the bit where you had issues when getting the thing running, only to find you had selected the wrong chip - most would of edited that out, but in reality it shows just how things tend to happen, and how easy it is to make mistakes - well done for showing the process. I cheated with my DIY build for my aquarium lighting unit, I used commercial meanwell LDD drivers, but built a programmable dimmer controller using a PCA9685 chip driven by a PIC micro ? Looking forward to watching your channel expand - keep up the good work
@sdgelectronics
@sdgelectronics 9 жыл бұрын
Malcolm Crabbe Thanks Malcolm. At the time I was unsure what to put in the video and what to leave out, but I think I'm starting to find a balance now. You should find future videos a bit faster paced without all of the steps.
@haimt
@haimt 9 жыл бұрын
Very good job ;-) I can't get the link between the efficiency in the liner regulator (13.75%) to the Duty Cycle at the SMPS ,please could you explain!
@geo0rpo
@geo0rpo 7 жыл бұрын
Great Job, Great video! Please tell me, why do you use Fault 2 in CLSRC of FCLCON register? You are using comparator 1 so you should use Fault 1 as the source. Am I wrong? I missed your 3rd video with the dimming. Is it up yet? Thanks!
@sdgelectronics
@sdgelectronics 7 жыл бұрын
geo0rpo sorry I plan to revisit this soon with part 3 - just moved house. You can remap the fault bits to different pins so it was convenient for layout.
@GlennPierce
@GlennPierce 9 жыл бұрын
Thanks for the video. Most informative. Can I ask what would be the advantages of this over a LED driver chip like the PT4115 ?
@sdgelectronics
@sdgelectronics 9 жыл бұрын
Glenn Pierce Good question, and something that will become clear in future videos - this controller is forming the basis of a connected lighting system in my home using Microchip MRF24J40 RF transceivers meaning the dsPIC will be performing many more tasks than just doing the constant current control. I will also expand the controller for 4 channels per device, allowing for RGB and White LED or just 4 individual controls of white LEDs.
@GlennPierce
@GlennPierce 9 жыл бұрын
SDG Electronics Sounds cool. Thanks
@Maher-
@Maher- 7 жыл бұрын
Hi, I'm trying to control 405nm 3W uv led x30pcs using an led driver, How to control that driver using arduino / ramps 1.4? Hope you can help me, thank you
@busterzz
@busterzz 7 жыл бұрын
This is like a peak current control, are we controlling the switch current? What if we control the average inductor current directly by placing the sense resistor in series with the inductor?
@sdgelectronics
@sdgelectronics 7 жыл бұрын
You can monitor the inductor current and control that but the voltage at that node with respect to ground varies, so you will need an instrumentation amplifier with good common mode voltage rejection.
@dwDragon88
@dwDragon88 9 жыл бұрын
Any particular reason you like the dsPICs? They looks like really good feature-filled devices, but I've never played with that series.
@sdgelectronics
@sdgelectronics 9 жыл бұрын
dwDragon88 The use of the dsPIC in this application is purely down to the feature set - these particular devices are designed for SMPSU applications, and in a later video we'll be using 4 independant channels to drive an RGB plus white LED.
@kamleshchavan7451
@kamleshchavan7451 3 жыл бұрын
Can't see the circuit diagram clearly
@fasayakoulouna8987
@fasayakoulouna8987 2 жыл бұрын
Thank you from Algeria.can you please send me a copy of the file named i your video 42oscillator.pdf?thank you.
@BenjaminEsposti
@BenjaminEsposti 9 жыл бұрын
What happens if the chip locks up, when the FET is on? Dun-dun-dun!
@mrlazda
@mrlazda 8 жыл бұрын
+Benjamin “Ozias” Esposti This is just simplified example which demonstrate concept, it is not something you will use as final product. Watchdog timer will not help in this case, it have to long timeout to help in most cases (all that can realise blue smoke will do that before WDT reached its timeout). In final product you should find better solution to deal with chip locks up, and better way to drive FET (driving FEST directly from microcontroller/DSP will give poor efficiency, usually SMPS controllers that work on 500 kHz have fet drivers capable providing >1A of peak drive current to be able to fast rise and fall times and pin on microcontroller is capable of 25 mA).
@desertdave
@desertdave 9 жыл бұрын
Hi, Very nice explanation of the software development, gives an idea of how register values have been decided upon without getting too technical and the overall results were great considering the prototype methods employed, I have my dsPIC33's on order already !, I have added many SM inductors to the shop now and will be offering this dsPIC once they arrive, I am not sure how I can do it but maybe we can set up something where your channel subscribers get free postage or something like that, I located you via a link in MJL channel and with him being outside the UK I have supported him by purchasing from his suppliers before and I love Dave Jones EEVBlog but I do want to support new UK electronics channels via the BasicMicroUK shop, we have so many items now in stock please do call even if you do not see what items you want in our shop, How do you find time to do these projects ?, What do you do for a day job and is it connected to the electronics industry ?, Many Thanks Dave
@sdgelectronics
@sdgelectronics 9 жыл бұрын
david ellis Hi Dave, Sorry I missed your comment until now - I work full time at an engineering design consultancy developing medical and surgical electronics, so time for videos and projects is limited to the weekend. My wife and I are expecting our first child in a few months so I'll have to work harder to find time to record videos! Thanks for your support!
@desertdave
@desertdave 9 жыл бұрын
Wow a very busy life and going to be even more busy soon by the sounds of things, Sounds a very interesting day job, we do some work for Phillips Medical on power supplies for mammography scanners, its a system that's fitted in the mobile breast screening clinics you see set up out side doctors surgery's and community centres etc and our power supplies allow the whole system to run from a 240V single phase supply, Another 2 great repair videos, I am pleased you are still finding time to do videos for the public, you lab looks well equipped for a home lab set up, a video of the set up you have a t home and the test equipment your using would be great, what's your lab at work like ?, that may well also make an interesting video, Keep up the great work, Thanks Dave BasicMicroUK
@Blue.star1
@Blue.star1 3 жыл бұрын
Making a 50 volt linear driver is difficult, Wanna drive 50 watt, 1.75A , 36V cob from 48V ( should I use 12 X 4 Lead battery , its 7 AH , I want to use 1 extra battery instead of 3 batt @ 36V-39V , battery voltage is 12.5- 13.3 volts for a fully charged 12v lead batt , voltage drops after few hours, Is 48 V correct voltage selection ) , don't wanna use buck regulators, wanna use low resistance mosfet and 1 or 2 LDO V-reg for CC, CV (eg LM 2914, but its max V is 24V ) circuit operates at 48-55V battery . Don't want to use TIP127 ,Bjt due to heat issues, no buck converters , no pwm / inductors.
@sdgelectronics
@sdgelectronics 3 жыл бұрын
I have a video in a week or so to drive something similar. Stay tuned
@Blue.star1
@Blue.star1 3 жыл бұрын
@@sdgelectronics ty , I edited the comment for clarification.
SDG #020 Linear LED Constant Current Driver Circuits
36:24
SDG Electronics
Рет қаралды 19 М.
SDG #014 Designing a Constant Current DC-DC LED Driver - Part 1
22:58
SDG Electronics
Рет қаралды 55 М.
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 9 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 39 МЛН
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 9 МЛН
SDG #265 Easy Constant Current LED Driver with the AL5809
15:39
SDG Electronics
Рет қаралды 8 М.
Constant Current Source
17:23
Craig Hollinger
Рет қаралды 40 М.
Review: 1W 350mA LED Driver with the elusive 6200 Chip
8:48
Julian Ilett
Рет қаралды 45 М.
SDG #017 Benq LCD Monitor Teardown and Repair
34:32
SDG Electronics
Рет қаралды 87 М.
HACKED!: Adding a Current Limit Feature to a Buck/Boost Converter
9:10
DEC #09 Constant Current High power LED driver using LM317
9:43
Digital Electronics Circuits Lab
Рет қаралды 57 М.
SDG #325 Designing a WLED RGBW light with only one LED driver
23:38
SDG Electronics
Рет қаралды 4,4 М.
Easy DIY LED Driver
10:47
learnelectronics
Рет қаралды 68 М.
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 5 МЛН
НЕ БЕРУ APPLE VISION PRO!
0:37
ТЕСЛЕР
Рет қаралды 157 М.
Самый тонкий смартфон в мире!
0:55
Не шарю!
Рет қаралды 137 М.
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18