Smart home system turns on lights by voice. Smart home from Apple, Google and Yandex - voice control. Smart LED strip Philips Hue LightStrips Plus

The Jaco switch is the world's first multi-functional talking switch that is fully voice controlled without having to record voice samples first! The switch has 22 functions, including a talking clock, an intelligent talking alarm clock, a timer and a sleep timer, remote control using a remote control, convenient touch control, special modes: “Nanny”, “Disco”, “Snoring Treatment”, as well as much more. The device was developed on a Microchip PIC18F2320 microcontroller. A description of this project was published in the magazine "Radio Amateur" N7 and N8 for 2005. The PRO Development company carries out custom development of electronics for household appliances and home security and control systems, including smart home systems.

Development electronic devices and systems with voice control on just one inexpensive microcontroller that software implements all functions at once - myth or reality? How many functions does your switch have? Only one - turning on the light? The Jaco switch has 22 functions! To use all these functions, it is not necessary to read the instructions - the talking switch itself will prompt you to select the desired action.

Main functions and features of the electronic switch "Jaco"

    A talking clock with backup power that does not require battery replacement.

    Intelligent talking alarm clock.

    Intelligent talking timer.

    Programmable light switching on and off in the morning and evening.

    Creating an additional effect of your presence in the apartment.

    Sleep timer to turn off the light after a specified time.

    Disco mode for light and music decoration of parties.

    Nanny mode for more care for your baby.

    Snoring Treatment mode allows everyone to sleep more peacefully.

    The Training mode turns the switch into a real Jaco parrot, repeating after you the words of your commands.

    Remote control of the light using your remote control for audio-video equipment with one button chosen by you, with its code memorized.

    Advanced control - remote control of all switch functions using your remote control.

    Manual control via non-contact capacitive sensor.

    Extending lamp life ( smooth start Sveta).

    Smooth adjustment of lamp brightness.

    Automatically turn off the light 24 hours after turning it on.

    Saving your settings and settings in non-volatile memory.

    Ability to reset all settings with one command (restart the program).

    Light indication of operating modes - red LED indicator.

    Compact Gainta case made of high-quality ABS plastic.

A multifunctional light switch with voice control (hereinafter referred to as the switch) is designed for installation in place of a standard switch for hidden wiring, does not require changing the size of the installation niche in the wall, is mounted in the same way as a regular switch for hidden wiring, is designed for a voltage of 220V and can control lamps with a total power of up to 600W. The switch housing has overall dimensions of 135x70x24mm. On the front panel of the switch there are: a red indicator, a microphone, a loudspeaker, a window for receiving the signal from the remote control remote control and a capacitive sensor for manual light control.

The red indicator located on the front panel of the switch can display four operating modes of the switch:

    The indicator is constantly on when the light is off.

    The indicator is off when the light is on.

    The indicator flashes rarely. If there is noise in the room that might prevent the switch from recognizing voice commands, the indicator will flash regardless of whether the lights are on or off. Once the noise is eliminated, the indicator will stop flashing after five seconds, and then the switch will be ready to receive voice commands.

    The indicator blinks rapidly. During a dialogue with you, while waiting for a response from you, the switch indicator begins to blink rapidly, indicating that the switch is listening to you attentively and is ready to receive a command.

Light control by placing your hand near the capacitive sensor. This function allows you to turn on the light to the previously set lamp brightness, turn it off or set a new lamp brightness. To turn the light on or off, just briefly touch the sensor with your hand, and to select a new brightness for the lamps, you should hold your hand on the sensor. As a result, the switch will set minimum brightness the lamps are burning and will begin to gradually increase it. When the desired brightness is achieved, remove your hand from the sensor. The switch will remember this brightness level, and will always turn on the light at your chosen brightness until you select another one.

Control the light using the selected button on any remote control. You can control the switch using almost any remote control you have. For example, the remote control for your TV. First you need to train the switch to respond to the remote control button you select. To do this, touch the sensor with your hand and hold your hand on it until maximum brightness is reached and another ten seconds until you receive sound signal, indicating that the switch has entered the learning mode. Then, pointing the remote control at the switch, press and hold briefly (until you receive a sound signal from the switch) the button you selected on the remote control. Release the remote control button. The training is over. Now you can control the switch from the remote control.

Control from the remote control can be carried out in two ways. You can choose which one is more convenient for you. Using the remote control, you can control the switch in the same way as you control the switch with your hand using a sensor, or in the same way as you do it with your voice, only instead of the command “Yes” you will press the remote control button (advanced control mode). In the latter case, the first press of the button you select immediately opens the voice menu of the switch. This method is interesting because it allows you to control all functions of the switch from the remote control. You can turn on or off the advanced control mode only by speaking to the switch and selecting “Enable (turn off) advanced control from the remote control” in the voice menu (see below). After turning off the advanced mode, a simple control mode will be used, allowing you to turn the light on or off and select the brightness of the lamps.

The switch can recognize and remember the codes of the vast majority of remote controls, including even codes with variable bits (for example, the code in the RC-5 standard), but occasionally some manufacturers produce remote controls that do not allow reading and storing the button press code. In this case, the switch, when you train it to respond to the button you have chosen, analyzing the data received from the remote control, will automatically decide that it is impossible to remember the button code of such a remote control, give out a special long intermittent sound signal and turn on an alternative control mode from the remote control. The alternative mode differs from the usual one in that the switch will respond to pressing any button on any remote control. In this case, to control the switch, you must briefly press and release any button on the remote control. The switch will respond with a long beep. During the beep, you must press the button on the remote control again and release immediately if you want to turn the light on or off. When working with such a remote control, only the simplest control mode is available (turning the light on or off). In this case, the advanced control mode is automatically turned off and the item “Enable (disable) advanced control from the remote control” is skipped in the voice menu. If suddenly the remote control you are using turns out to be from this series of remote controls, the code of which is impossible to remember, then it is advisable to use some other remote control to control the switch. Usually, based on technical characteristics, it is optimal to use TV remotes. Testing of all existing remote control codes (from different manufacturers) was carried out using the Philips SBC RU880/00 ​​universal programmable remote control. You can also use almost any Universal remote, selecting on it, for example, the control code for a Sony TV.

You can control the switch by giving it voice commands. No special tuning for a specific person’s voice is required. A total of four commands are used: “Switch, open menu”, “Yes”, “Back to top”, “Don’t disturb”.

Commands must be pronounced in a calm voice from a distance of 1 to 5 meters. Avoid shouting or saying commands too quietly. If you are on the side (relative to the switch) at maximum range, then you will have to pronounce commands much louder. Commands should be pronounced in the most normal voice, pronouncing all words legibly and clearly enough. Just as sometimes your interlocutor cannot understand what you said and asks you to repeat it, so the switch, in that rare case, if it cannot recognize the received command, will ask you: “Please repeat.” In this case, you just need to repeat the command. Perhaps it was not recognized due to some extraneous noise in the room, incorrect pronunciation, too much or too little distance from the switch. If there is constant noise in the room, use (to control the switch) the remote control (advanced mode, as mentioned above, allows you to control all functions). If voice control causes you any difficulties, then especially for this case the switch has a “Training Mode”, which will allow you to practice operating the switch.

