Most benchtop/lab power supplies use rotary encoders and push buttons for its user interface. I wanted to replace all those mechanical inputs with Infineon CapSense based touch interface. This makes the power supply liquid splash proof, dust resistant and sleek looking. It is also portable and can be powered from lipo battery pack.
Features- 5 Button HMI for voltage, current limit, output adjustment
- Input/output voltage and load current monitor OLED display
- Current limiting trip feature for safety with latch relay
- One tap output voltage enable/disable
- Voltage adjustment control with digital potentiometer
- Current measurement with hall effect sensor
- Working input voltage range 7-35 VDC from adapter/battery/solar
- Voltage stepping of 40mV
At the heart of this device is PSoC4 CY8C4245-483 ARM Cortex M0 microcontroller, which is performing following operations :
CapSensing for user Input
There are 5 CapSense touch button for user inputs to increase/decrease output voltage, set trip current limit, enabling/disabling output. These buttons work both in touch/tap and continuous touch/hold mode. Buttons are activates when the plastic overlay top of them are touched.
OLED Display
This 1306 I2C 128x32 pixel display will show output voltage, trip current, approximate load current information.
Measuring Voltage and Current
Output voltage is measured with resistive voltage divider and load current is measured with ACS 712 5A hall effect sensor which converts current info into analog voltage. Then PSoC internal 12 bit ADC is used to convert those analog voltage, with come calculations actual voltage and current information is retrieved.
Adjusting Output Voltage
The output voltage is adjusted according to the touch inputs from user, by sending increment/decrement command to a digital potentiometer chip over SPI interface.
This eliminates any mechanical/moving parts from the device making it more reliable for long term operation.
Output Drive and Over current Protection
Output voltage is enabled/disabled through a latching relay. Based
PSoC ConfigurationPin Mapping
CySch Setup
CapSense component configuration
ADC Configuration
SPI Configuration
I have used the following technique to program the PSoC 4 chip wirelessly :
PSoC 4 Wireless Programming (my other tutorial on PSoC 4 programming)
Potential Applications- Touch based DC Power-tools Speed Controller
- Touch controlled Adjustable Power Supply
- Step Voltage LED Brightness Control with Touch based HMI
- Testing electronics IC and components voltage range
This demo shows how capsense can replace mechanical knobs and switches from Lab/Benchtop power supplies than many universities/engineering farms use. The prototype I made here is not complete, the voltage range is limited, output is not continuous analog, current measurement is not accurate. More work needs to be done to turn this into a commercial solution to replace existing power supplies on the market. This idea just demonstrates the beginning of it
References
Comments