Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
LINE AND NEUTRAL DETECTION CIRCUIT
Document Type and Number:
WIPO Patent Application WO/2021/069372
Kind Code:
A1
Abstract:
The invention relates to electrical circuits. More specifically, the invention relates to the detection whether an input wire is floating, connected to the Line or to the Neutral of an AC electric power supply. The invention uses impedances between a point of the circuit and the Input, the Line and the Neutral, and the status of the input line is determined based on the voltage at said point of the circuit, or a derivative thereof.

Inventors:
ESNAULT FRÉDÉRIC (FR)
CAZALIS ROMAIN (FR)
Application Number:
PCT/EP2020/077841
Publication Date:
April 15, 2021
Filing Date:
October 05, 2020
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
NETATMO (FR)
International Classes:
H02J3/00; G01R31/00; H02H11/00
Domestic Patent References:
WO2012101347A12012-08-02
Foreign References:
US20140247002A12014-09-04
Attorney, Agent or Firm:
MARKS & CLERK FRANCE (FR)
Download PDF:
Claims:
CLAIMS

1. An electric circuit (300, 500, 700) comprising:

- a connection (L) to the Line of an AC electric power supply;

- a connection (N) connecter to the Neutral of said AC electric power supply;

- an input wire (In) configured to be floating, connected to said Line, or to said Neutral;

- a first impedance (Z1, R1), a second impedance (Z2, R2), and a third impedance (Zi, Ri), said first, second, and third impedance being placed between a first point (310, 510, 710) and, respectively, the Line (L), the Neutral (N) and the input wire (In);

- at least one processing logic (320, 420, 620); wherein said processing logic (320, 520, 720) is configured to determine whether the input wire (In) is floating, connected to said Line, or to said Neutral based on the voltage (VinpUtjiiter) at said first point (310, 510, 710), or a derivative thereof.

2. The electric circuit of claim 1 , further comprising at least one filter (330, 530, 730) configured to apply at least one transfer function between the first point (310, 510, 710) and a first input (ADC1 ) of the processing logic.

3. The electric circuit of claim 2, wherein said at least one transfer function is designed to adapt the voltage at the first input (ADC1) of the processing logic to an input voltage which is usable by the processing logic.

4. The electric circuit of claim 3, wherein said at least one transfer function comprises one or more transfer function chosen in a group comprising a voltage normalization, a clamping, a RMS voltage conversion, and an AC to DC conversion.

5. The electric circuit of one of claims 2 or 4, wherein the filter is configured to apply a transfer function to transform a voltage at the first point to a voltage at the first input of the processing logic that is equal to or below an input voltage limit of the processing logic.

6. The electric circuit of one of claims 1 to 5, wherein:

- the values of Z1 , Z2 and Zi are selected, so that the voltage (VinpUtjiiter) at said first point, or derivative thereof at said first point has a value belonging respectively to three ranges (410, 420, 430, 641 , 642, 643) if the input wire (In) is floating, connected to said Line, or to said Neutral;

- the processing logic is configured to determine whether the input wire (In) is floating, connected to said Line, or to said Neutral by verifying to which of the three non-overlapping ranges belongs the voltage (Vinputjnter), or derivative thereof.

7. The electric circuit of one of claims 1 to 6, comprising:

- a fourth impedance (Z3, R3) between the Line and a second point (311, 711);

- a fifth impedance (Z4, R4) between the Neutral and the second point; and wherein:

- the processing logic is configured to determine whether the input wire (In) is floating, connected to said Line, or to said Neutral based on: o the voltage (VinpUtjiiter) at said first point, or a derivative thereof, and o the voltage at said second point, or a derivative thereof.

8. The electric circuit of claim 7, wherein the processing logic is configured to determine whether the input wire (In) is floating, connected to said Line, or to said Neutral based on a ratio between the voltage (VADCI) at the first input point (ADC1) of the processing logic, and the voltage (VADC2) at the second input point (ADC2) of the processing logic.

9. The electric circuit of claim 8, wherein the first impedance (Z1 , R1) is equal to the fourth impedance (Z3, R3), and the second impedance (Z2, R2) is equal to the fifth impedance (Z4, Z4), and wherein the processing logic is configured to determine if the ratio ( RV_ADCI/V_ADC2 ) between the voltage at the first input point and the voltage at the second input point of the processing logic belongs to a first, a second and a third non-overlapping range, and wherein the processing logic is configured to determine that the input wire (In) is:

- floating, if the ratio ( RV_ADCI/V_ADC2 ) belongs to the first non-overlapping range (410), comprising the value 1 ;

- connected to Line (L), if the ratio ( RV_ADCI/V_ADC2 ) belongs to the second non-overlapping range (420), comprising the value

- connected to Neutral (N), if the ratio ( RV_ADCI/V_ADC2 ) between the voltage at the first input point and the voltage at the second input point of the processing logic belongs to the third non-overlapping range (430),

(Zi(Zl+Z2)) comprising the value| I- (Zi(Zl+Z2)+Zl*Z2)

10. The electric circuit of one of claims 1 to 9, wherein the processing logic is further configured to:

- determine the status of a command of an electric device based on the status of the input wire;

- send said command to said electric device.