The command “Switch, open menu” is used to open the voice menu of the switch. Attention! It can only be said when the red indicator on the switch is NOT FLASHING. Otherwise, any commands are ignored. The indicator flashes when there is noise in the room that may prevent the switch from recognizing voice commands. Five seconds after the noise stops, the indicator will stop flashing and you can say the command “Switch, open menu.” The phrase “Switch, open menu” must be pronounced without lengthy pauses separating the words, that is, in the same way as you say it in a normal conversation with a person. After this, the switch will say: “Jaco is good.” You must immediately answer “Yes” if you want to open the menu (the answer should arrive within 2 seconds), or remain silent if you do not need to open the menu. When waiting for a response from you, the switch indicator begins to blink frequently (quickly), indicating that the switch is listening to you attentively and is ready to receive a command.

If you do not need to open the menu, then after the switch phrase “Jaco is good,” you can say the command “Don’t disturb.” In this case, the pause time before receiving a command after the noise stops will increase to 15 seconds. This mode can be used when occasionally phrases in your conversation, similar to the command “Switch, open menu”, cause the switch to offer to open the menu - the switch says: “Jaco is good”; which is the norm for the behavior of both the Jaco parrot and the switch "Jaco", and you, on the contrary, would like to maintain silence during your conversation. The subsequent opening of the voice menu with the command "Yes" will restore the previous pause value - 5 seconds.

The "Yes" command allows you to select the desired menu item and causes the switch to perform the corresponding action. For example, by answering “Yes” after the switch prompts “Turn on the light,” you will thereby give a command to turn on the light. If you remain silent, the switch will move to the next menu item. Thus, silence expresses your refusal to carry out the action proposed by the switch.

The "Back to Top" command can be used anywhere in the menu to unconditionally move to the beginning of the menu. After pronouncing it, the switch will say: “Jaco is good.” You must immediately answer “Yes” if you want to leave the menu open, or remain silent if you do not need to open the menu (that is, if you want to close the menu). In the latter case, you can also say the command “Don’t disturb.” Thus, the "Back to Top" command can be used not only to go to the top of any menu item, but also to close the menu at any time.

Timer mode

The timer uses a countdown. After the set time delay has expired, a sound signal sounds (see Triggering the Alarm and Timer). The mode is very convenient when you need to sleep for an hour or two, but you don’t want to calculate at what time you should set the alarm. The maximum timer holding time is 23 hours 59 minutes. If you need to turn off the timer before the set shutter speed has expired, you can do this in the same menu item where you turned on the timer. Only now you will be asked not to turn on, but to turn off the timer. Timer accuracy ±1 min.

Triggering the Alarm and Timer

When an alarm clock or timer goes off, a melodic signal is heard, the switch pronounces the current time and a proposal to turn off the signal - “Turn off”. If you remain silent, this sequence will be repeated 5 times. If you answer “Yes”, the signal will be turned off. The alarm will ring again tomorrow if it is not turned off through the voice menu in the appropriate item, and the timer turns off automatically after it is triggered. After turning off the alarm or timer with the "Yes" command, you will automatically be prompted to open the menu - "Jaco is good" so that you can open the menu with the "Yes" command. After this, for example, you can turn on the light by answering “Yes” to the “Turn on lights” prompt, or you can select “Set brightness” to turn the light on at a low brightness that is more pleasing to the eye when you wake up. The alarm or timer will also be turned off if you say anything other than “Yes,” such as “Don't disturb,” but you won't be prompted to open the menu.

Sleep timer mode

The sleep timer uses a countdown to turn off the lights. Can be used for children who don't like to fall asleep in the dark, or in conjunction with the TV's sleep timer set to the same time as the switch's sleep timer (in this case, the lights and TV turn off together). Now the light in your room will not remain on until the morning. The maximum sleep timer value is 23 hours 59 minutes. If you need to turn off the sleep timer before the set shutter speed has expired, you can do this in the same menu item where you turned on the sleep timer. Only now you will be asked not to turn on, but to turn off the sleep timer. The accuracy of the sleep timer is ±1 min.

Auto and Security modes

