AtomSoft
Well-Known Member
Anyone else use MATLAB here. Im just getting into it and found it very usefull for even small things like scripts for calculations:
This is my script to calculate a AMS1117 :
VOUT
Power Dissipation
Heat in Celsius
Just change some normal values and it will do all the work! I like this
Code:
%-- AtomSoftTech MATLAB AMS1117 ADJ Calc --%
Vin = 5; %-- Voltage --%
Vref = 1.25; %-- Refrence Voltage from Datasheet --%
Iout = 0.5; %-- Current Out --%
R1 = 220; %-- Resistor 1 --%
R2 = 370; %-- Resistor 2 --%
Iadj = 0.00005; %-- IADJ from datasheet --%
Vout = Vref*(1+R2/R1)+Iadj*R2 %-- Calculate VOUT --%
PowerDis = (Vin-Vout)*(Iout) %-- Calculate POWER DISSIPATION --%
HeatCelcius = 45 * PowerDis %-- Calculate Heat in Celsius--%
This is my script to calculate a AMS1117 :
VOUT
Power Dissipation
Heat in Celsius
Just change some normal values and it will do all the work! I like this