11. The electric circuit of claim 10, wherein said electric device is chosen in a group comprising one or more of smart appliances, smart plugs, shutters, heating devices, cooling devices, ventilation systems, blinders, windows, sensors, home or building management devices.

12. A method (800) comprising:

- receiving (810) a voltage (Vinputjiiter) at a first point (310, 510, 710) of an electric circuit (300, 500, 700), or a derivative thereof, said electric circuit comprising: o a connection (L) to the Line of an AC electric power supply; o a connection (N) connecter to the Neutral of said AC electric power supply; o an input wire (In) configured to be floating, connected to said Line, or to said Neutral; o a first impedance (Z1 , R1), a second impedance (Z2, R2), and a third impedance (Zi, Ri), said first, second, and third impedance being placed between the first point (310, 510, 710) and, respectively, the Line (L), the Neutral (N) and the input wire (In);

- determining (820) whether the input wire (In) is floating, connected to said Line, or to said Neutral based on the voltage (Vinputjiiter) at said first point (310, 510, 710), or a derivative thereof.

13. A computer program product comprising computer code instructions configured to:

- receive a voltage (Vinputjiiter) at a first point (310, 510, 710) of an electric circuit (300, 500, 700), or a derivative thereof, said electric circuit comprising: o a connection (L) to the Line of an AC electric power supply; o a connection (N) connecter to the Neutral of said AC electric power supply; o an input wire (In) configured to be floating, connected to said Line, or to said Neutral; o a first impedance (Z1 , R1), a second impedance (Z2, R2), and a third impedance (Zi, Ri), said first, second, and third impedance being placed between the first point (310, 510, 710) and, respectively, the Line (L), the Neutral (N) and the input wire (In);

- determine whether the input wire (In) is floating, connected to said Line, or to said Neutral based on the voltage (Vinputjoter) at said first point (310, 510, 710), or a derivative thereof.

Description:
LINE AND NEUTRAL DETECTION CIRCUIT

FIELD OF THE INVENTION

[001] The present invention relates to the field of electric circuitry. More specifically, it relates to the detection of a type of input line, between a floating input, a connection to a Line or Neutral of an AC power supply.

BACKGROUND PRIOR ART

[002] Electric power supply is generally provided through AC power supply. Household power is usually provided through single-phase electric power using at least two wires:

- a line wire (which may also be called phase, hot, or active contact) carries alternating current between power grid and the household;

- a neutral wire also carries AC current, and remains at a voltage around 0V. It may be connected to the ground or Earth.

[003] Additionally, an Earth wire, or ground, may be present to protect a device against faults or electric shocks.

[004] One general challenge of many wall-powered electronic systems consists in detecting whether a wire is connected to line or neutral. Indeed, such device may let the current pass or not depending whether an input is connected to Line or Neutral wire. For example, a hot water boiler may be turned on only if an AC line signal is detected. The detection of input type is thus crucial.

[005] Figure 1 represents a circuit that detects if an input line is a line or a neutral in the prior art.

[006] A device is connected to an AC electric power supply through an electric panel 120 granting access to the Neutral wire N, and Line wire L. The wires go through a plurality of circuit breakers 130, 131 , 132: the line wire L is connected to wires L140, L141 , L 142. A power switch 133 allows or not the connection of wire L140 (and thus Line wire L) to the line L143. The Neutral wire N is connected, through the circuit breakers, through wires N150, N151 , N152.

[007] An input command detector 160 detects, based on current in wire L143, whether the switch 133 is ON or OFF. At the output of wires L143 and N152. Based on this detection, it lets or not the current flow from wires L141 and N150 to wires L142 and N151 respectively, and power or not the device 110. [008] In prior art systems, the AC Line detection is performed by providing directly AC line to the coil of a relay. Figure 1 also displays two kinds of prior art AC line detectors:

- the detector 161 comprises a mechanical relay wherein the input powers a relay coil. When the coil is powered, an AC line input is detected;

- the detector 162 is a digital detector: the input is converted to direct current by the converter 1623, and provided to a digital detector. If the input is AC line, an oscillating voltage 1621 is detected by the digital detector. Otherwise a near null voltage 1622 is detected.

[009] Such prior art circuits are able to detect whether AC line is connected. They however suffer a number of drawbacks. For example:

- they are not able to detect in the same time line an neutral connection conditions;

- they are complex and power consuming;

- they take space;

- some detectors, such as mechanical relays are not compatible with all environments. For example, coils may produce electromagnetic interferences that may pollute surrounding electronics.

[0010] There is therefore the need of a simple, compact and low power circuit which is able to detect both Line and Neutral wires connection conditions.

SUMMARY OF THE INVENTION

[0011] To this effect, the invention discloses an electric circuit comprising: a connection to the Line of an AC electric power supply; a connection connecter to the Neutral of said AC electric power supply; an input wire configured to be floating, connected to said Line, or to said Neutral; a first impedance, a second impedance, and a third impedance, said first, second, and third impedance being placed between a first point and, respectively, the Line, the Neutral and the input wire; at least one processing logic; wherein said processing logic is configured to determine whether the input wire is floating, connected to said Line, or to said Neutral based on the voltage at said first point, or a derivative thereof.

