Write arduino code
A0 detective voltage from input in the above circuit
A1 detective voltage from output in the above circuit
A2 detective voltage from battery
10 of arduino give pwm to Q1
4 of arduino give 5v to relay to control it on or off
On the top is a boost converter, the input will fluctuate from 0 to 6V. Now i set 5V. Arduino control the pwm so that the voltmeter A( in picture) should show 12V. The principle is to control the duty cycle
A2 detective voltage from battery , if the voltage higher than 13V or lower than 10V, arduoino will close the battery to charge led . The detail way:1 the pwm from arduino/tlp250 to control the output voltage in the top circuit is o voltage. 2: arduino give 5 voltage to relay(5V voltage it will close) , the relay is off.
A0, A1, A2, duty cycle value should show on virtual terminal
The code should make the simulation can run correctly ,pls remember or , i wont pay ..---------------------------------------------
I dont ask u to do next, if can do the former mission ,i will pay more to do next
Brightness and pwm-led is to control the brightness of led
i have complete relative skills about this program and i can serve you with full of my capabilities and it will be pleasure for e to serve you i have recently done a stm project and arduino project as well