Auto mode allows you to set two periods of time per day during which the light will be automatically turned on. If the light needs to be turned on only once a day, then “Time 2” for turning the light on and off should be set to zero (see the description of the voice menu. Auto mode can be used to automatically control the apartment lighting in the morning and evening hours. Security mode - This is an extension of the Auto mode, which allows you to create the effect of your presence in the apartment while you are on vacation. Security mode uses the time settings from the Auto mode, but the time of turning on and off the lights becomes unstable with random delays from 0 to 15 minutes for turning on and off turning off the lights, which simulates the actual turning on of the lights earlier or later by a person who wakes up, returns from work, or goes to bed.

Disco mode

When listening to music, the "Disco" mode creates lighting effects that depend on the frequency spectrum and volume of the music signal. The guests you invited to your birthday, on New Year or for any other holiday, they will be absolutely delighted.

Nanny mode

The mode should be turned on before you put your child to bed. The switch will immediately turn on the light at 30% brightness. You can put your child to sleep for as long as you like or tell him fairy tales. When leaving the children's room, turn off the lights using the manual control or remote control. After five seconds, if there is no more noise, the switch will activate Nanny mode. In this mode, upon hearing a child's cry or any other sufficiently loud sound, the switch will automatically turn on the light at 30% brightness. Your little child will immediately feel extra care for him.

Snoring treatment mode

This mode allows you to force a snoring person not to disturb others. The switch, upon hearing the sounds of snoring or some other sound, gives a special sound signal, not enough to wake a person, but sufficient to make him, half asleep, turn over on his side and stop snoring. Typically, the role of such a device is performed, as is known, by the elbow of the wife of a snoring husband, but now this responsibility can be assigned to “Jaco”. If, after giving the signal, the person does not stop snoring, the switch will no longer give a signal, so as not to disturb normally sleeping people. If the person stops snoring for at least 5 seconds, the switch will sound a signal again, hearing the sound of snoring.

Your answer “Yes”, spoken after the switch phrase “Jaco is good”, will open a voice menu, a full description of which is given in the instructions for the switch. In any place in the voice menu you can give the switch the command “Home”. In this case, the voice menu remains open, but the switch will again begin to pronounce all the items in the voice menu, starting with the phrase “Jaco is good” (you must answer “Yes” to this phrase, otherwise the menu will be closed). After performing a function (for example, turning a light on or off), the switch prompts you to close the menu. To continue the dialogue with the switch, say the command “Back”. Silence or the "Don't disturb" command will close the menu.

The switch has a built-in lithium battery designed to last the entire life of the switch (it does not require replacement), which allows it to continue timing even when the lights in your house are turned off. That is, in the morning, despite the night power outage, the alarm clock of the switch will ring exactly at the appointed time. If there is no power for more than 18 hours, the time and alarm settings will be forcibly reset.

The switch remembers the set brightness. If you turn off the light and then turn it on after any time, the brightness will be exactly the same as what you set before. You can use a chandelier that contains many powerful lamps to obtain softer and at the same time uniform lighting. If you choose the minimum brightness of the lamps, then the chandelier actually turns into a night light.

24 hours after turning on the light or changing the brightness of the lamps, the light will be automatically extinguished. This is necessary so that you do not accidentally leave it burning (due to forgetfulness) for a week or more when going to a country house or on vacation.

The switch protects your lamps, extending their life. This effect is achieved by smoothly switching on the lamps. As is known, at the moment the lamp is turned on, a current approximately ten times greater than that passes through its filament. rated current lamps. That is, at the initial moment of time, a lamp with a rated power of 100 Watts releases up to 1000 Watts of power. This is why the lamps burn out the moment they are turned on. Thus, the smooth switching on of the lamps, which is pleasing to the eye, also allows you to extend their service life, which will allow you to change the lamps much less often.

The switch does not have mechanical parts moving during operation, which, as is known, would lead to a decrease in reliability. Manual control of the light is carried out via a capacitive sensor, which responds to the presentation of the hand. The switch does not have switched electrical contacts that could burn, spark, or create radio interference. It uses only the best electronic components from the world's leading manufacturers, which made it possible to create for you this smart and perfect switch that loves to communicate with you.

Switch installation

As already mentioned, the switch is fully suitable for installation in place of a standard flush-mounted switch, does not require changes in the size of the installation niche in the wall and is mounted in the same way as a regular flush-mounted switch. The only difference is that this switch requires a neutral wire, but this is not at all difficult to provide. How to do it? There are two ways. You can choose the simplest and most suitable one for you. In this case, it is quite possible to do without laying an additional wire; you just need to connect the existing wires a little differently than before.

The first way to connect the neutral wire

(if you previously installed a switch with two keys)

The figure below shows a diagram for turning on lamps using a standard switch with two keys:

The neutral wire is connected to the lamps, but it is only on the ceiling. How do we get it in the switch niche? Very simple. We actually free one of the two wires going from the chandelier to the switch, since we won't need it to control the lamps anyway, and connect it to the neutral wire coming out of the ceiling. Thus, we get a neutral wire in the switch niche. Look at the diagram:

The wires coming out of the Jaco switch have the following color markings: PHASE - brown wire, ZERO - blue wire, LAMPS - yellow wire (the yellow wire may have a combined yellow-green color). Now let's learn more about how to connect. It is more convenient to start when the old switch is removed from the niche, but all the wires remain connected to it. Voltage must be supplied to the apartment network. Turn both switch keys to the off position. The light will be turned off, of course. Using an indicator screwdriver, determine which wire coming to the switch has voltage. There will only be voltage on one of these three wires. This wire is “PHASE”. Mark it with a brown marker or piece of tape that says "PHASE". Then turn both switch keys to the on position. Now let's check the voltage on the wires coming to the chandelier. On two of them the indicator screwdriver will show voltage, but on the third there will be no voltage. This wire without voltage is “ZERO”. Mark it with a blue marker or a piece of tape that says "ZERO." Move one key of the switch to the off position (any key of the two available). Your switch has three contacts. Use an indicator screwdriver to check which contact there is no voltage (it will be absent on the contact corresponding to the switched off key). Label the wire connected to this pin as "ZERO". Mark it with a blue marker or a piece of tape that says "ZERO." Thus, in the niche of the switch we found two wires marked - “ZERO” and “PHASE”. The remaining wire is "LAMPS". Mark it with a yellow marker or a piece of tape that says "LAMPS". Let's return to the wires coming to the chandelier. One of them is already marked with us as “ZERO”. Check the other two with an indicator screwdriver. One will have voltage and the other will not. The wire without voltage should be marked somehow and its name should be remembered as “NEW ZERO”. The remaining wire is "LAMPS". Mark it with a yellow marker or a piece of tape that says "LAMPS". Now turn off the electricity supply to the apartment using the switch installed in the electrical panel. Make sure there is no voltage on the "PHASE" wire coming to the switch. Go back to the wires coming to the chandelier. Disconnect the "NEW ZERO" wire coming from the ceiling from the terminal and connect it (one terminal) to the "ZERO" wire. From the free terminal (on which the “NEW ZERO” wire was previously located), disconnect the wire coming to it from the chandelier side, and connect this wire to the “LAMPS” terminal, combining it with the wire already there. Now the wires to the chandelier are completely connected, you can close them and return to the switch. Disconnect the wires from the old switch and connect them to the Jaco switch in accordance with the markings: PHASE - brown wire, ZERO - blue wire, LAMPS - yellow wire. Carefully remove the two round plastic plugs from the front panel of the switch, located on either side of the "capacity sensor" inscription (do not lose them). Under them, holes will open for a Phillips screwdriver, which can be used to tighten the mounting fastening screws. Insert the switch into the wall niche and tighten the mounting screws. Reinstall the two round plastic plugs on the faceplate of the switch. Turn on the electricity supply to the apartment using the switch installed in the electrical panel. Do not place your hand close to the switch for ten seconds after power is turned on. At this time it goes automatic setting capacitive sensor. After a short beep, the switch is ready for operation.

In this case, the neutral wire can be taken from a box located in a wall niche under the ceiling (directly above the switch) or from a socket located under the switch. You will need a piece of wire. This wire is used only to power the electronic part of the switch. The current through it is very small, so a wire of almost any cross-section, with insulation designed for a voltage of ~220V, is suitable. The wire is pulled through a channel in the wall to the switch niche. Look at the diagram:

The development of electronics for the Jaco switch was carried out using a Microchip PIC18F2320 microcontroller. The following parts are used in the circuit: a chip for recording voice menu phrases ISD2560, an audio power amplifier MC34119, an IR signal receiver TSOP1736, an operational amplifier MCP601.

Why is this switch called "Jaco"?

The "Red-tailed Jaco" (African gray parrot) is considered the most capable of conversation among the parrots. He can remember and use, linking to events, up to 100 or more different words and phrases. This allows him to conduct an almost meaningful dialogue with a person. At the same time, he very similarly copies the voices of different people. It is believed that the intelligence of this bird is approximately equal to the intelligence of a six-year-old child. The lifespan of a Jaco parrot is comparable to the lifespan of a human. Because this switch can wake you up in the morning, carry on a conversation with you, carry out your commands, is reliable and durable, and also because it is as stylish, fashionable and smart as the Red-tailed Jaco himself, that's why it was named "Jaco" ".

The multifunctional light switch with voice control (hereinafter referred to as the switch) is designed to be installed in place of a standard flush-mounted switch, does not require changing the size of the installation niche in the wall and is mounted in the same way as a regular flush-mounted switch.

  • Convenient voice menu for access to all functions.
  • A talking clock with backup power that does not require battery replacement.
  • Intelligent talking alarm clock.
  • Remote control using your remote control from audio-video equipment with one button selected by you, with its code memorized.
  • Manual control via non-contact capacitive sensor.
  • Extending lamp life (smooth light switching on).
  • Smooth adjustment of lamp brightness.
  • Automatically turn off the light 24 hours after turning it on.
  • Voice confirmation of completed commands.
  • Non-volatile memory of settings.
  • Red light indicator of operating modes.
  • GAINTA body made of high quality ABS plastic.

On the front panel of the switch there are: a red indicator, a microphone, a loudspeaker, a signal receiver window from the remote control and a capacitive sensor for manual control of the light.

The red indicator located on the front panel of the switch can display four operating modes of the switch:

  • The indicator is constantly on when the light is off.
  • The indicator is off when the light is on.
  • The indicator flashes rarely. If there is noise in the room that might prevent the switch from recognizing voice commands, the indicator will flash regardless of whether the lights are on or off. Once the noise has cleared, the indicator will stop flashing after five seconds and the switch will then be ready to accept voice commands.
  • The indicator blinks rapidly. During a dialogue with you, while waiting for a response from you, the switch indicator begins to blink rapidly, indicating that the switch is listening to you attentively and is ready to receive a command.

Breaker control

Light control by placing your hand near the capacitive sensor.

This function allows you to turn on the light at the previously set lamp brightness, turn it off or set a new lamp brightness. To turn the light on or off, just briefly touch the sensor with your hand, and to select a new brightness of the lamps, you should hold your hand on the sensor. As a result, the switch will set the minimum brightness of the lamps and begin to gradually increase it. When the desired brightness is achieved, remove your hand from the sensor. The switch will remember this brightness level, and will always turn on the light at your chosen brightness until you select another one.

Control the light using the selected button on any remote control.

You can control the switch using almost any remote control you have. For example, the remote control for your TV. First you need to train the switch to respond to the remote control button you select. To do this, touch the sensor with your hand and hold it there until maximum brightness is reached and another ten seconds until you receive a sound signal indicating that the switch has entered the learning mode.

Then, pointing the remote control at the switch, press and hold briefly (until you receive a sound signal from the switch) the button you selected on the remote control. Release the remote control button. The training is over. Now you can control the switch from the remote control. Control from the remote control can be carried out in two ways. You can choose which one is more convenient for you.

Using the remote control, you can control the switch in the same way as you control the switch with your hand using a sensor, or in the same way as you do it with your voice, only instead of the command “Yes” you will press the remote control button (advanced control mode). In the latter case, the first press of the button you select immediately opens the voice menu of the switch. This method is interesting because it allows you to control all functions of the switch from the remote control.

You can turn on or off the advanced control mode only by speaking to the switch and selecting “Enable (turn off) advanced control from the remote control” in the voice menu (see below). After turning off the advanced mode, a simple control mode will be used, allowing you to turn the light on or off and select the brightness of the lamps.

The switch can recognize and remember the codes of the vast majority of remote controls, including even codes with variable bits (for example, the code in the RC-5 standard), but unfortunately, occasionally some manufacturers produce remote controls that do not allow reading and storing the button press code. In this case, the switch, when you train it to respond to the button you have chosen, analyzing the data received from the remote control, will automatically decide that it is impossible to remember the button code of such a remote control, give out a special long intermittent sound signal and turn on an alternative control mode from the remote control.

The alternative mode differs from the usual one in that the switch will respond to pressing any button on any remote control. In this case, to control the switch, you must briefly press and release any button on the remote control. The switch will respond with a long beep. During the beep, you must press the button on the remote control again and release immediately if you want to turn the light on or off.

When working with such a remote control, only the simplest control mode is available (turning the light on or off). In this case, the advanced control mode is automatically turned off and the item “Enable (disable) advanced control from the remote control” is skipped in the voice menu. If suddenly the remote control you are using turns out to be from this series of remote controls, the code of which is impossible to remember, then it is advisable to use some other remote control to control the switch.

Usually, based on technical characteristics, it is optimal to use TV remote controls. Testing of all existing remote control codes (from different manufacturers) was carried out using the Philips SBC RU880/00 ​​universal programmable remote control.

You can control the switch by giving it voice commands. No special tuning for a specific person’s voice is required. There are four commands in total:

  • "Switch, open menu"
  • "To the begining"
  • "Don't bother me"

Commands must be spoken in a sufficiently loud and calm voice (do not shout, whisper or slur commands; the switch only recognizes normal pronunciation) from a distance of 1 to 4 meters. Do not exceed the specified range when talking to the switch. It is better to pronounce commands the way you would do it, showing the normal pronunciation of words to a child or a foreigner learning Russian - quite cleanly and calmly, pronouncing all the letters correctly.

Just as sometimes your interlocutor cannot understand what you said and asks you to repeat it, so the switch, if it cannot recognize the received command, will ask you: “Please repeat.” In this case, you just need to repeat the command. Perhaps it was not recognized due to some extraneous noise in the room, incorrect pronunciation, too much or too little distance from the switch. If you are near a switch, it is better to speak in a low voice, that is, approximately the way you usually speak to a person nearby.

As the distance increases, the voice volume can be increased slightly. Do not try to shout under any circumstances; the switch only recognizes calm pronunciation of words. If there is constant noise in the room, use (to control the switch) the remote control (advanced mode, as mentioned above, allows you to control all functions). If voice control causes you any difficulties, then especially for this case the switch has a “Training Mode”, which will allow you to practice operating the switch.

Team "Switch, open menu!" serves to open the voice menu of the switch.

Attention!

It can only be said when the red indicator on the switch is NOT FLASHING.

Otherwise, any commands are ignored. The indicator flashes when there is noise in the room that may prevent the switch from recognizing voice commands. Five seconds after the noise stops, the indicator will stop flashing and you can say the command “Switch, open menu!” After this, the switch will say: “Jaco is good.” You must immediately answer “Yes” if you want to open the menu, or remain silent if you do not need to open the menu. If you do not need to open the menu, you can (instead of remaining silent) say the command “Don’t disturb.” When waiting for a response from you, the switch indicator begins to blink frequently (quickly), indicating that the switch is listening to you attentively and is ready to receive a command.

Team "Yes" allows You select the desired menu item and causes the switch to perform the corresponding action. For example, by answering “Yes” after the switch prompts “Turn on the light,” you will thereby give a command to turn on the light. If you remain silent, the switch will move to the next menu item. Thus, silence expresses your refusal to carry out the action suggested by the action switch.

Team "To the begining" can be used anywhere in the menu to unconditionally move to the beginning of the menu. After pronouncing it, the switch will say: “Jaco is good.” You must immediately answer “Yes” if you want to open the menu, or remain silent if you do not need to open the menu (that is, if you want to close the menu). In the latter case, you can say the command “Don’t disturb.” Thus, the "Back to Top" command can be used not only to go to the top of any menu item, but also to close the menu at any time.

Your answer "Yes" after the switch phrase "Jaco is good" will open a voice menu, the full description of which is given below. The words spoken by the switch are highlighted in green. In red Your commands are highlighted. The actions performed by the switch are indicated in black. Attention! Anywhere in the voice menu you can give the switch the command " To the begining". The voice menu in this case remains open, but the switch will again begin to pronounce all the items in the voice menu, starting with the phrase “Jaco is good" (you must answer “Yes” to this phrase, otherwise the menu will be closed).

Turn on (turn off) the light.


Yes.
The light is on (off).
The light is on (off).

Set brightness.


Yes.

Choose brightness.


Increasing brightness from minimum level to maximum level.
Yes.
Installed.
Selection and memorization of brightness (if you did not say the command “Yes”, then, upon reaching the maximum brightness level, the maximum brightness will be selected and memorized).

Listen to the time.


Yes.
The switch speaks the current time.

Set the time.


Yes.
Choose from dozens of hours.
If you need to set the hour value to less than 10, for example, you want to set 9 hours, then in this menu item you should select “zero”.
The switch pronounces numbers from 0 to 9. You select the desired value by saying the command “Yes” after the switch says the number you need.
Yes.
Select hour units.
Yes.
Choose tens of minutes.
The switch pronounces numbers from 0 to 9 (you select the desired value by saying the command “Yes” after the switch says the number you need).
Yes.
Select units of minutes.
The switch pronounces numbers from 0 to 9 (you select the desired value by saying the command “Yes” after the switch says the number you need).
Yes.
Installed.
The switch speaks with a voice set time.
If an invalid time value has been set, the switch will say "error" and close the menu with the words "menu closed".

Listen to the alarm clock.


Yes.
The switch announces with a voice the time for which the alarm is set.

Turn on (turn off) the alarm clock.


Yes.
The alarm is on.
The alarm clock turns on. This means that it will call every day at the time that you further set. Refusal to turn on the alarm (silence) or turning it off will prompt you to close the menu.

Set an alarm?


Yes.

Choose from dozens of hours.


The switch pronounces numbers from 0 to 9 (you select the desired value by saying the command “Yes” after the switch says the number you need).
Yes.
Select hour units.
The switch pronounces numbers from 0 to 9 (you select the desired value by saying the command “Yes” after the switch says the number you need).
Yes.
Choose tens of minutes.
The switch pronounces numbers from 0 to 9 (you select the desired value by saying the command “Yes” after the switch says the number you need).
Yes.
Select units of minutes.
The switch pronounces numbers from 0 to 9 (you select the desired value by saying the command “Yes” after the switch says the number you need).
Yes.
Installed.
The switch pronounces the set alarm time with a voice.
The alarm is on.
Thus, after setting the alarm time, you will automatically hear the alarm time you selected and confirmation that the alarm is on. If an invalid time value has been set, the switch will say "error" and close the menu with the words "menu closed".

Disable (enable) advanced remote control.


This menu item is available only when controlled by voice; when controlled by the remote control, it is skipped.
Yes.
Installed.

Enable training mode.


Yes.
Training mode is enabled.
In this mode, you can say the commands “Yes” and “Go to the beginning”, and the switch will repeat them. In the event that recognition is difficult, the switch will ask you: “Please repeat.” This mode is exited automatically after 20 seconds of silence or after correctly pronouncing the command “Yes” five times in a row. The switch will indicate exiting the training mode with a sound signal and the prompt “Close menu”. You can answer “Yes” if you want to close the menu, or “Back to Top” if you do not want to close the menu.

Close menu.


Yes.
Menu is closed.
The switch closes the voice menu. If you remain silent, the menu will be closed (this is the only menu item where silence means consent). To reopen the menu, you will need to wait until the red indicator blinks and say the command “Switch, open menu.” If you need to stay in the menu, say the command "Home".
To the begining.
The voice menu remains open. In this case, the switch will again begin to pronounce all the items in the voice menu, starting with the phrase “Jaco is good” (you must answer “Yes” to this phrase, otherwise the menu will be closed).

Note.

After performing a function (for example, turning a light on or off), the switch prompts you to close the menu. To continue the dialogue with the switch, say the command “Back”. Silence or the "Don't disturb" command will close the menu.

Switch Features

The switch has a built-in lithium battery designed to last the entire life of the switch (it does not require replacement), which allows it to continue timing even when the lights in your house are turned off. That is, in the morning, despite the night power outage, the alarm clock of the switch will ring exactly at the appointed time. If there is no power for more than 18 hours, the time and alarm settings will be forcibly reset.

The switch remembers the set brightness. If you turn off the light and then turn it on after any time, the brightness will be exactly the same as what you set before. You can use a chandelier that contains many powerful lamps to obtain softer and at the same time uniform lighting. If you choose the minimum brightness of the lamps, then the chandelier actually turns into a night light.

24 hours after turning on the light or changing the brightness of the lamps, the light will be automatically extinguished. This is necessary so that you do not accidentally leave it burning (due to forgetfulness) for a week or more when going to a country house or on vacation.

When the alarm goes off, a melodic signal is heard, the switch pronounces the current time and a proposal to turn off the alarm: “Turn off the alarm.” If you remain silent, then all this will be repeated, starting with a melodic signal, and this will be repeated up to 20 times. If you answer “Yes,” then the alarm will be turned off (it will ring again tomorrow if you do not turn it off through the voice menu in the appropriate item).

Then you will automatically be prompted to open the menu - "Jaco is good" so that you can open the menu by saying "Yes". After this, for example, you can turn on the light by answering “Yes” to the “Turn on lights” prompt, or you can select “Set brightness” to turn the light on at a low brightness that is more pleasing to the eye when you wake up.

The switch protects your lamps, extending their life. This effect is achieved by smoothly switching on the lamps. As you know, when a lamp is turned on, a current approximately ten times greater than the rated current of the lamp passes through its filament. That is, at the initial moment of time, a lamp with a rated power of 100 Watts releases up to 1000 Watts of power. This is why the lamps burn out the moment they are turned on. Thus, the smooth switching on of the lamps, which is pleasing to the eye, also allows you to extend their service life, which will allow you to change the lamps much less frequently.

The switch does not have mechanical parts moving during operation, which, as is known, would lead to a decrease in reliability. Manual control of the light is carried out via a capacitive sensor, which responds to the presentation of the hand. The switch does not have switched electrical contacts that could burn, spark, or create radio interference. It uses only the best electronic components from the world's leading manufacturers, which made it possible to create for you this smart and perfect switch that loves to communicate with you.

Schematic diagram

Switch installation

As already mentioned, the switch is fully suitable for installation in place of a standard flush-mounted switch, does not require changes in the size of the installation niche in the wall and is mounted in the same way as a regular flush-mounted switch. The only difference is that this switch requires a neutral wire, but this is not at all difficult to provide. How to do it?

There are two ways. You can choose the simplest and most suitable one for you. In this case, it is quite possible to do without laying an additional wire; you just need to connect the existing wires a little differently than before.

The first way to connect the neutral wire
(if you previously installed a switch with two keys)

Figure 1 shows a diagram for turning on lamps with a standard two-key switch.

The neutral wire is connected to the lamps; it is only on the ceiling. How do we get it in the switch niche? Very simple. We actually free one of the two wires going from the chandelier to the switch, since we won't need it to control the lamps anyway, and connect it to the neutral wire coming out of the ceiling. Thus, we get a neutral wire in the switch niche. Look at the diagram shown in Figure 2.

The wires coming out of the Jaco switch are color coded as follows: PHASE - brown wire yellow wire . Now let's learn more about how to connect. It is more convenient to start when the old switch is removed from the niche, but all the wires remain connected to it. Voltage must be supplied to the apartment network.

Turn both switch keys to the off position. The light will be turned off, of course. Using an indicator screwdriver, determine which wire coming to the switch has voltage. There will only be voltage on one of these three wires. This wire is “PHASE”. Mark it with a brown marker or piece of tape that says "PHASE".

Then turn both switch keys to the on position. Now let's check the voltage on the wires coming to the chandelier. On two of them the indicator screwdriver will show voltage, but on the third there will be no voltage. This wire without voltage is “ZERO”. Mark it with a blue marker or a piece of tape that says "ZERO."

Move one key of the switch to the off position (any key of the two available). Your switch has three contacts. Use an indicator screwdriver to check which contact there is no voltage (it will be absent on the contact corresponding to the switched off key). Label the wire connected to this pin as "ZERO".

Mark it with a blue marker or a piece of tape that says "ZERO." Thus, in the niche of the switch we found two wires marked - “ZERO” and “PHASE”. The remaining wire is "LAMPS". Mark it with a yellow marker or a piece of tape that says "LAMPS". Let's return to the wires coming to the chandelier. One of them is already marked with us as “ZERO”.

Check the other two with an indicator screwdriver. One will have voltage and the other will not. The wire without voltage should be marked somehow and its name should be remembered as “NEW ZERO”. The remaining wire is "LAMPS".

Mark it with a yellow marker or a piece of tape that says "LAMPS". Now turn off the electricity supply to the apartment using the switch installed in the electrical panel. Make sure there is no voltage on the "PHASE" wire coming to the switch. Go back to the wires coming to the chandelier.

Disconnect the "NEW ZERO" wire coming from the ceiling from the terminal and connect it (one terminal) to the "ZERO" wire. From the free terminal (on which the “NEW ZERO” wire was previously located), disconnect the wire coming to it from the chandelier side, and connect this wire to the “LAMPS” terminal, combining it with the wire already there.

Now the wires to the chandelier are completely connected, you can close them and return to the switch. Disconnect the wires from the old switch and connect them to the Jaco switch in accordance with the marking: PHASE - brown wire , ZERO - blue wire, LAMPS - yellow wire. Carefully remove the two round plastic plugs from the front panel of the switch, located on either side of the "capacity sensor" inscription (do not lose them). Under them, holes will open for a Phillips screwdriver, which can be used to tighten the mounting fastening screws.

Insert the switch into the wall niche and tighten the mounting screws. Reinstall the two round plastic plugs on the faceplate of the switch. Turn on the electricity supply to the apartment using the switch installed in the electrical panel. Do not place your hand close to the switch for ten seconds after power is turned on. At this time, the capacitive sensor is automatically adjusted. After a short beep, the switch is ready for operation.

The second way to connect the neutral wire
(if you previously installed a switch with one key)

If you had a single-key switch installed before installation, then you do not have an extra wire that could be used as a neutral wire. Figure 3 shows a diagram for turning on lamps with a standard single-key switch.

In this case, the neutral wire can be taken from a box located in a wall niche under the ceiling (directly above the switch) or from a socket located under the switch. You will need a piece of wire. This wire is used only to power the electronic part of the switch. The current through it is very small, so a wire of almost any cross-section, with insulation designed for a voltage of ~220V, is suitable. The wire is pulled through a channel in the wall to the switch niche. Look at the diagram shown in Figure 4.

As an example, this diagram shows the connection of the neutral wire of the switch to the neutral wire of the socket located under the switch. Note: you can determine the phase and neutral wires using an indicator screwdriver. When you touch the phase wire, the indicator starts to light. Touching the neutral wire does not cause the indicator to light up.

Why is this switch called "Jaco"

The Red-tailed Jaco (African Gray Parrot) is considered the most capable of conversation. He can remember and use, linking to events, up to 100 or more different words and phrases. This allows him to conduct an almost meaningful dialogue with a person. At the same time, he very similarly copies the voices of different people. It is believed that the intelligence of this bird is approximately equal to the intelligence of a six-year-old child. Jaco's lifespan is comparable to the lifespan of a human.

Because this switch can wake you up in the morning, carry on a conversation with you, carry out your commands, is reliable and durable, and because it is as stylish, fashionable and smart as the Red-tailed Jaco himself, that's why it was named "Jaco".

Information for those wishing to invest in production or produce Jaco switches

I invite to cooperation investors who want to invest money in large-scale production of these switches and managers of enterprises who want to produce Jaco switches.

Alexander Petrovich Protopopov

  • Tutorial


November 2017, the number eleven was displayed on the calendar. The sale on Aliexpress was in full swing, my hands were itching to buy something. The choice fell on " Mi-light RGBW led lamp AC86-265V Remote Control Smart Lighting"As a result, two copies were purchased maximum power, at 9 watts, and the MiLight WiFi iBox hub controller. Delivery from China did not take long to arrive, and 4 months later, on March 13, 2018, (a platform that allows third-party developers to add skills voice assistant"Alice"). Next, Alice will learn how to control the lighting (and more) in your apartment, and we will help her with this, step by step and without a single line of code.

1. Setting up smart lamps from Xiaomi.

The first thing you need to do is set up lamp control, at least using the Xiaomi application. If this stage has been completed for you, feel free to move on to setting up the server smart home, or even further, directly to the integration of Alice and openHAB. But first things first. The lamps themselves will not connect to your home router; for this you need an iBox hub, which can control up to four groups of light sources. You need to connect it to the network, and then connect the lamps to it.
  1. We supply food to iBox by connecting it via USB, for example, to charger for phone.
  2. When connecting for the first time, you need to reset the hub settings, so click RST.
  3. Next, install the application on your phone from Xiaomi for iOS or Android. Make sure that the phone is connected to home network Wi-Fi.
  4. Open the application Mi-Light 3.0, press + . Here we are interested in the tab Smart Link.
  5. Enter your home name and password Wi-Fi networks, to which the phone is connected and plans to connect iBox.
  6. Now you have iBox must be connected to the network, and the indicators SYS And LINK should blink, slowly and quickly, respectively. If this is not the case, click RST again.
  7. If the lights are flashing, press in the app Start Configuration, the process of setting up the connection for the hub will begin.
  8. After ten seconds the blinking will stop, then SYS will start blinking slowly again, and LINK will remain burning. The app will display a message Configured. The hub is connected to the network. If on the list Device List it's not there, just click Searching for device.
Now you can control the color and brightness of the iBox itself, but we need to connect the lamps. To do this, we will assign the lamps to one of the four zones available to the hub for control.
  1. Open in the application Mi-Light 3.0 from the hub list Mi-Light. Go to the section Colors.
  2. At the top of the screen, select one of the zones, let it be Zone1. And click on the device linking icon in the upper right corner. The screen will open LINK/UNLINK with instructions.
  3. Now we set up those lamps that we want to bind to Zone1, they will be managed synchronously in the future. To control the brightness and color of each lamp individually, they must be assigned to separate zones. So, turn on the lamp, and during the first three seconds press in the application Link. If the lamp blinks three times, then everything is fine, synchronization was successful. You can control the lamp.


Basically, at this stage you already have a remote control for remote control light. Moreover, you can write your own lighting control system, since the protocol for communicating with the hub has long been known (it was once available at the link limitlessled.com/dev). There are ready-made libraries for php, javascript, python. But this control is only possible from local network, which is clearly not enough for Alice. Let's try to solve this problem.

2. Installation of openHAB

Briefly what is openHab. This is a server for managing a smart home with open source code. Developed by the community, supports management of a huge number of devices. There is a mobile client, it is possible to control Alexa from Amazon and the assistant from Google. Written in java, based on the Eclipse SmartHome framework. This means that it can be installed even on a refrigerator, the main thing is that it works on this refrigerator virtual machine Java. Installation instructions are available for Linux, Windows, Mac OS, Raspberry Pi, various Synology network storage devices and QNAP. Let's quickly go over the first option.
  1. Add repository keys:

    Wget -qO - "https://bintray.com/user/downloadSubjectPublicKey?username=openhab" | sudo apt-key add - sudo apt-get install apt-transport-https

  2. Add the repository itself:

    Echo "deb https://dl.bintray.com/openhab/apt-repo2 stable main" | sudo tee /etc/apt/sources.list.d/openhab2.list

  3. We update and install the server along with the additions:

    Sudo apt-get update sudo apt-get install openhab2 sudo apt-get install openhab2-addons sudo apt-get install openhab2-addons-legacy

  4. Setting it up automatic start service after rebooting the device and launch it:

    Sudo systemctl start openhab2.service sudo systemctl status openhab2.service sudo systemctl daemon-reload sudo systemctl enable openhab2.service

  5. Now we're waiting in the area 15-20 minutes(this is not an exaggeration, this is a harsh reality with jokes about the speed of Java) until it loads and a web interface appears at http://openhab-device:8080.
  6. On this page we are interested in the item Paper UI. It is with this type of interface that we will work in the future.

3. Light control via openHAB

So, we have a working smart home server and lamps from Xiaomi with remote control capabilities. It is necessary to connect them. openHAB supports bindings (instructions that allow you to control connected electronics) for many devices, including these lamps.

4. External access to openHAB

For security reasons, after the manipulations described above, managing the smart home server is only possible from the local network. This is clearly not enough for our task. There are several configuration options: set up a VPN for access from the Internet to the local network, configure a reverse proxy, or connect your server to the myopenHAB Cloud service at myopenHAB.org. Since in Russia the number of Roskomnadzor employees is directly proportional to the number VPN users and proxy servers, we will use the last option.
One should not multiply existing things unnecessarily
  1. Register on the myopenHAB website, log in and go to https://myopenhab.org/account. On this page we are interested in two fields: openHAB UUID And openHAB Secret. They allow you to organize communication between servers. Let's figure out where to get them.
  2. Go to the control panel PaperUI openHAB.
  3. Open the section ConfigurationAdd-onsMisc.
  4. Install openHAB Cloud Connector.
  5. IN ConfigurationServices the module should appear openHAB Cloud with mode " Notifications & Remote Access".
  6. IN ConfigurationSystemAdd-on Management switch must be activated Access Remote Repository".
  7. After installing the addon, the data we are looking for will be in the files /var/lib/openhab2/uuid And /var/lib/openhab2/openhabcloud/secret (userdata/uuid And userdata/openhabcloud/secret, if installed not from the package). Enter them in your account settings on myopenHAB and click Update. If everything is configured correctly, the word " should appear to the left of your email address Online". This means that access to your smart home from the Internet is open, but immediately Alice will not be able to use it. First, you need to make the previously configured device accessible from the outside.
  8. Go to the section ConfigurationServicesopenHAB CloudConfigure.
  9. On the list Items to expose to apps such as IFTTT activate the checkbox for the brightness control and click Save.
  10. After some time, we check that the selected element is present in the list on the page myopenhab.org/items with the status " ON".

Now the lamp can be controlled from the Internet, via the openHAB Cloud API, which supports OAuth2 authorization. But, unfortunately, the clients are predetermined, this is Alexa, Google Assistant and the IFTTT service. Alice's this list Not yet. But it's not a problem!

5. IFTTT

If this then then.

A service that allows you to build a chain of actions from several services. Conditionally react with an action in one service if a trigger for an event in another service is triggered. IFTTT supports a huge number of services, including myopenHAB, which interests us. But he doesn't support Alice. In general, anyone can create a module for their service there; first of all, you need to contact the sales department and find out the amount of your annual payment to IFTTT. Our goal is to use the service for free in order to be able to redirect requests from Alice to openHAB.
  1. Register on the website ifttt.com and go to AppletsNew Applet.
  2. After clicking + this, you need to select a service whose event will be a trigger. Because service Alice not on the list, we need to choose something that can receive commands from it. This is a service Webhooks. Click Connect.
  3. Next, select the trigger "from the list with one item" receiving a web request".
  4. Specify the name of the event, for example light_on, and press Create.
  5. Now you need to select a response action, click on + that. Our choice openHAB, connect.
  6. In the window that opens, click on the previously mentioned OAuth2 authorization Allow.
  7. There is only one reaction available" send command".
  8. From the drop-down list, select the lamp control element (for example Light_Switcher), and as the command to turn on the light, specify the word " ON". We create.
To check, we need to call a trigger from the Webhooks service. How to do it? Send a POST request.
  1. Looking for on the site IFTTT service Webhooks and go to the documentation associated with it.
  2. On the page that opens there is a command that we need to execute by replacing (event) on light_on.
  3. After clicking on Test It, your lamp should turn on.
All that remains is to create a similar recipe for the light_off event, which will send the OFF command to the light control element. And then teach Alice to call these triggers at our request.

6. Alice

At my command, at my will, Alice will turn on the light if you use the Yandex.Dialogues platform. The platform opened in March of this year and allows anyone to add skills to Alice by writing the appropriate code. On this moment The catalog already contains a huge number of skills. Developing a skill is a topic for a separate article on Habré, but here we have " without a single line of code". So let's use the existing developments.
  1. We install, only it currently has support custom skills.
  2. Let's talk Alice "turn on magic spells". It is the skill magic spells/magic spell will allow us to perform POST requests to servers IFTTT.
  3. Click Add and indicate the address to turn on the light like this:

    https://maker.ifttt.com/trigger/light_on/with/key/(user_id)

  4. The next step is to pronounce a phrase or word to which Alice will respond by executing a request to the specified address (my Alice responds to “turn on the light”).
If you now click on the appropriate button or voice a proposal, the request from the Yandex servers will go to the skill server, from there to IFTTT, then to myopenHAB, which will transfer the data to your local instance, which has direct access to the lamp hub, and the light will turn on. Let's immediately add a similar command to turn off the lighting.


You need to understand that it is not enough to just turn on Alice and say " turn on the lights"Yandex knows nothing about our smart home commands; data about them is stored in the skill database" magic spells". Therefore, you first need to trigger the skill by saying " turn on magic spells", and only then turn the light on and off with your voice.

P.S.

The approach of integrating Alice and openHAB via IFTTT does not limit your imagination in any way. You can use the skill " magic spells"control any things in your smart home with your voice. For example, openHAB has a binding for Samsung SmartTV, which allows you to control the sound and channels of the TV. The interaction between Alice and Webhooks is the implementation of a voice interface to all IFTTT services," magic spells" allow you to execute a command from any of them. Or you can not use Alice at all, and write your own frontend, for example mobile app, which will make requests to IFTTT through the same Webhooks. Yes, and you don’t have to use IFTTT, you can set it up the same way" magic spells Add tags


Hello friends. Today I want to tell you and show you my homemade product that uses voice control. It's actually a voice controlled on/off switch. The peculiarity of this homemade product is that this device can not only control the load by voice command, but can also respond with voice commands previously recorded on a flash card.
By appearance The device turned out to be so unattractive. It's my fault, but I didn't set myself the goal of making it beautiful, I was just lazy. Actually, for the same reason, I brought out a minimum of devices for controlling this device, of which on the front panel there is only a volume control knob for the transponder and a flash card receiver, which at first I also wanted to stuff inside.
What can this switch do? It can switch off 3 loads independently of each other. It works as follows: in the switch I organized increased noise immunity from unwanted switching on. This is expressed in the fact that to turn off the required load, you must first contact the device.
To contact, you must say “Arduino”. I called it that because the heart of this device is the voice module, which we will get to know in the future, and was intended primarily for the Arduino designer. Although I have never encountered Arduino and its modules are not used in this device.
We turn to the Arduino switch, if the switch responds “Listen”, then say the following of the three commands assigned by me: “Lamp”, “Garland”, “Light”. After accepting the command, the device will switch the state of the connected device to the opposite: if the lamp was on, it will turn off, if it was not on, it will turn on. And he will answer, for example: “The lamp is off” or “The lamp is on”...
Simply put, our dialogue with the switch will be as follows:
- Arduino.
- I'm listening.
- Light.
- I turn on the light.
It was, of course, possible to program the module with specific commands: “Turn on the light”, “Turn off the light”, but I decided to make it so that one command would turn it on and off.
I recorded all the answers on a flash card. These are regular WAV files. The text was read by an English translation website. This could be any other program that can read text. Or, in general, you or your relatives can write down these answers...
I don't know if this is a plus or a minus, but this device sensitive to voice timbre. That is, for example, he disdained my wife until I separately recorded her voice on the module. And I gave her different answers: a woman answers me, and a man answers her. Cool, isn't it?)
Well, now let's finally move on to testing this device. We plug it into the network and connect one load.
You need to wait about 5 seconds until the module itself boots up, while the controller accesses the module, while the player initializes the flash drive and the files on it...
Watch the video below of the work process...
This is how this switch works. Now let's look at the inside of the switch. Filming top cover. The first player board with an amplifier. It is she who reproduces the answers recorded on the flash drive. The board is controlled using the UART protocol. The commands are sent by the controller located on the second board, which we will return to a little later. Next, the third board - a power supply with power switches - was made in the semesters. The entire circuit is galvanically isolated in voltage. The board is also controlled by a controller. The power supply produces 5 volts of stabilized voltage. Power switches can withstand a load of about 200 W per channel. Now let's move on to the second board. There is a controller on it that controls everything and a voice command recognition module.
We will look at the operation, connection and configuration of the module in the next video. And now I will explain the operation of the controller, which is made on atmega8. The module that recognizes the command issues a command to the controller via UART, the controller, having processed the command, turns on or off the load and issues the command sound module to play an audio response. Everything seems simple).
I want to say that when making this homemade product, I did not set myself the task of making a serious device, rather a toy.
In the next video you will look directly at the module itself, so subscribe to the channel so as not to miss it, if of course this material interests you.
I built this switch a couple of years ago using a V2 module. But in the next video we will look at more new version V3. We will also consider 2 types of work with this module: simple - this is if you do not know programming and full - this is if you know how to program microcontrollers.

