From: kyz Date: Wed, 6 Mar 2024 02:41:17 +0000 (+0800) Subject: AD5245修改为50K电阻 X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=463f36350af249b38d5dd32fce5dc1214341d0e7;p=yn%2Fweldingcontroller.git AD5245修改为50K电阻 --- diff --git a/user/user_proportionvalve.c b/user/user_proportionvalve.c index 9c102df..0a4a628 100644 --- a/user/user_proportionvalve.c +++ b/user/user_proportionvalve.c @@ -85,7 +85,7 @@ int32_t ad5245_set_res( uint32_t r_wb ) if( r_wb <= 100 ){ data = 0; }else{ - data = (r_wb -100)*256/(100*1000); + data = (r_wb -100)*256/(50*1000); } return ad5245_write( 0, data ); } @@ -96,7 +96,7 @@ void lt3092_set_current( float current ) //R_set = R_out //I_source = R_set/R_out * 10uA * 2 //R_out = 4.7 - //R_set = AD5245 (100-100K) + //R_set = AD5245 (100-50K) float R_out; uint32_t R_set;