Hi,
First off, apologies if this is being posted in the wrong place. Happy to delete and re-post if required.
Basically I'm very new to electronics and been playing with a design to control fairy lights using a few h-bridges and a ESP8266. This project is purely educational / fun to play with during lock down. Not for other people, or to sell, just something for me to play around with and teach myself as I go.
So the idea behind it is you connect up to 5 sets of xmas lights (just fairy lights) they each have a LM317 and a variable resistor so you can adjust the voltage to suit that set of lights (I'm sure this would be better using a buck converter, but this was cheaper and xmas lights are very low amp) this then goes to a h-bridge which controls which strand of lights are on (they reverse polarity to swap colours illuminated) these h-bridges are controlled by a ESP8266. I could use it to make sure strands stay in sync, or make patterns across different strings, or anything I wanted really.
I tested all this on a breadboard and things generally worked fine, thought I'd put it on a PCB and now things aren't working correctly (it's worth noting I've had to use different parts so I could have SMD components). I've attached the EASY EDA design that I used. I did realise AFTER the fact that each h-bridge should have had ISEN connected directly to ground, I have since hard wired this.
So the problem I'm having is for starters the variable resistor seems to be having no effect on the voltage really. I get a small voltage drop on the output from the LM317 (36v goes in 30v comes out) but not mater my adjustment the voltage stays the same. I'm not ENTIRELY fussed about this, I could just make sure all the string I use are the same voltage but this could be a factor as to what my main problem is which is I'm getting a random voltage drop when I enable the h-bridge. So if I enable either input on the first h-bridge the output is only 17V, I checked and the output from the LM317 has actually dropped to 17V as well (this value also isn't affected by the variable resistor). So enabling the bridge is affecting the voltage BEFORE it actually goes into the bridge. This also makes the voltage go UP on the bridges which aren't enabled, they all go up to 33V which is appears to be where the extra voltage goes to causing the drop on bridge 1.
I'm unsure what the h-bridge being enabled would cause this but I'm guessing I need to separate them all somehow to prevent this happening (in my breadboard tests I will admit I used a l298n so even though there was different channels it was still all one input into the bridge. So that's one mistake I'll learn from for next time! )
Any advice on how to work around this would be greatly appreciated. Even if you can point me in the right direction of what to research would be great, as I said this is a learning project.
Some notes about my schematics, P1 - P5 are where the xmas lights are plugged in. P6 and P7 are female headers on the PCB that I plug the ESP into.
Here is a link to the data sheet for the hbridge used as well
https://datasheet.lcsc.com/lcsc/1809050151_Texas-Instruments-DRV8870DDAR_C86590.pdf
Thanks in advance!
Stevil
First off, apologies if this is being posted in the wrong place. Happy to delete and re-post if required.
Basically I'm very new to electronics and been playing with a design to control fairy lights using a few h-bridges and a ESP8266. This project is purely educational / fun to play with during lock down. Not for other people, or to sell, just something for me to play around with and teach myself as I go.
So the idea behind it is you connect up to 5 sets of xmas lights (just fairy lights) they each have a LM317 and a variable resistor so you can adjust the voltage to suit that set of lights (I'm sure this would be better using a buck converter, but this was cheaper and xmas lights are very low amp) this then goes to a h-bridge which controls which strand of lights are on (they reverse polarity to swap colours illuminated) these h-bridges are controlled by a ESP8266. I could use it to make sure strands stay in sync, or make patterns across different strings, or anything I wanted really.
I tested all this on a breadboard and things generally worked fine, thought I'd put it on a PCB and now things aren't working correctly (it's worth noting I've had to use different parts so I could have SMD components). I've attached the EASY EDA design that I used. I did realise AFTER the fact that each h-bridge should have had ISEN connected directly to ground, I have since hard wired this.
So the problem I'm having is for starters the variable resistor seems to be having no effect on the voltage really. I get a small voltage drop on the output from the LM317 (36v goes in 30v comes out) but not mater my adjustment the voltage stays the same. I'm not ENTIRELY fussed about this, I could just make sure all the string I use are the same voltage but this could be a factor as to what my main problem is which is I'm getting a random voltage drop when I enable the h-bridge. So if I enable either input on the first h-bridge the output is only 17V, I checked and the output from the LM317 has actually dropped to 17V as well (this value also isn't affected by the variable resistor). So enabling the bridge is affecting the voltage BEFORE it actually goes into the bridge. This also makes the voltage go UP on the bridges which aren't enabled, they all go up to 33V which is appears to be where the extra voltage goes to causing the drop on bridge 1.
I'm unsure what the h-bridge being enabled would cause this but I'm guessing I need to separate them all somehow to prevent this happening (in my breadboard tests I will admit I used a l298n so even though there was different channels it was still all one input into the bridge. So that's one mistake I'll learn from for next time! )
Any advice on how to work around this would be greatly appreciated. Even if you can point me in the right direction of what to research would be great, as I said this is a learning project.
Some notes about my schematics, P1 - P5 are where the xmas lights are plugged in. P6 and P7 are female headers on the PCB that I plug the ESP into.
Here is a link to the data sheet for the hbridge used as well
https://datasheet.lcsc.com/lcsc/1809050151_Texas-Instruments-DRV8870DDAR_C86590.pdf
Thanks in advance!
Stevil
Attachments
-
96.9 KB Views: 11