Voice recognition module V3 - http://ali.pub/qv2kr
Voice recognition module V2 - http://ali.pub/do03a

I hope you liked the video on this topic. Thanks for watching this video. If you liked it, give it a like, so I will know that you care. Subscribe to the channel, see you next time.

It is necessary to place around the house sound system, consisting of highly sensitive microphones and speakers for controlling smart home systems

Usually the user gets a system with standard commands, which he can add with his own hands through a computer. Any programmed function of the equipment connected to the scenario will be executed by voice command.

The role of arduino in programming

Personal design of a smart home system includes the selection of equipment that will meet all expected requirements. In particular, a controller will be needed that will allow you to collect all the house management on one device, from which the management will be carried out.

Among hobbyists, Arduino controllers, which are an empty printed circuit board, whose peripherals and protection from damage are up to the user. You can connect anything - the program is easy to write. In general, Arduino has many advantages:

  • addition or copying is possible;
  • a large amount of available information about the possible use of the controller, circuit options for different results;
  • fixed pin arrangement (this allows manufacturing companies to easily release new devices to add functions - shields);
  • Arduino does not need a programmer or extensive programming knowledge.

Appearance of the main home systems control device - arduino controller

This controller can be connected to a computer and is often used in robotics and in the creation of autonomous devices.

