Comments (3)
You need to power the arduino from the battery that you are charging. That's how it gets it's reference voltages, and sets the PWM. It's also possible the IR2104 is faulty.
from arduino-mppt.
I discovered that I made a dumb mistake haha. The IR2104 chips I have, had a circular indention on the underside in one of the bottom corners that I mistook for being the pin 1 indicator. The actual indicator was printed on the top, on the opposite corner, so I had the chip connected backwards which likely contributed to my mosfet going up in smoke.
Also this time I powered my arduino off the battery as you explained. Even though 12v is recommended, I learned that they could potentially handle up to 20v if the voltage regulator isn't being drawn from too heavily. I was concerned that the lead acid battery when charged could possibly reach 14-15 volts at its highest but it seems that this isn't a problem.
I put together a stripped down version of this circuit on a breadboard for testing ir2104's, it just uses an led for the load instead of running an inductor coil. I made some test code and everything worked perfectly. The led changes brightness accordingly as I modify the pwm values through 75-245, making sure to disable the driver during changes.
I also educated myself a bit more about ir2104 half bridges, it seems its fine not immediately having pwm from the arduino when power is first received, which makes more sense than what I speculated about it starting up the pwm my first post. I later tested this by powering it without the arduino connected and nothing melted.
I appreciate you pointing me in the right direction, thank you for your help!
from arduino-mppt.
from arduino-mppt.
Related Issues (5)
- Inductor HOT 3
- Output voltage HOT 2
- License Question HOT 1
- Functionnal error in PWM adjustment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-mppt.