The laboratory experiment aims to present a way to design and create objects that can be activated by voice commands compatible with Apple HomeKit. The resources available for voice processing, the components designed to perform voice commands, as well as the implementation details of "things" that can be activated by Apple Siri are explored. At the end of the experiment, important information will be held regarding the Apple-Google resources that allow the development of intelligent actuators capable of being controlled by voice, regardless of their location, provided they have an Internet connection.
Software: SiriControl ![]()
SiriControl green LED activation SiriControl red LED activation
The Siri application present on Apple iPhones, through the "Note" option, allows to convert the pronunciation of words into ASCII equivalents available as an email message placed in Gmail. These messages can be queried and, depending on the words contained, specific actuators can be developed according to the recommendations for using the SiriControl application. They can constitute template/model projects.
An example of an actuator made with a 3 W RGB LED is shown in the figure below.
![]()
Notes messages made by the Siri application will be visible in Gmail-Notes.
In Apple iCloud, the previous address is inserted through the options: Settings > Notes > Accounts > Add Account on your iOS device, and add your new Gmail account. >sudo apt-get update >sudo apt-get install git-core > git config --global http.sslVerify false > git clone https://github.com/theraspberryguy/SiriControl-System The siricontrol.py application loads and executes the files with the py extension existing in the SiriControl/modules directory. Dedicated applications are created according to the following prototype. Designing command modules - Python programs: Each module is associated with a name: “moduleName” The command words are established in the section: “commandWords” The functions that will be executed after recognizing the words are inserted in the section: execute(command) Solve the proposed problems:
1. Create a Python module that will allow you to generate a periodic signal at the GPIO with a duration of 50 ms and a 10% duty cycle that will be highlighted with the oscilloscope. 2. Create a python module that will generate a 101 sequence on the GPIO with a 1 Wire protocol, visible on the oscilloscope. 3. Create a Python module that will generate a periodic signal on the GPIO with an increasing duty cycle (0-100&) and a duration of 10ms; 4. Create a module for SiriControl that will generate a periodic signal with a duration of 20 ms and a 2% duty cycle. 5. Create a module for SiriControl that will generate control signals for a steppper motor connected to the Rpi according to the following diagram :
- Development of voice-controlled car accessories; - Development of equipment/work interfaces for injured/disabled people; - Creation of critical components for emergency situations; - Extension of Apple HomeKit;
|