Voice control capabilities

At the dawn of its development, voice control had certain limits, and it was difficult to imagine its current interface. This seemed like something out of a science fiction movie. But now the situation has changed, and the opportunity alternative option control in addition to already existing methods(remotes and digital devices) makes it very attractive to the user.

A kind of guarantee of better interaction between humans and automation will be the recording of several versions of one order (“Turn on the light in the bedroom,” “Turn on the light,” and so on), then the system will understand exactly what is required of it.

Such control, even created by yourself, most often includes the following common actions:

  • turning household appliances on and off;
  • climate control and curtains;
  • irrigation program in the area in front of the house;
  • listening to news, weather forecasts and other information that the control will be configured to receive and reproduce.

Some programs allow you to introduce a distinction for each stage of the scenario: control can be carried out in one room, and the command will work in another.

You can program any word with your own hands as a command. Some developers offer standard options in which commands for managing a smart home are written in plain text. This is very convenient for the average user.

Description of one of the possible options

Voice control over the smart home system will not be activated until the owner activates it with a specific command or action (voice recognition is also available). Depending on the area where operation is intended, for better functionality the house can be equipped with several controllers subordinate to one device. Using “smart” equipment is easy; the program includes several languages, which it easily recognizes.

You don't need to shout to control home systems. Highly sensitive microphones pick up quiet voices. Depending on the type of microphone and the shape of the room, they need to install 1 microphone per area of ​​20-30 m2

Among other supposed amenities, there is an instant response to orders, there is an interactive connection, which creates the impression that the house is really smart and is independently talking to the owner (although in fact it is a high-quality recorded live speech). Automation can report that householders forgot to close the gate, or inform about a violation of the security of the site.

One of the many advantages is invisibility. All speakers and microphones are located out of sight of the owner (on the cabinet, under the shelf, hidden in pieces of furniture). This is very aesthetically pleasing since there are no wires.

The equipment is installed in false ceilings or partitions at the pre-installation stage; in houses with a fine finish, visual decoration is used for household appliances

A strong security system notifies about unauthorized entry into the premises via a message on a smartphone or verbally, and responds adequately in the event of an emergency.

This system can be controlled using a smartphone. "Smart home" connects to its operating system, and through it the owner can give the necessary instructions to the controller.




Top