[0012] Advantageously, the electric circuit further comprises at least one filter configured to apply at least one transfer function between the first point and a first input of the processing logic.

[0013] Advantageously, said at least one transfer function is designed to adapt the voltage at the first input of the processing logic to an input voltage which is usable by the processing logic. [0014] Advantageously, said at least one transfer function comprises one or more transfer function chosen in a group comprising a voltage normalization, a clamping, a RMS voltage conversion, and an AC to DC conversion.

[0015] Advantageously, the filter is configured to apply a transfer function to transform a voltage at the first point to a voltage at the first input of the processing logic that is equal to or below an input voltage limit of the processing logic.

[0016] Advantageously, the values of Z1 , Z2 and Zi are selected, so that the voltage at said first point, or derivative thereof at said first point has a value belonging respectively to three ranges if the input wire is floating, connected to said Line, or to said Neutral; the processing logic is configured to determine whether the input wire is floating, connected to said Line, or to said Neutral by verifying to which of the three non-overlapping ranges belongs the voltage, or derivative thereof.

[0017] Advantageously, the electric circuit comprises: a fourth impedance between the Line and a second point; a fifth impedance between the Neutral and the second point; and wherein: the processing logic is configured to determine whether the input wire is floating, connected to said Line, or to said Neutral based on: the voltage at said first point, or a derivative thereof, and the voltage at said second point, or a derivative thereof.

[0018] Advantageously, the processing logic is configured to determine whether the input wire is floating, connected to said Line, or to said Neutral based on a ratio between the voltage at the first input point of the processing logic, and the voltage at the second input point of the processing logic.

[0019] Advantageously, the first impedance is equal to the fourth impedance, and the second impedance is equal to the fifth impedance, and wherein the processing logic is configured to determine if the ratio between the voltage at the first input point and the voltage at the second input point of the processing logic belongs to a first, a second and a third non-overlapping range, and wherein the processing logic is configured to determine that the input wire is: floating, if the ratio belongs to the first non-overlapping range, comprising the value 1 ; connected to Line, if the ratio belongs

(Z1+Zί)(Z1+Z2) to the second non-overlapping range, comprising the value

(Zl+Zi)(Zl+Z2)-Zl 2 ) ’ connected to Neutral, if the ratio between the voltage at the first input point and the voltage at the second input point of the processing logic belongs to the third non-

(Zi(Zl+Z2)) overlapping range, comprising the value|-

Zi(Zl+Z2)+Zl*Z2)

[0020] Advantageously, the processing logic is further configured to: determine the status of a command of an electric device based on the status of the input wire; send said command to said electric device.

[0021] Advantageously, said electric device is chosen in a group comprising one or more of smart appliances, smart plugs, shutters, heating devices, cooling devices, ventilation systems, blinders, windows, sensors, home or building management devices.

[0022] The invention also discloses a method comprising: receiving a voltage at a first point of an electric circuit, or a derivative thereof, said electric circuit comprising: a connection to the Line of an AC electric power supply; a connection connecter to the Neutral of said AC electric power supply; an input wire configured to be floating, connected to said Line, or to said Neutral; a first impedance, a second impedance, and a third impedance, said first, second, and third impedance being placed between the first point and, respectively, the Line, the Neutral and the input wire; determining whether the input wire is floating, connected to said Line, or to said Neutral based on the voltage at said first point, or a derivative thereof.

[0023] The invention also discloses a computer program product comprising computer code instructions configured to receive a voltage at a first point of an electric circuit, or a derivative thereof, said electric circuit comprising: a connection to the Line of an AC electric power supply; a connection connecter to the Neutral of said AC electric power supply; an input wire configured to be floating, connected to said Line, or to said Neutral; a first impedance, a second impedance, and a third impedance, said first, second, and third impedance being placed between the first point and, respectively, the Line, the Neutral and the input wire; determine whether the input wire is floating, connected to said Line, or to said Neutral based on the voltage at said first point, or a derivative thereof.

BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The invention will be better understood and its various features and advantages will emerge from the following description of a number of exemplary embodiments provided for illustration purposes only and its appended figures in which:

- Figure 1 represents a circuit that detects if an input line is a line or a neutral in the prior art;

- Figure 2 displays a light switching module in which the invention may be implemented;

- Figure 3 displays an example of line and neutral detection circuit in a number of embodiments of the invention;

- Figure 4 displays an example of non-overlapping ranges of voltage ratios depending upon the state of the input wire;

- Figure 5 displays an example of line and neutral detection circuit in an embodiment of the invention using a single ADC input; - Figure 6 displays three examples of ADC inputs in an embodiment of the invention, when the input line is respectively floating, connected to line and connected to neutral;

- Figure 7 displays an example of line and neutral detection circuit in an embodiment of the invention using two ADC inputs;

- Figure 8 displays an example of method in a number of embodiments of the invention.

DETAILED DESCRIPTION OF THE INVENTION

[0025] Figure 2 displays a light switching module in which the invention may be implemented.

[0026] The switching module 210 is connected to the Line L and Neutral N of an AC power supply. It is able to connect the Line L and Neutral N to a light switch through an output Line L ou t, and Neutral N ou t to light on the switch, or block the current to light OFF the switch. To this effect, it may receive commands from wireless switches 230, or a wall mounted switch 240.

[0027] When the wall mounted switch is ON, the input line In is connected to the Line L. Otherwise, if the wall mounted switch is in the OFF position, the input line In is connected to Neutral, and the input In is floating when the product is not fully installed/connected. The module 210 should switch ON the light 220 only if the input In is connected to the Line L. This example is provided by means of example only of device in which the invention may be implemented. According to other embodiments of the invention, the device may be configured to detect if the input is connected to the Neutral N or floating. More generally, according to various embodiments of the invention, a device may be used to detect any combination of Line, Neutral and/or floating inputs.

[0028] Therefore, the switching module 210 is configured to detect if the input In is floating, connected to Line L or connected to Neutral N of the AC power supply, and switch the light ON or OFF accordingly.

[0029] As noted above, this is provided by means of example only, and the invention may be implemented in any device that is configured to detect if an input line is floating, connected to Line or connected to Neutral.

[0030] Moreover, the invention is more generally applicable to any device that detects a Line, Neutral and/or floating input, and determines the status of a 2 or 3 states command accordingly. For example, the invention may be used:

- for sending commands to shutters: a mechanical roller shutters switch (3 positions: up/stop/down) could thus be connected to the input of the device to trigger a up/stop/down action; - for heating/cooling systems: a 3 states switch could be connected to the input of the device to trigger a heating/stop/cooling action to the device. It could also be used to control an electrical heater in different modes: for example stop/heating eco/heating max;

- for ventilation system: a 3 states switch could be connected to the input of the device to turn on-high-speed/on-low-speed/off a fan.

[0031] It can thus be appreciated that the disclosure provides a simple and efficient solution using the Line, Neutral and/or floating detection to generate a 2 or 3 state commands to various kinds of devices comprising smart appliances, smart plugs, shutters, environmental systems (heating, cooling, ventilation), blinders, windows, sensors, and other intelligent or connected home or building management devices. The invention is adaptable to the commands expected by virtually any device.

[0032] Figure 3 displays an example of line and neutral detection circuit in a number of embodiments of the invention.

[0033] The circuit 300 is connected to the Line L, and Neutral N of an AC power supply, and comprises an input line In which may be floating, or connected either to Line L or Neutral N. The input may be floating when it is not yet connected to the AC power supply, and connected to Line L or Neutral N otherwise.

[0034] The circuit 300 is configured to detect whether the input In is floating, connected to Line or connected to Neutral, based on the voltage at an input point 310, or a derivative thereof.

[0035] To this effect, the circuit 300 comprises:

- a first impedance Z1 between Line L and the input point 310;

- a second impedance Z2 between Neutral N and the input point 310;

- a third impedance Zi between Input In and the input point 310.

[0036] The impedances may be any combination of linear passive components such as for example resistors, capacitors, or a combination thereof.

[0037] The circuit 300 also comprises at least one processing logic 320. According to various embodiments of the invention, a processing logic may be a processor operating in accordance with software instructions, a hardware configuration of a processor, or a combination thereof. The processing logic may be based on, or run on very different hardware such as a processor, a microcontroller, a DSP (Digital Signal Processor), etc. It should be understood that any or all of the functions discussed herein may be implemented in a pure hardware implementation and/or by a processor operating in accordance with software instructions. It should also be understood that any or all software instructions may be stored in a non-transitory computer-readable medium. For the sake of simplicity, in the remaining of the disclosure the one or more processing logic will be called “the processing logic”. However, it should be noted that the operations of the invention may also be performed in a single processing logic, or a plurality of processing logics, for example a plurality of processors.

[0038] The voltage at the input point 310 is therefore AC. In a number of embodiments of the invention, the circuit 300 comprises at least one filter 330. According to various embodiments of the invention, a single filter may be used, that executes one or more functions, or a plurality of filters may be used. For the sake of simplicity, in the present disclosure the at least one filters 330 will be represented as a single filter, and designated as “the filter”. However, according to various embodiments of the invention this may represent a plurality of filters. According to various embodiments of the invention, the filter is configured at least to convert the AC voltage from input point 310 to a first input ADC1 of the processing logic 320. [0039] In a number of embodiments of the invention, the filter is configured to apply at least one transfer function. The transfer function may be designed to adapt the voltage at the first input ADC1 of the processing logic to an input voltage which is usable by the processing logic. This allows the input logic to have as input a voltage that complies with the input range, and that can be used for determining the status of the input wire. For example, the transfer functions may comprise a transfer function to transform a voltage at the first point 310 to a voltage at the first input ADC1 of the processing logic that is equal to or below an input voltage limit of the processing logic. Such a filter may for example be a voltage divider.

[0040] Indeed, the voltages accepted as input by processing logics are usually lower than voltages of AC power supply. For example, AC power supply has a voltage of 230V RMS in France, which cannot be supplied as input to most of the processors. Therefore, such a transfer function reduces the voltage at the input of the processing logic 320 to a value which is accepted as input by the processing logic. Therefore, such a transfer function ensures that the input voltage of the processing logic does not exceed allowed range of input voltages of the processing logic, and thus prevent damages of the processing logic. This also allows ensuring that the voltages at the input of the processing logic are in a range that allows a proper detection of the input In.

[0041] The skilled man may without effort define suitable transfer functions depending on the maximum voltage of the AC power supply, and target maximum voltage at the input of the processing logic. The transfer functions may for example be non-linear functions, or voltage dividers.

[0042] The filter 330 may also apply a clamping function, for example to prevent the voltage to fall below 0V and /or above an input voltage of the processing logic. [0043] In a number of embodiments of the invention, a transfer function is a RMS (Root Mean Square) function: the voltage at the first input ADC1 of the processing logic would thus be the RMS of the voltage at the first point 310. The RMS function provides a suitable solution for transforming the voltage into a value which is acceptable at the input of the processing logic. The filter 330 may execute a combination of the above defined transforms and/or other transform defined by the skilled man.

[0044] In a number of embodiments of the invention, the circuit 300 also comprises an AC/DC converter 340 to convert AC current from the AC power supply to direct current and power the processing logic 320, and in a number of embodiments, the filter 330.

[0045] The processing logic 320 is configured to determine whether the input wire In is floating, connected said Line, or connected to said Neutral based on the voltage at the first point 310, or a derivative thereof.

[0046] Indeed, the voltage at the first point 310 is dependent upon the state of input wire In (floating, connected to Line or connected to Neutral), and the values of the first impedance Z1 , second impedance Z2, third impedance Zi, and of the voltage V, between the Line L and Neutral N, which is thus the voltage of the AC power supply. [0047] The impedances act as voltage dividers, and the voltage V in putjiiter at the first point, which is also the voltage at the input of the filter 330, is equal:

- when the input In is floating, to:

Z2

Vinput_filter= * ~ z ϊ+Z2

(Equation 1)

- when the input is connected to Line, to: , y, Z2 (Zl+Zt) inputj i lter- i * Z l*Zi+Z2*(Zl+Zi )

(Equation 2)

- when the input is connected to Neutral, to:

Z2*Zi

Vinput_filter= * Zl*(Z2+Zl)+Z2*Zi '

(Equation 3)

[0048] The processing logic is thus able, from the value of V in putjiiter (or the value transformed by a transfer function in the filter 330) to detect to which condition corresponds the value of Vi np u tjiiter - The circuit 300 therefore allows a simple and efficient solution to determine the state of the input wire In. The circuit 300 also overcomes the drawbacks of prior art systems: contrarily to prior art solutions, the circuit 300 is also able to detect in the same time floating, Line and Neutral conditions, without requiring extra wires, coils or relays. Thus, the circuit 300 takes less space, is less complex and power consuming than prior art solutions. Moreover, the lack of mechanical coils/relays, and the simplicity of the circuits renders it robust and adaptable to any kind of environment. For example, such a device does not create electromagnetic interference, and therefore has a good Electro Magnetic Compatibility (EMC).

[0049] Moreover, in a number of embodiments of the invention, the processing logic is able to determine from said status of the input wire the state of a command of a device, and send said command. This can be performed using a simple mapping between the state of the input wire and the command of the device. For example:

- if the device is a mechanical roller shutters switch with 3 positions up/stop/down, each of the 3 states of the input wire can be associated with each of the positions of the roller shutters, and, when the state of the input wire is obtained, the processing logic can determine the corresponding command and send it to the roller shutters;

- if the device is electrical heater with different modes, for example stop/heating eco/heating max, each of the 3 states of the input wire can be associated with each of the modes of the electrical heater, and, when the state of the input wire is obtained, the processing logic can determine the corresponding command and send it to the electrical heater;

- if the device is a ventilation system having three speeds of operation (high- speed/low-speed/off), each of the 3 states of the input wire can be associated with each of the speeds of the fan, and, when the state of the input wire is obtained, the processing logic can determine the corresponding command and send it to the fan.

[0050] It can thus be appreciated that the status of the input wire can be used to determine the commands of virtually any device or appliance that accepts a 3 or 2 states commands as input. Indeed, if in the previous examples commands with 3 states were used (in such case each of the Line, Neutral, floating is associated to a different command), 2-states commands, such as an ON/OFF command of a lighting device may be used as well. In such cases, two of the states of the input wire may be associated to the same command, or one of the possible states of the input wire may not be associated to any command.

[0051] The electric circuit of the invention therefore provides a simple and convenient solution to command a wide number of different appliances accepting various inputs. Moreover, the electric circuit can be adapted easily to different devices or commands: the association between the status of the input wire and the commands can be modified using a simple update, without needing to modify the detection of the status of the input wire.

[0052] The commands may either be sent permanently (for example by letting or not current flow to a device such as a lighting device), or upon a change of the status of the input wire (for example by sending a command to start/stop the operation of a fan upon a change of the status of the input wire.

[0053] The determination of the state of the input wire In based on the voltage at the first point 310, or derivative thereof, may be performed according to different rules. For example, it may determine, from an input voltage, if the closest voltage is the one corresponding to a floating, Line or Neutral input.

[0054] In a number of embodiments of the invention, the values of Z1 , Z2 and Zi are selected so that the voltage Vjn p ut j ter at the first point 310, and thus the voltage at the first input ADC1 of the processing logic are respectively in three overlapping ranges if the input wire In is floating, connected to Line or connected to Neutral. The processing logic 320 can thus be configured to determine the state of the input wire In by verifying in which if the three non-overlapping ranges lies the first input ADC1 . [0055] This provides a simple and efficient solution to determine what is the state of the input wire In. Moreover, this allows ensuring that there will be no ambiguity regarding the state of the input wire, because the ranges do not overlap, and a voltage can be associated without ambiguity to a state of the input wire.

[0056] The skilled man can thus, based on the voltage of the AC power supply, or ranges of voltages of the AC power supply if it is slightly modified over time, determine corresponding values of Z1 , Z2 and Zi that allow obtaining three non overlapping ranges.

[0057] However, this determination may be rendered more difficult in cases wherein the voltage of the AC power supply is not known in advance. This is for example the case for products that may be sent in an identical version worldwide. Indeed, the voltage of the AC power supply is different in various world regions. For example, the voltage of mains electricity is 230V in Europe, but 220 V in China and many African countries, 120 V in North America, 110V in Venezuela... If the voltage of the AC power supply can be determined for a given region, it cannot be known in advance if the circuit is intended to be used in different regions worldwide. Even in the same region, the AC power supply voltage may be slightly different than the nominal voltage. For example, in an area wherein the voltage is supposed to be 230 V RMS, it may in practice vary between 220 and 240 V RMS. In such cases, the voltage at the first point 310 depends on the state of the input wire In, but also of the voltage between Line and Neutral, which is not known a priori. [0058] In order to provide a deterministic determination of the state of the input wire In when the voltage between Line and Neutral is not known a priori, or varies around a nominal value, in a number of embodiments of the invention, the circuit 300 comprises:

- a fourth impedance Z3 between the Line and a second point 311 ;

- a fifth impedance Z4 between the Neutral and the second point.

[0059] In such embodiments, the filter 330 is also configured at least to transform AC to DC current between the second point 311 and a second input ADC2 of the processing logic. In embodiments wherein the filter 330 is also configured to apply a function to transform the voltage at the first point 310 to a voltage at the first input ADC1 , the filter 330 is also configured to apply the same transfer function to transform the voltage at the second point 311 to a voltage at the second input ADC2. [0060] Therefore, the processing logic 320 is configured to determine whether the input wire In is floating, connected to said Line, or to said Neutral based on both the voltage at said first point 310, or a derivative thereof, and the voltage at said second point 311 , or a derivative thereof. For example, the processing logic 320 may be configured to determine the status of the input wire In based on the voltages at the first input point ADC1 , and the second input point ADC2, as transformed by the filter. [0061] This allows determining the status of the input wire even if the voltage between the Line and Neutral is a priori unknown. Indeed, the voltage at the second point 311, and thus the voltage at the second input point ADC2 depend only on the voltage between Line and Neutral.

[0062] More specifically, the voltage Vj npu t_mer_2 at the second point 311 is equal to:

Z4

V input Jilt er_2= V t Z3+Z4

(Equation 4)

[0063] Thus, the voltage V ) between Line and Neutral can be directly retrieved from the voltage V inpu t_mer_2 at the second point 311 (or from the voltage at the second input ADC2 of the processing logic). This determination of the voltage between Line and Neutral in turn allows adapting the determination of input wire status based on the voltage at the first point 310, or at the first input ADC1 of the processing logic. For example, if the determination is based on three non-overlapping ranges, the bounds of the range may be expressed as a function of Vi, and adapted based on the determination of Vi explained above.

[0064] The status of the input wire may also be determined directly based on a ratio RV_ADCI/V_ADC2 between the voltages VADCI at the first input ADC1 , and VADC2 at the second input ADC2 of the processing logic 320. This allows a simple and efficient way of determining the status of the input wire. [0065] Figure 4 displays an example of non-overlapping ranges of voltage ratios depending upon the state of the input wire.

[0066] In a number of embodiments of the invention, the fourth impedance Z3 is equal to the first impedance Z1 , and the fifth impedance Z4 is equal to the second impedance Z2. It shall be noted that here “equals” means “substantially equal”, that is to say that the values of impedance may actually have very small differences, which are inherent to the construction of the impedance.

[0067] In a number of embodiments of the invention, the circuit comprises the filter 330 that performs the same transfer function to transform the voltage at the first input point 310 into the voltage V A DCI at the first input of the processing logic, and the voltage at the second input point 311 into the voltage V A DC2 at the second input ADC2 of the processing logic. Therefore, the ratio RV_ADCI/V_ADC2 between the voltage V A DCI at the first input of the processing logic, and the voltage V AD C2 at the second input ADC2 of the processing logic is a function of the ratio of the voltages between at the first input point 310, and the second input point 311. If the transfer function is a linear function, the two ratios are equal. Provided that Z1 = Z3, and Z2 = Z4, it is possible to express the ratio as a function of Z1 , Z2 an Zi depending upon the state of the input wire, as will be expressed below.

[0068] If the input In is floating, we have:

Rv_ADci/v_ADC2(Floating) = 1

(Equation 5)

[0069] If the input In is connected to Line L, we have:

(Equation 6)

Wherein the operator represents the module of the expression inside the two “ signs.

[0070] If the input In is connected to Neutral N, we have:

(Zi(Zl+Z2))

Rv_ADci/v_ADC2(Neutral) < 1

(Zi(Zl+Z2)+Zl*Z2)

(Equation 7)

[0071] The use of Z1=Z3, and Z2=Z4 therefore allows to have three different values of the ratio, whatever the values of Z1, Z2 and Zi. The processing logic can thus be configured to detect the status of the input wire, by verifying if the ratio RV_ADCI/V_ADC2 is in one of three non-overlapping ranges, the status being:

- floating, if RV_ADCI/V_ADC2 is in a range comprising the value

Rv_ADci/v_ADC2(Floating) = 1 ; - connected to Line L, the RV_ADCI/V_ADC2 is in a range comprising the value

(Zl+Zi)(Zl+Z2)

R V_ADCI /V_ADC2 ( L i n e ) (Z1+Z£)(Z1+Z2)-Z1 2

- connected to Neutral N, the RV_ADCI/V_ADC2 is in a range comprising the

(Z£(Z1+Z2)) value Rv_ADci/v_ADC2(Neutral) (Zi(Zl+Z2)+Zl*Z2)

[0072] In a number of embodiments of the invention, the three non-overlapping ranges are defined by adding a margin e around central values, which are respectively Rv_ADci/v_ADC2(Floating), Rv_ADci/v_ADC2(Line) and Rv_ADci/v_ADC2(Neutral).

[0073] In the non-limitative example of Figure 4, the margin e is equal to 0,5 *

(min(Rv_ AD ci / v_ ADC2 (Line) - Rv_ AD ci / v_ ADC2 (Floating); Rv_ AD ci / v_ ADC2 (Floating) Rv_ AD ci / v_ ADC2 (Neutral)), in order to have the largest possible margin that produces non-overlapping ranges.

[0074] This therefore results in three non-overlapping ranges, the status of the input wire being detected as:

- floating, if RV_ADCI/V_ADC2 is in the first range 410 : ] Rv_ADci/v_ADC2(Floating) - e; Rv_ADci/v_ADC2(Floating) + e [;

- connected to Line, if RV_ADCI/V_ADC2 is in the second range 420:

]Rv_ADci/v_ADC2(Line) - e; Rv_ADci/v_ADC2(Line) + e [;

- connected to Neutral, if RV_ADCVV_ADC2 is in the third range 430: ]Rv_ AD ci / v_ ADC2 (Neutral) - e; Rv_ AD ci / v_ ADC2 (Neutral) + e [.

[0075] However, these examples are provided by means of example only, and any combination of non-overlapping ranges comprising respectively the values Rv_ADci/v_ADC 2 (Floating), Rv_ADci/v_ADC 2 (Line) and Rv_ADci/v_ADC 2 (Neutral) may be used in a number of embodiments of the invention.

[0076] These examples demonstrate that, in certain embodiments of the invention, the circuit allows a simple and efficient detection of the status of the input wire based on the ratio RV_ADCI/V_ADC2, which is not dependent upon the voltage of the AC power supply, and can thus be used with any power source.

[0077] The figure 5 displays an example of line and neutral detection circuit in an embodiment of the invention using a single ADC input.

[0078] The circuit 500 is an example of circuit of the invention. The circuit 500 comprises a connection to Line L, Neutral N, and an input wire In which may be floating, connected to Line L, or connected to Neutral N. The circuit 500 is specifically tailored to operate around a nominal 230V 50 HZ voltage.

[0079] The determination of the status of the input wire In is determined based on the voltage at a first point 510. The circuit comprises:

- a first impedance R1 between the first point 510 and the Line L. The impedance R1 is in this example a resistor having a resistance of 150 kQ; - a second impedance R2 between the first point 510 and the Neutral N. The impedance R2 is in this example a resistor having a resistance of 68 kQ;

- a third impedance Ri between the first point 510 and the input In. The impedance Ri is in this example a resistor having a resistance of 68 kQ.

[0080] The filter 520 is made of:

- two resistors R6, R9. R6 has a resistance of 220 kQ, and R9 a resistance of 4,7 kQ;

- two clamping diodes D3, D4.

[0081] The processing logic, not represented here, determines the status if the input wire In based on the voltage V A DCI at the output of the filter, which derives from the voltage at the first point 510.

[0082] The filter 520 therefore has two functions:

- it performs a voltage division through the resistors R6 and R9, that divide the voltage by (220+4, 7)/4, 7 = 47,8. The nominal voltage of the AC power supply being here 230V, the voltage at the output of the filter is approximately thus up to 4,9, which is compliant with the possible inputs of the processing logic;

- it rectifies the current through the diodes D3, D4: the current at the input of the processing logic is a direct current, and not an alternating one.

[0083] Figure 6 displays three examples of ADC inputs in an embodiment of the invention, when the input line is respectively floating, connected to line and connected to neutral.

[0084] In an experiment, the circuit 500 has been tested: the voltage over time has been measured at the first input ADC1 of the processing logic, when the input wire In was floating, connected to Line, connected to Neutral.

[0085] The curve 610 shows the voltage at the first input ADC1 of the processing logic, when the input is floating; the curve 620 shows the voltage at the first input ADC1 of the processing logic, when the input is connected to Line; curve 630 shows the voltage at the first input ADC1 of the processing logic, when the input is connected to Neutral. For all these curves, the voltage is indicated in the scale on the left of the curve. This shows that the voltage has different values depending upon the state of the input wire: 1 ,75 V when the input is floating, 3,59 V when it is connected to Line, and 1 ,11V when connected to Neutral.

[0086] This experiment has been extended, by varying the AC power supply voltage between 210, 230 and 250 V, and adding a capacitor between Line and Neutral, with a capacity of 0 nF, or 50 nF. This capacitor represents a parasitic coupling between electrical lines, which is a common situation in houses with long coupled parallel lines. This is a parasitic effect that can disturb electronics in other detection systems. The results are summarized in the table below: This table shows, for each combination of input capacity (0 nF: lines 2-4; 50 nF: lines 5-7), and AC Input Voltage (210 V: lines 2 and 5; 230 V: lines 3 and 6; 250 V: lines 4 and 7), the value of voltage VADCI at the first input of the processing logic, when the input wire is connected to Neutral (colomn 3), floating (column 4), and connected to Line (column 5). The line 640 shows the ranges of voltage at the first input point of the processing logic in the test conditions. The table above shows that, under these test conditions, the voltage VADCI is comprised in one the following ranges:

- range 641 : 1 ,01 to 1 ,22 V when the input is connected to Neutral;

- range 642: 1 ,59 to 2,52V when the input is floating;

- range 643: 3,24 to 3,84 when the input is connected to Line. [0087] This example demonstrates that it is possible, at least under reasonable assumptions of AC input voltage, to pre-define thresholds on the voltage VADCI to determine the status of the input wire. For example, the processing logic may be configured to detect that the input wire is connected to Neutral, floating or connected to Line if the voltage VADCI is in one of the ranges 641 , 642 or 643 respectively.

[0088] Figure 7 displays an example of line and neutral detection circuit in an embodiment of the invention using two ADC inputs.

[0089] The circuit 700 comprises all the elements of the circuit 500. The resistors have the same resistances as in the circuit 500, except R9 that has here a resistance of 3,9 kQ. The first point is here noted 710 instead of 510, and the voltage at the first input point of the processing logic is still noted VADCI -

[0090] In addition, a second point 711 is defined, a fourth resistor R3 is placed between the Line and the second point 711 , and a fifth resistor R4 is placed between the Neutral and the second point 711. The fourth resistor R3 has the same resistance than the first resistor R1 : 150 kQ, and the fifth resistor R4 has the same resistance than the second resistor R2: 68 kQ.

[0091] The same filter 720 is applied to the voltages at the first point 710 and at the second point 711. As already discussed with reference to figure 5, the current is rectified, and the voltage divided between the voltage at the first point 710, and at the first input ADC1 of the processing logic.

[0092] The filter 720 is also configured to perform the same operations between the second point 711, and the second input point of the processing logic, wherein the voltage V A DC2 is measured:

- the resistors R16 and R19 respectively have the same capacities than the resistors R6 and R9. The same voltage division is thus performed between the voltage in the first point 710 and the first input point of the processing logic ADC1 on one hand, and the second point 720 and the second input point of the processing logic ADC2 on the other hand;

- the diodes D13 and D14 rectify the alternative current into a direct current at the second input point ADC2 of the processing logic.

[0093] Therefore, the ratio between the voltages V AD ci, and V ADC2 is equal to the ratio between the voltages at the first point 710, and the second point 711 , and, provided that R1 = R3, and R2 = R4, the status of the input line In can be determined based only on the ratio between V AD ci and V ADC2 and the values of R1 , R2 and Ri, whatever the AC power supply voltage, as already demonstrated with reference to figure 3.

[0094] It shall be noted that other values of R3 and R4 also allow determining the status of the input wire based on the ratio between V AD ci and V ADC2 - However such examples have not been developed yet for the sake of simplicity, the corresponding formulas being more complicated.

[0095] In addition, other filters than the filter 720 may be used, provided that the filter allows transforming AC into DC, and that, if the filter modifies the voltage between the first point 710 and the first input ADC1 of the processing logic, and between the second point 711 and the second input ADC2 of the processing logic, the correspondence between the voltages can be determined.

[0096] These examples demonstrate the ability of the invention to detect the status of an input wire, even in case of parasitic couplings.

[0097] Figure 8 displays an example of method in a number of embodiments of the invention. [0098] The method 800 comprises a first step 810 of receiving a voltage at a first point of an electric circuit such as one of the circuits 300, 500, 700, or a derivative thereof.

[0099] The method comprises a second step 820 of determining whether the input wire is floating, connected to said Line, or to said Neutral based on the voltage at said first point, or a derivative thereof.

[00100] All the embodiments discussed above are respectively applicable to the method 800. [00101] The examples described above are given as non-limitative illustrations of embodiments of the invention. They do not in any way limit the scope of the invention which is defined by the following claims.