| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
101020652 bảng dữ liệu(PDF) 21 Page - Seeed Technology Co.,Ltd. |
|
|
|||||||||||||||||||||||||||||
101020652 bảng dữ liệu(HTML) 21 Page - Seeed Technology Co.,Ltd. |
|
21 / 28 page ![]() 7/23/22, 9:13 PM Grove - 2.5A DC Current Sensor(ACS70331) - Seeed Wiki https://wiki.seeedstudio.com/Grove-2.5A-DC-Current-Sensor-ACS70331/ 21/28 83 self.addr = addr 84 85 def get_nchan_vol_milli_data(self,n,averageValue): 86 ''' 87 Get n chanel data with unit mV. 88 :param int n: the adc pin. 89 :param int averageValue: Average acquisition fre 90 Returns: 91 int: voltage value 92 ''' 93 val = 0 94 for i in range(averageValue): 95 data = self.bus.read_i2c_block_data(self.add 96 val += data[1]<<8|data[0] 97 val = val / averageValue 98 return val 99 100 def get_nchan_current_data(self,n,sensitivity,Vref,a 101 ''' 102 2.5A/5A DC/10A cunrrent sensor get n chanel data 103 :param int n: the adc pin. 104 :param float sensitivity: The coefficient by wh 105 :param int Vref: Initial voltage at no load. 106 :param int averageValue: Average acquisition fre 107 Returns: 108 int: current value 109 ''' 110 val = 0 111 for i in range(averageValue): 112 data = self.bus.read_i2c_block_data(self.add 113 val += data[1]<<8|data[0] 114 val = val / averageValue 115 currentVal = (val - Vref) * sensitivity 116 return currentVal,val 117 118 def get_nchan_AC_current_data(self,n,sensitivity,Vre 119 ''' 120 5A current sensor AC output and get n chanel dat 121 :param int n: the adc pin. 122 :param float sensitivity: The coefficient by wh 123 :param int Vref: Initial voltage at no load. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |