[go: up one dir, main page]

RO132882A2 - System and method of simultaneous reading of a plurality of buttons or sensors using a single analogue pin of a microcontroller - Google Patents

System and method of simultaneous reading of a plurality of buttons or sensors using a single analogue pin of a microcontroller Download PDF

Info

Publication number
RO132882A2
RO132882A2 ROA201700207A RO201700207A RO132882A2 RO 132882 A2 RO132882 A2 RO 132882A2 RO A201700207 A ROA201700207 A RO A201700207A RO 201700207 A RO201700207 A RO 201700207A RO 132882 A2 RO132882 A2 RO 132882A2
Authority
RO
Romania
Prior art keywords
voltage
buttons
microcontroller
transistor
sensors
Prior art date
Application number
ROA201700207A
Other languages
Romanian (ro)
Inventor
Constantin Iana
Original Assignee
Preh Gmbh
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Preh Gmbh filed Critical Preh Gmbh
Priority to ROA201700207A priority Critical patent/RO132882A2/en
Priority to DE102018107960.5A priority patent/DE102018107960B4/en
Publication of RO132882A2 publication Critical patent/RO132882A2/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M11/00Coding in connection with keyboards or like devices, i.e. coding of the position of operated keys
    • H03M11/02Details
    • H03M11/04Coding of multifunction keys
    • H03M11/06Coding of multifunction keys by operating the multifunction key itself in different ways
    • H03M11/08Coding of multifunction keys by operating the multifunction key itself in different ways by operating selected combinations of multifunction keys
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M11/00Coding in connection with keyboards or like devices, i.e. coding of the position of operated keys
    • H03M11/22Static coding
    • H03M11/24Static coding using analogue means, e.g. by coding the states of multiple switches into a single multi-level analogue signal or by indicating the type of a device using the voltage level at a specific tap of a resistive divider

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Push-Button Switches (AREA)
  • Electronic Switches (AREA)
  • Keying Circuit Devices (AREA)

Abstract

The invention relates to a system and a method for simultaneous reading of a plurality of buttons or sensors using a single analogue pin of a microcontroller, with applications in the field of multi-functional switches embedded in motor vehicle steering wheels. According to the invention, the system comprises a first multi-functional switch (Cms) and a second multi-functional switch (Cmd), the first multi-functional switch (Cms) comprising at least four buttons or sensors (B1...B4), having each an associated transistor (T1...T4), where the supply voltage (UBAT) is present in the collector of each transistor (T1...T4) coming from the battery of a motor vehicle on which the reading system is mounted, by means of a network of resistors (R1...R4) associated to each transistor, the reading system additionally comprising another network of resistors (R5...R12) which convert the voltages present in the collectors of the transistors (T1...T4) into a single voltage which is reduced to a maximal value admissible by a microcontroller provided in the second switch (Cmd) by means of a divider consisting of some resistors (R13 and R14) of the said second switch (Cmd).The method, as claimed by the invention, consists in reading the voltage from the level of the microcontroller pin and comparing it to some values stored in the microcontroller memory, this way allowing it to recognize which buttons are pressed.

Description

Sistem și metodă pentru citirea simultană a mai multor butoane sau senzori utilizând un singur pin analogic al unui microcontrolerSystem and method for simultaneous reading of several buttons or sensors using a single analog pin of a microcontroller

DescriereDescription

Invenția se referă la un sistem și la o metodă pentru citirea simultană a mai multor butoane sau senzori utilizând un singur pin analogic al unui microcontroler. într-o manieră preferată, dar nelimitativă, domeniul tehnic în care își găsește aplicabilitate prezenta invenție este cel al comutatoarelor multifuncționale incorporate în volanul autoturismelor.The invention relates to a system and a method for simultaneously reading several buttons or sensors using a single analog pin of a microcontroller. In a preferred, but unlimited manner, the technical field in which the present invention is applicable is that of the multifunctional switches incorporated in the car steering wheel.

Așa cum este bine cunoscut în domeniu, pentru a citi starea unui buton sau senzor se folosește, de obicei, un pin digital al unui microcontroler. în situația în care sunt prezente mai multe butoane, se folosesc mai mulți pini, câte un pin pentru fiecare buton, sau pentru a se face economie de pini, se folosește o matrice de butoane cu x linii și y coloane, iar cu ajutorul unui software se determină ce buton a fost apăsat.As is well known in the art, a digital pin of a microcontroller is usually used to read the status of a button or sensor. If several buttons are present, more pins are used, one pin for each button, or to save pins, a matrix of buttons with x lines and y columns is used, and with software determine which button was pressed.

în anumite situații nu se pot citi butoanele digital (perturbații EMC, puțini pini disponibili la microcontroler) și atunci se apelează la citirea butoanelor folosind un pin analogic al microcontrolerului, așa cum este prezentat și în documentul US20120023276. Pentru a realiza acest lucru se folosește un circuit special pentru a se genera tensiuni diferite la apăsarea de butoane diferite.In some situations the digital buttons cannot be read (EMC disturbances, few pins available on the microcontroller) and then the buttons are read using an analog pin of the microcontroller, as shown in document US20120023276. To do this, a special circuit is used to generate different voltages at the push of different buttons.

Tensiunile diferite (cu valori între zero și tensiunea de alimentare a microcontrolerului) sunt citite de pinul analogic al microcontrolerului și cu ajutorul unui software se determină ce buton a fost apăsat. Prin alegerea corectă a rezistențelor și a topologiei circuitului, se pot citi mai multe butoane folosind un singur pin analogic.The different voltages (with values between zero and the supply voltage of the microcontroller) are read by the analog pin of the microcontroller and with the help of a software it is determined which button was pressed. By correctly choosing the resistors and the circuit topology, several buttons can be read using a single analog pin.

Alte soluții cunoscute din stadiul tehnicii sunt dezvăluite, de exemplu, în documentele EP 1615188 A1, US 2007120719 A, DE 2812551 A1, US 6178388 B sau US 4733216 A.Other known solutions of the prior art are disclosed, for example, in EP 1615188 A1, US 2007120719 A, DE 2812551 A1, US 6178388 B or US 4733216 A.

Așa cum a fost menționat în partea introductivă, prezenta invenția își găsește o aplicație particulară în comutatoarele multifuncționale din volanul autoturismelor, însă poate fi folosită în orice alt domeniu tehnic în care există butoane sau senzori cu două stări (PORNIT-OPRIT), care trebuie citite cu un microcontroler. Datorită diferitelor constrângeri și cerințe privind citirea butoanelor din comutatoarele multifuncționale din volanul autovehiculelor (tensiune mică a microcontrolerului, perturbații EMC, număr redus de fire în volan, prețul firelor și mufelor dintre comutatoarele multifuncționale), în prezent se pot citi doar câte două butoane folosind un singur pin (fir) al microcontrolerului (vezi de exemplu Fig. 2 anexată).As mentioned in the introductory part, the present invention finds its particular application in the multifunctional switches in the steering wheel of cars, but can be used in any other technical field where there are two-state buttons or sensors (ON-OFF), which must be read. with a microcontroller. Due to the various constraints and requirements regarding the reading of the buttons in the multifunctional switches in the car steering wheel (low voltage of the microcontroller, EMC disturbances, reduced number of wires in the steering wheel, the price of wires and sockets between the multifunctional switches), at present only one button can be read. single pin (wire) of the microcontroller (see for example Fig. 2 attached).

a 2017 00207to 2017 00207

05/04/201705/04/2017

Dacă microcontrolerul este într-un prim comutator multifuncțional din volan, iar butoanele sunt întrun al doilea comutator multifuncțional, atunci rezultă un număr mare de fire între cele două comutatoare multifuncționale, fire care sunt scumpe.If the microcontroller is in a first multifunction switch on the steering wheel and the buttons are in a second multifunction switch, then a large number of wires results between the two multifunction switches, which are expensive.

Problema tehnică pe care prezenta invenție își propune să o rezolve constă în asigurarea unui sistem și a unei metode care să permită citirea a minim patru sau mai multe butoane dintr-un comutator multifuncțional, folosind un singur pin (fir) al microcontrolerului.The technical problem that the present invention aims to solve is to provide a system and a method to read at least four or more buttons in a multifunction switch, using a single pin (wire) of the microcontroller.

într-un prim aspect, soluția la problema tehnică menționată mai sus constă într-un sistem cuprinzând un prim comutator multifuncțional și un al doilea comutator multifuncțional, primul comutator multifuncțional cuprinzând cel puțin patru butoane sau senzori având fiecare asociat un tranzistor, în care tensiunea de alimentare prezentă în colectorul fiecărui tranzistor provine de la bateria autovehiculului pe care este montat sistemul de citire, prin intermediul unei rețele de rezistențe asociată fiecărui tranzistor, sistemul de citire cuprinzând suplimentar o rețea de rezistențe care convertește tensiunile prezente în colectoarele tranzistoarelor într-o singură tensiune, tensiune care este redusă la o valoare maxim admisibilă pentru un microcontroler prevăzut în al doilea comutator multifuncțional, prin intermediul unui divizor format din niște rezistențe aparținând celui de-al doilea comutator multifuncțional menționat.In a first aspect, the solution to the aforementioned technical problem consists of a system comprising a first multifunctional switch and a second multifunctional switch, the first multifunctional switch comprising at least four buttons or sensors each having a transistor associated, wherein the voltage of power present in the collector of each transistor comes from the battery of the vehicle on which the reading system is mounted, by means of a resistance network associated with each transistor, the reading system further comprising a network of resistors that converts the voltages present in the collectors of the transistors into , voltage which is reduced to a maximum allowable value for a microcontroller provided in the second multifunction switch, by means of a divider consisting of resistors belonging to said second multifunction switch.

într-o manieră avantajoasă, în fiecare colector al fiecărui tranzistor, la acționarea unuia sau mai multor butoane/senzori, este prezent unul din cele două niveluri de tensiune bine definite: tensiunea bateriei autovehiculului sau o tensiune aproximativ zero.In an advantageous manner, in each collector of each transistor, when operating one or more buttons / sensors, one of the two well-defined voltage levels is present: the battery voltage of the vehicle or a voltage approximately zero.

De preferință, toate valorile de tensiune sunt cunoscute și sunt stocate în memoria microcontrolerului sub forma unui tabel.Preferably, all voltage values are known and are stored in the microcontroller's memory as a table.

îritr-o manieră avantajoasă, tensiunea de la nivelul pinului microcontrolerului este citită cu ajutorul unui software, care o compară cu valorile stocate în memoria microcontrolerului, recunoscând astfel care dintre butoane sunt apăsate.In an advantageous manner, the voltage at the pin level of the microcontroller is read using software, which compares it with the values stored in the microcontroller's memory, thus recognizing which of the buttons are pressed.

într-un alt aspect al prezentei invenții, soluția la problema tehnică menționată mai sus constă într-o metodă pentru citirea simultană a mai multor butoane sau senzori, utilizând sistemul conform primului aspect al prezentei invenții, metoda cuprinzând etapele de:In another aspect of the present invention, the solution to the above-mentioned technical problem consists of a method for simultaneously reading several buttons or sensors, using the system according to the first aspect of the present invention, the method comprising the steps of:

- asigurare a unui prim comutator multifuncțional și unui al doilea comutator multifuncțional, primul comutator multifuncțional cuprinzând cel puțin patru butoane sau senzori având fiecare asociat un tranzistor,- providing a first multifunction switch and a second multifunction switch, the first multifunction switch comprising at least four buttons or sensors each having a transistor associated,

- alimentare a sistemului cu o tensiune provenind de la bateria autovehiculului pe care este montat sistemul de citire, prin intermediul unei rețele de rezistențe asociată fiecărui tranzistor,- supplying the system with a voltage from the vehicle battery on which the reading system is mounted, through a resistor network associated with each transistor,

a 2017 00207to 2017 00207

05/04/201705/04/2017

- convertirea tensiunilor prezente în colectoarele tranzistoarelor într-o singură tensiune prin intermediul unei rețele de rezistențe, tensiune care este redusă la o valoare maxim admisibilă pentru un microcontroler prevăzut în al doilea comutator multifuncțional, prin intermediul unui divizor format din niște rezistențe aparținând celui de-al doilea comutator multifuncțional menționat.- converting the voltages present in the transistor collectors into a single voltage through a resistor network, voltage which is reduced to a maximum allowable value for a microcontroller provided in the second multifunction switch, by means of a divider consisting of resistors belonging to the resistor; said second multifunction switch.

într-o manieră preferată, la acționarea unuia sau mai multor butoane/senzori, în fiecare colector al fiecărui tranzistor este prezent unul din cele două niveluri de tensiune bine definite: tensiunea bateriei autovehiculului sau o tensiune aproximativ zero.In a preferred manner, when operating one or more buttons / sensors, each collector of each transistor is present in one of two well-defined voltage levels: the battery voltage of the vehicle or a voltage approximately zero.

în mod avantajos, toate valorile de tensiune sunt cunoscute și sunt stocate în memoria microcontrolerului sub forma unui tabel.Advantageously, all voltage values are known and are stored in the microcontroller's memory as a table.

într-o manieră preferată, metoda conform invenției cuprinde etapa de citire, cu ajutorul unui software, a tensiunii de la nivelul pinului microcontrolerului care o compară cu valorile stocate în memoria microcontrolerului, recunoscând astfel care dintre butoane sunt apăsate.In a preferred manner, the method according to the invention comprises the step of reading, by means of a software, the voltage at the pin level of the microcontroller which compares it with the values stored in the memory of the microcontroller, thus recognizing which of the buttons are pressed.

Avantajele oferite de prezenta invenție sunt evidente. în primul rând, invenția realizează citirea butoanelor sau senzorilor folosind tensiunea de la bateria autovehiculului, ne mai fiind necesară prezența tensiunii de alimentare a microcontrolerului în comutatorul multifuncțional, tensiunea bateriei fiind deja prezentă în comutatorul multifuncțional pentru alte funcții.The advantages offered by the present invention are obvious. First, the invention achieves the reading of the buttons or sensors using the voltage from the vehicle battery, no longer requiring the presence of the supply voltage of the microcontroller in the multifunctional switch, the battery voltage being already present in the multifunctional switch for other functions.

De asemenea, trebuie menționat că prezenta invenție asigură de asemenea următoarele avantaje:It should also be noted that the present invention also provides the following advantages:

- nivelurile de tensiune corespunzătoare fiecărei stări a butonului sunt imune la variațiile tensiunii bateriei, temperatură, etc.,- the voltage levels corresponding to each state of the button are immune to variations in battery voltage, temperature, etc.,

- nivelurile de tensiune sunt clare și perfect echidistante, nu se întrepătrund unele cu altele, așa cum se întâmplă în cazul soluției dezvăluite în documentul US20120023276,- the voltage levels are clear and perfectly equidistant, they do not overlap with each other, as is the case with the solution disclosed in US20120023276,

- se poate detecta dacă sunt apăsate mai multe butoane în același timp,- it can be detected if several buttons are pressed at the same time,

- este nevoie de fire/pini mai puțini între comutatoarele multifuncționale, spre deosebire de implementarea din fig. 2, unde este nevoie de mai multe fire/pini,- less wires / pins are required between the multifunction switches, as opposed to the implementation in fig. 2, where more wires / pins are needed,

- microcontrolerul și conectorul dintre comutatoarele multifuncționale pot avea pini mai putini și deci pot fi mai ieftine,- the microcontroller and the connector between the multifunction switches may have fewer pins and therefore may be cheaper,

- soluția conform invenției prezintă imunitate mai mare la perturbațiile EMC,- the solution according to the invention has greater immunity to EMC disturbances,

- este necesar un număr mai mic de ore pentru implementarea software-ului,- smaller hours are required for software implementation,

- implementarea este rapidă în orice proiect nou.- implementation is fast in any new project.

a 2017 00207to 2017 00207

05/04/201705/04/2017

Alte obiective, avantaje și implementări avantajoase ale prezentei invenții vor reieși mai clar din descrierea detaliată a unui exemplu concret de realizare, dată în legătură cu Figurile anexate, în care:Other objects, advantages and advantageous implementations of the present invention will be clearer from the detailed description of a concrete embodiment, given in connection with the accompanying Figures, wherein:

Fig. 1 ilustrează schema electronică a sistemului conform prezentei invenții:Fig. 1 illustrates the electronic scheme of the system according to the present invention:

Fig. 2 ilustrează o schemă electronică a unui sistem conform stadiului tehnicii;Fig. 2 illustrates an electronic schematic of a system according to the prior art;

Fig. 3 prezintă un tabel cu posibile valori ale tensiunilor detectate la nivelul microcontrolerului;Fig. 3 presents a table with possible values of the voltages detected at the microcontroller level;

Fig. 4 prezintă o simulare comparativă pentru circuitul (CIRCUIT 1) conform documentului US20120023276 și a circuitului conform prezentei invenții (CIRCUIT2). Partea de sus a figurii ilustrează generarea semnalelor necesare simulării butoanelor, butoanele fiind notate cu S.Fig. 4 presents a comparative simulation for the circuit (CIRCUIT 1) according to the document US20120023276 and the circuit according to the present invention (CIRCUIT2). The upper part of the figure illustrates the generation of the signals necessary to simulate the buttons, the buttons being marked with S.

Fig. 5 prezintă schematic rezultatul simulării din Fig. 4, în care cu linie albastră sunt prezentate stările butoanelor în conformitate cu prezenta invenție, iar cu linie roșie stările butoanelor în conformitate cu soluția dezvăluită în US 20120023276. Linia verde indică într-o manieră clară faptul că 2 stări ale butoanelor conform soluției US 20120023276 sunt foarte apropiate și se pot confunda intre ele.Fig. 5 shows schematically the simulation result of Fig. 4, in which the blue states of the buttons according to the present invention are shown with blue line, and the red states of the buttons according to the solution disclosed in US 20120023276. the green line indicates in a clear manner that 2 states of the buttons according to US solution 20120023276 they are very close and can be confused with each other.

Cu referire la Figura 1 anexată, într-o manieră pur ilustrativă, sistemul conform prezentei invenții este prezentat ca având în compunere un comutator multifuncțional stânga Cms și un comutator multifuncțional dreapta Cmd, comutatorul multifuncțional stânga Cms cuprinzând cel puțin patru butoane sau senzori B1B4 având fiecare asociat un tranzistor T1-T4.Referring to the appended Figure 1, in a purely illustrative manner, the system according to the present invention is shown as having a left-hand multifunction switch Cms and a right-hand multifunction switch Cmd, the left-hand multifunction switch Cms comprising at least four buttons4 or having each sensor B14 associated with a T1-T4 transistor.

Sistemul cuprinde de asemenea rezistențele R1 - R14 și tranzistoarele T1, T2, T3, T4. Prin acționarea unuia sau mai multor butoane/senzori B1, B2, B3, B4, la microcontrolerul prevăzut în comutator multifuncțional dreapta Cmd ajunge o tensiune corespunzătoare stării butonului/butoanelor senzorului/senzorilor acționați.The system also comprises resistors R1 - R14 and transistors T1, T2, T3, T4. By actuating one or more buttons / sensors B1, B2, B3, B4, at the microcontroller provided in the right multifunction switch Cmd a voltage corresponding to the state of the button (s) of the sensor (s) operated is reached.

Tensiunea de alimentare UBAT provenind de la bateria autovehiculului pe care este montat sistemul conform invenției, este furnizată, prin intermediul rezistențelor R1, R2, R3, R4, în colectorul tranzistorului corespunzător T1, T2, T3, T4.The UBAT supply voltage from the vehicle battery on which the system according to the invention is mounted, is supplied, through resistors R1, R2, R3, R4, to the corresponding transistor collector T1, T2, T3, T4.

La apăsarea unui buton, tranzistorul respectiv este deschis și pune la masă tensiunea prezentă în colectorul sau, în colectorul său tensiunea devenind aproape zero. Putem spune, deci, că în fiecare colector al tranzistorului avem două niveluri de tensiune bine definite: tensiunea bateriei UBAT și zero, în mod diferit față de soluția dezvăluită în US20120023276. De exemplu, conform soluției din US20120023276, la apăsarea D2 (notațiile fiind cele folosite în Fig. 1 din documentul US20120023276), tensiunea aplicată pe rezistența de 2k trece prin rezistența de 1 k spre celelalte intrări de la butoane.At the push of a button, the respective transistor is opened and puts the voltage present in the collector or, in its collector, the voltage becomes almost zero. We can say, therefore, that in each collector of the transistor we have two well-defined voltage levels: the voltage of the UBAT battery and zero, differently from the solution disclosed in US20120023276. For example, according to the solution of US20120023276, when pressing D2 (the notations being the ones used in Fig. 1 of the document US20120023276), the voltage applied on the 2k resistor passes through the 1k resistor to the other button inputs.

a 2017 00207to 2017 00207

05/04/201705/04/2017

Rețeaua de rezistențe R5, R6, R7, R8, R9, R10, R11, R12, convertește tensiunile prezente în cele patru colectoare ale tranzistoarelor T1-T4, într-o singură tensiune, care, cu ajutorul divizorul format din rezistențele R13 și R14 prezente în comutatorul multifuncțional dreapta Cmd, este redusă la o valoare maxim admisibilă pentru microcorrtroler, și anume UADC.The resistor network R5, R6, R7, R8, R9, R10, R11, R12, converts the voltages present in the four collectors of the transistors T1-T4, into a single voltage, which, with the help of the divider formed by the resistors R13 and R14 present. In the right multifunction switch Cmd, it is reduced to a maximum allowable value for the microcorrtroller, namely UADC.

Toate valorile de tensiune UADC sunt cunoscute și sunt stocate în memoria microcontrolerului întrun tabel asemănător cu tabelul din Fig. 3.All UADC voltage values are known and stored in the microcontroller memory in a table similar to the table in Fig. 3.

Software-ul, care citește tensiunea UADC de la nivelul pinului microcontrolerului și o compară cu valorile din tabel, recunoaște care sunt butoanele apăsate.The software, which reads the UADC voltage from the microcontroller pin level and compares it with the values in the table, recognizes which buttons are pressed.

Rezumând, metoda pentru citirea simultană a mai multor butoane sau senzori, în conformitate cu prezenta invenție, cuprinde următoarele etapele:In summary, the method for simultaneous reading of several buttons or sensors, according to the present invention, comprises the following steps:

- asigurare a unui prim comutator multifuncțional (sau stânga) Cms și unui al doilea comutator multifuncțional (sau dreapta) Cmd, primul comutator multifuncțional Cms cuprinzând cel puțin patru butoane sau senzori B1-B4 având fiecare asociat un tranzistor T1-T4,- providing a first (or left) Cms multifunction switch and a second (or right) Cmd multifunction switch, the first Cms multifunction switch comprising at least four B1-B4 buttons or sensors each having a T1-T4 transistor,

- alimentarea sistemului cu o tensiune UBAT provenind de la bateria autovehiculului pe care este montat sistemul de citire, prin intermediul unei rețele de rezistențe R1-R4 asociată fiecărui tranzistor,- supplying the system with a UBAT voltage coming from the battery of the vehicle on which the reading system is mounted, via a network of resistors R1-R4 associated with each transistor,

- convertirea tensiunilor prezente în colectoarele tranzistoarelor T1-T4 într-o singură tensiune prin intermediul unei rețele de rezistențe R5-R12, tensiune care este redusă la o valoare maxim admisibilă UADC pentru un microcontroler prevăzut în al doilea comutator multifuncțional Cmd, prin intermediul unui divizor format din niște rezistențe R13 și R14 aparținând celui de-al doilea comutator multifuncțional menționat Cmd.- the conversion of the voltages present in the collectors of the transistors T1-T4 in a single voltage through a network of resistors R5-R12, voltage that is reduced to a maximum allowable value UADC for a microcontroller provided in the second multifunction switch Cmd, through a divider consisting of resistors R13 and R14 belonging to the second multifunction switch mentioned Cmd.

în mod avantajos, și așa cum a fost menționat mai sus, la acționarea unuia sau mai multor butoane/senzori B1-B4, în fiecare colector al fiecărui tranzistor T1-T4 sunt prezente două niveluri de tensiune bine definite: tensiunea bateriei autovehiculului UBAT și o tensiune aproximativ zero.Advantageously, and as mentioned above, when one or more buttons / sensors B1-B4 are operated, two well-defined voltage levels are present in each collector of each T1-T4 transistor: the UBAT battery voltage and one voltage about zero.

Sub forma unui exemplu, fiind date patru butoane/senzori B1-B4, vor exista 16 cazuri care trebuie detectate de microcontroler, cazuri care sunt prezente în tabelul din Fig.3As an example, given four buttons / sensors B1-B4, there will be 16 cases that must be detected by the microcontroller, cases that are present in the table in Fig.3

De exemplu, dacă microcontrolerul citește tensiunea de 1,87 V înseamnă că este apăsat butonul B4, iar dacă citește o tensiune de 3,28 V, înseamnă că sunt apăsate simultan butoanele B1 și B2.For example, if the microcontroller reads the 1.87 V voltage, it means that the B4 button is pressed, and if it reads a 3.28 V voltage, it means that the B1 and B2 buttons are pressed simultaneously.

Bineînțeles, fără a prejudicia principiul invenției, detaliile constructive și implementările pot varia larg în raport cu ceea ce este descris și ilustrat pur cu titlu de exemplu, fără a ne îndepărta de scopul prezentei invenții, așa cum este definit în revendicările anexate.Of course, without prejudice to the principle of the invention, the construction details and implementations may vary widely in relation to what is described and illustrated purely by way of example, without departing from the scope of the present invention, as defined in the appended claims.

Claims (8)

REVENDICĂRI 1.Sistem pentru citirea simultană a mai multor butoane sau senzori, cuprinzând un prim comutator multifuncțional (Cms) și un al doilea comutator multifuncțional (Cmd), primul comutator multifuncțional (Cms) cuprinzând cel puțin patru butoane sau senzori (B1-B4) având fiecare asociat un tranzistor (T1-T4), în care tensiunea de alimentare (UBAT) prezentă în colectorul fiecărui tranzistor (T1-T4) provenind de la bateria autovehiculului pe care este montat sistemul de citire, prin intermediul unei rețele de rezistențe (R1-R4) asociată fiecărui tranzistor, sistemul de citire cuprinzând suplimentar o rețea de rezistențe (R5-R12) care convertește tensiunile prezente în colectoarele tranzistoarelor (T1-T4) într-o singură tensiune, tensiune care este redusă la o valoare maxim admisibilă (UADC) pentru un microcontroler prevăzut în al doilea comutator multifuncțional (Cmd), prin intermediul unui divizor format din niște rezistențe (R13 și R14) aparținând celui de-al doilea comutator multifuncțional menționat (Cmd).1.System for the simultaneous reading of several buttons or sensors, comprising a first multifunction switch (Cms) and a second multifunction switch (Cmd), the first multifunction switch (Cms) comprising at least four buttons or sensors (B1-B4) having each associated a transistor (T1-T4), in which the supply voltage (UBAT) present in the collector of each transistor (T1-T4) coming from the battery of the vehicle on which the reading system is mounted, through a resistance network (R1- R4) associated with each transistor, the reading system further comprising a resistor network (R5-R12) that converts the voltages present in the transistor collectors (T1-T4) into a single voltage, voltage that is reduced to a maximum allowable value (UADC) for a microcontroller provided in the second multifunction switch (Cmd), through a divider consisting of resistors (R13 and R14) belonging to the one of -the second mentioned multifunction switch (Cmd). 2. Sistem conform revendicării 1, caracterizat prin aceea câ în fiecare colector al fiecărui tranzistor (T1-T4), la acționarea unuia sau mai multor butoane/senzori, este prezent unul din cele două niveluri de tensiune bine definite: tensiunea bateriei autovehiculului (UBAT) sau o tensiune aproximativ zero.2. System according to claim 1, characterized in that in each collector of each transistor (T1-T4), when one or more buttons / sensors are actuated, one of the two well-defined voltage levels is present: the vehicle battery voltage (UBAT). ) or about zero voltage. 3. Sistem conform revendicării 1, caracterizat prin aceea că toate valorile de tensiune (UADC) sunt cunoscute și sunt stocate în memoria microcoritrolerului sub forma unui tabel.System according to claim 1, characterized in that all the voltage values (UADCs) are known and are stored in the microcoritroller memory as a table. 4. Sistem conform revendicării 3, caracterizat prin aceea că tensiunea (UADC) de la nivelul pinului microcoritrolerului este citită cu ajutorul unui software, care o compară cu valorile stocate în memoria microcoritrolerului, recunoscând astfel care dintre butoane (B1-B4) sunt apăsate.System according to claim 3, characterized in that the voltage (UADC) at the level of the microcoritroler pin is read using a software, which compares it with the values stored in the microcoritroler memory, thus recognizing which of the buttons (B1-B4) are pressed. 5. Metodă pentru citirea simultană a mai multor butoane sau senzori, utilizând sistemul conform oricăreia dintre revendicările 1 la 4, cuprinzând etapele de:A method for simultaneously reading multiple buttons or sensors, using the system according to any of claims 1 to 4, comprising the steps of: - asigurare a unui prim comutator multifuncțional (Cms) și unui al doilea comutator multifuncțional (Cmd), primul comutator multifuncțional (Cms) cuprinzând cel puțin patru butoane sau senzori (B1-B4) având fiecare asociat un tranzistor (T1-T4), a 2017 00207- providing a first multifunction switch (Cms) and a second multifunction switch (Cmd), the first multifunction switch (Cms) comprising at least four buttons or sensors (B1-B4) having each associated a transistor (T1-T4), a 2017 00207 05/04/201705/04/2017 - alimentarea sistemului cu o tensiune (UBAT) provenind de la bateria autovehiculului pe care este montat sistemul de citire, prin intermediul unei rețele de rezistențe (R1-R4) asociată fiecărui tranzistor,- supplying the system with a voltage (UBAT) coming from the battery of the vehicle on which the reading system is mounted, via a resistor network (R1-R4) associated with each transistor, - convertirea tensiunilor prezente în colectoarele tranzistoarelor (T1-T4) într-o singură tensiune prin intermediul unei rețele de rezistențe (R5-R12), tensiune care este redusă la o valoare maxim admisibilă (UADC) pentru un microcontroler prevăzut în al doilea comutator multifuncțional (Cmd), prin intermediul unui divizor format din niște rezistențe (R13 și R14) aparținând celui de-al doilea comutator multifuncțional menționat (Cmd).- converting the voltages present in the transistor collectors (T1-T4) into a single voltage through a resistor network (R5-R12), voltage that is reduced to a maximum allowable value (UADC) for a microcontroller provided in the second multifunction switch (Cmd), through a divider consisting of resistors (R13 and R14) belonging to the second mentioned multifunction switch (Cmd). 6. Metodă conform revendicării 5, caracterizată prin aceea că, la acționarea unuia sau mai multor butoane/senzori (B1-B4), în fiecare colector al fiecărui tranzistor (T1-T4) este prezent unul din cele două niveluri de tensiune bine definite: tensiunea bateriei autovehiculului (UBAT) sau o tensiune aproximativ zero.6. Method according to claim 5, characterized in that, when operating one or more buttons / sensors (B1-B4), in each collector of each transistor (T1-T4) one of the two well-defined voltage levels is present: vehicle battery voltage (UBAT) or approximately zero voltage. 7. Metodă conform revendicării 6, caracterizată prin aceea că toate valorile de tensiune (UADC) sunt cunoscute și sunt stocate în memoria microcontrolerului sub forma unui tabel.Method according to claim 6, characterized in that all voltage values (UADCs) are known and stored in the microcontroller's memory as a table. 8. Metodă conform revendicării 7, caracterizată prin aceea că aceasta cuprinde etapa de citire, cu ajutorul unui software, a tensiunii (UADC) de la nivelul pinului microcontrolerului care o compară cu valorile stocate în memoria microcontrolerului, recunoscând astfel care dintre butoane (B1-B4) sunt apăsate.8. Method according to claim 7, characterized in that it comprises the step of reading, by means of a software, the voltage (UADC) at the level of the microcontroller pin, which compares it with the values stored in the microcontroller's memory, thus recognizing which of the buttons (B1- B4) are pressed.
ROA201700207A 2017-04-05 2017-04-05 System and method of simultaneous reading of a plurality of buttons or sensors using a single analogue pin of a microcontroller RO132882A2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
ROA201700207A RO132882A2 (en) 2017-04-05 2017-04-05 System and method of simultaneous reading of a plurality of buttons or sensors using a single analogue pin of a microcontroller
DE102018107960.5A DE102018107960B4 (en) 2017-04-05 2018-04-04 Apparatus and method for sensing multiple probes or sensors simultaneously using a single analog input of a microcontroller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
ROA201700207A RO132882A2 (en) 2017-04-05 2017-04-05 System and method of simultaneous reading of a plurality of buttons or sensors using a single analogue pin of a microcontroller

Publications (1)

Publication Number Publication Date
RO132882A2 true RO132882A2 (en) 2018-10-30

Family

ID=63587484

Family Applications (1)

Application Number Title Priority Date Filing Date
ROA201700207A RO132882A2 (en) 2017-04-05 2017-04-05 System and method of simultaneous reading of a plurality of buttons or sensors using a single analogue pin of a microcontroller

Country Status (2)

Country Link
DE (1) DE102018107960B4 (en)
RO (1) RO132882A2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE2812551A1 (en) 1978-03-22 1979-09-27 Bosch Gmbh Robert D=A converter with resistor network - has output stage connected to terminal for leading bit in network
US4733216A (en) 1986-10-29 1988-03-22 Allied Corporation N+1 bit resolution from an N bit A/D converter
DE19512896A1 (en) 1995-04-06 1996-10-10 Opel Adam Ag Device for operating at least one device installed in a motor vehicle
US6178388B1 (en) 1998-11-13 2001-01-23 Qualcomm Incorporated Method and apparatus for calibrating a resistive ladder switching matrix
EP1615188A1 (en) 2004-07-09 2006-01-11 Thomson Licensing Circuit and interface for remote control with hold key
US7248195B2 (en) 2005-11-30 2007-07-24 Symbol Technologies, Inc. Methods and apparatus for multiplexed digital inputs using an analog-to-digital converter
WO2011156675A2 (en) 2010-06-11 2011-12-15 Adc Telecommunications, Inc. Switch-state information aggregation
DE102013201227A1 (en) 2012-01-27 2013-08-01 Steering Solutions Ip Holding Corporation Steering wheel arrangement with operating elements

Also Published As

Publication number Publication date
DE102018107960A1 (en) 2018-10-11
DE102018107960B4 (en) 2022-08-18

Similar Documents

Publication Publication Date Title
CN102591244A (en) Bus-based input/output (IO) acquisition and control extending device
CN111799620A (en) Electrical connection device and charging cable for electric vehicles
CN202488619U (en) Hardware configuration identification circuit and set top box
EP1514737A3 (en) Power supply for vehicles
RO132882A2 (en) System and method of simultaneous reading of a plurality of buttons or sensors using a single analogue pin of a microcontroller
US20070066147A1 (en) Modular control system with terminal and function modules
CN105703772A (en) AD detection circuit and electric cooker with AD detection circuit
CN204846265U (en) Keying circuit is controlled in electric motor car
CN104536918A (en) Method for expanding IO (Input/Output) port of FPGA (Field-Programmable Gate Array) through CPLD (Complex Programmable Logic Device)
CN204145529U (en) A kind of master-slave mode CAN module
CN102279060A (en) Plug-and-play type temperature sensor and forming method thereof
CN104541592B (en) Intelligent object
US2132214A (en) Measuring system
CN205139758U (en) Excess temperature protection control scheme
CN206773787U (en) the unlocking control circuit of electric lock
CN207637711U (en) Control relay circuit and system
CN205959193U (en) USB timesharing multiplex circuit based on USB change over switch
US2193427A (en) Telephone system
CN105896193A (en) Intelligent solid low-voltage direct-current electric junction box
JPH019085Y2 (en)
CN202305603U (en) Vehicle system signal load box
CN202050400U (en) Serial port connection line management check command type 8K sensor 28N/2 groups of home appliance wiring seats
CN213715722U (en) Encoder multiplex line
US2314933A (en) Telephone line circuit
CN109716478A (en) Motor starter