Few years ago, we built a reverse-polarised electrolyser. It was one of our earliest projects in electrochemistry in which we only had basic knowledge of electrochemistry and programming. Hardware design? little to none but we tried it anyway.
We used H-bridge to control the polarity of the electrode. In order to switch it on/off the gate, we used transistors and control them using pulse-width modulation (PWM) whose duty cycle is programmable from microcontroller. By using this approach, we can
(H-Bridge)
For transistor selection, we could either used bipolar junction transistor (BJT) or metal oxide semiconductor field effect transistor (MOSFET). They differ in how we control them. BJT is current-controlled and MOSFET, on the other hand, is voltage-controlled.
Our Learning Experiences
At the time, we used BJT as switches because we thought that the current generated would not be too high. When we tested the circuit, the voltage measured wasn't the one we expected. Furthermore, when we controlled the fan using similar approach, the fan didn't spin as we expect it would. We should have used MOSFET instead of BJT.
We were concerned about the need of higher voltage to drive the MOSFET at that time, therefore we chose BJT. BJT setup was a little bit complicated as we had to consider the resistor values to set the current. We could have used MOSFET to drive the switch. When the MOSFET isn't a logic-level type, we can add BJT to drive the the MOSFET switch. The design now becomes more a little bit more complicated, but if it works? it works.
Another thing is that we used ESP8266 as a microcontroller. We used RTOS SDK as our development project. It was overkill considering the size of our project. However, from that we learn about programming embedded devices in deeper lower level. At the time, controlling 2 pins at the same time felt impossible on arduino framework (until we learned about register logic). As we used 2 pins to control the bridge, we wanted to control them simultaneously, not one at a time. It was possible to do it with the ESP SDK which made the reason why we used it. The bright side is that, our programming skill improved quite well.
The project might have failed to deliver but looking back on how far we've learned, it was worth it. However, we cannot be complacent with where we are now. There are many things we can still achieve.

No comments:
Post a Comment