Difference between revisions of "Component: Current Sensor (ACS7xx) (Electrical)"
From Flowcode Help
Jump to navigationJump to search| (5 intermediate revisions by 3 users not shown) | |||
| Line 14: | Line 14: | ||
==Current Sensor (ACS7xx) component== | ==Current Sensor (ACS7xx) component== | ||
ACS7XX range of +/- 5, 20, 30, 50, 100, 150 & 200A current sensors | ACS7XX range of +/- 5, 20, 30, 50, 100, 150 & 200A current sensors | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==Detailed description== | ==Detailed description== | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
| Line 53: | Line 21: | ||
==Examples== | ==Examples== | ||
| + | A simple example shows how to use a ASC712 to measure current range of +/- 5A. | ||
| + | The component type can be changed within its properties. | ||
| − | + | {{Fcfile|Current_measure_ACS7xx.fcfx|ACS712 example}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | {{Fcfile| | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==Macro reference== | ==Macro reference== | ||
| Line 117: | Line 55: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
| − | |||
| − | |||
| Line 142: | Line 78: | ||
| width="90%" | VDD | | width="90%" | VDD | ||
|- | |- | ||
| − | | colspan="2" | | + | | colspan="2" | For improved accuracy, measure the voltage across the supply of the current sensor, then enter that as VDD voltage. |
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | ||
| Line 158: | Line 94: | ||
|- | |- | ||
| colspan="2" | Defines what is used as the ADC maximum reference. ADC Range = GND to VRef Voltage VDD - Defines the microcontrollers power supply pin as the max reference, VREF+ Pin - Dedicated pin on the microcontroller to allow for a variable reference voltage. | | colspan="2" | Defines what is used as the ADC maximum reference. ADC Range = GND to VRef Voltage VDD - Defines the microcontrollers power supply pin as the max reference, VREF+ Pin - Dedicated pin on the microcontroller to allow for a variable reference voltage. | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| Line 173: | Line 104: | ||
|- | |- | ||
| colspan="2" | Number of micro seconds to wait for the ADC input to charge before starting the analogue sample. | | colspan="2" | Number of micro seconds to wait for the ADC input to charge before starting the analogue sample. | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
| + | | width="90%" | Average Loop (1 - 255) | ||
| + | |- | ||
| + | | colspan="2" | The more higher the value, the more stable and accurate result would be. Results will take longer. Try 200 | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | ||
| + | | width="90%" | Offset Voltage | ||
| + | |- | ||
| + | | colspan="2" | The voltage value when no cureent is flowing This is normally 2.5V for bidirectional and 0V for Unidirectional | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
| + | | width="90%" | Bit Depth | ||
| + | |- | ||
| + | | colspan="2" | | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | ||
| + | | width="90%" | Sensitivity | ||
| + | |- | ||
| + | | colspan="2" | Component sensitivity x10 | ||
|} | |} | ||
| + | |||
| + | ==Component Source Code== | ||
| + | |||
| + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_Current_Sensor_ACS7xx.fcfx FC_Comp_Source_Current_Sensor_ACS7xx.fcfx] | ||
| + | |||
| + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Current_Sensor_ACS7xx.fcfx FC_Comp_Source_Current_Sensor_ACS7xx.fcfx] | ||
Latest revision as of 14:13, 22 October 2025
| Author | medelec35 |
| Version | 1.0 |
| Category | Electrical |
Contents
Current Sensor (ACS7xx) component
ACS7XX range of +/- 5, 20, 30, 50, 100, 150 & 200A current sensors
Detailed description
No detailed description exists yet for this component
Examples
A simple example shows how to use a ASC712 to measure current range of +/- 5A. The component type can be changed within its properties.
Macro reference
Current
| Current | |
| Current reading in amps | |
| Return | |
VoltgeADC
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Current_Sensor_ACS7xx.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Current_Sensor_ACS7xx.fcfx