AtomSoft Well-Known Member Aug 17, 2010 #1 Anyone else use MATLAB here. Im just getting into it and found it very usefull for even small things like scripts for calculations: 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
Anyone else use MATLAB here. Im just getting into it and found it very usefull for even small things like scripts for calculations: 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
aljamri Member Aug 17, 2010 #2 Along with all these, if you see its graphing ability and what Simulink can do, you will find it more useful.
Along with all these, if you see its graphing ability and what Simulink can do, you will find it more useful.
AtomSoft Well-Known Member Aug 18, 2010 #3 yeah, Im not going to lie i learned more digital electronics than analog. I need to learn analog and this matlab should be a huge help in that. I cant wait to get into the heavy stuff heh but i got to redo the basics heh
yeah, Im not going to lie i learned more digital electronics than analog. I need to learn analog and this matlab should be a huge help in that. I cant wait to get into the heavy stuff heh but i got to redo the basics heh
AtomSoft Well-Known Member Aug 18, 2010 #4 Here is a basic plot of watts to Celcius for the AS1117: Attachments untitled.png 3.8 KB · Views: 390