Develop an algorithm for the device

Employer
[no-member:pro]Artem[/no-member:pro]
Project parameters
Type of cooperationOne-time project
SectionSoftware development
Prepaymentprepayment is possible
Payment methodsCash, Bank transfer
Acceptance of requestsfrom Jul 25, 2021 until Jul 30, 2021
Project description
Offering extra earnings. In order to start developing the program, it is necessary to develop a device algorithm. The algorithm must take into account all the sequences of the device’s actions at different input values, in this case, the time of pressing the button.
If the button has been pressed once briefly, the device begins to pull the rope, which in turn pulls the shoelaces. If the button has been clamped for some time, the device starts the motor in the opposite direction for lacing. In order for the device to function properly, it is necessary to set several conditions for the program code, such as: The motor should not work on tension in the tight position of the shoes, and vice versa - when the shoes are laced, the motor should work only on tension. These conditions should not be forgotten, because Without them, the device will not function properly. To do this, they need to be included in the algorithm of the device to write a program based on it.
It is also necessary to experimentally calculate the time required for complete tension or lacementation of shoes. This time is indicated in the program, in the line that is responsible for the time of supplying electric current to the motor. This is also indicated in the algorithm. After tensioning the laces, the trouser is fixed in the device for fixing on the leg, in the case of lace-laceing - this does not happen. After lacing/lacing, the program stops working and waits for a new team.
Electrical circuitry of the device
For the final assembly of the device, it is necessary to develop an electrical circuit of the device. Knowing that the engine must rotate in both directions for lacing and lacing, you need to connect it to two analog outputs of the Arduino board. These outputs can be both a power source of 3.5 volts and land, this property is further specified in the program. To power the entire system, a battery is needed that produces a voltage of 5 volts necessary for the operation of the Arduino Micro board. To charge this battery, a charge controller is needed, designed for batteries with a voltage of 5 volts. All these elements shall be joined as in the diagram presented (see para. attached file.
If the button has been pressed once briefly, the device begins to pull the rope, which in turn pulls the shoelaces. If the button has been clamped for some time, the device starts the motor in the opposite direction for lacing. In order for the device to function properly, it is necessary to set several conditions for the program code, such as: The motor should not work on tension in the tight position of the shoes, and vice versa - when the shoes are laced, the motor should work only on tension. These conditions should not be forgotten, because Without them, the device will not function properly. To do this, they need to be included in the algorithm of the device to write a program based on it.
It is also necessary to experimentally calculate the time required for complete tension or lacementation of shoes. This time is indicated in the program, in the line that is responsible for the time of supplying electric current to the motor. This is also indicated in the algorithm. After tensioning the laces, the trouser is fixed in the device for fixing on the leg, in the case of lace-laceing - this does not happen. After lacing/lacing, the program stops working and waits for a new team.
Electrical circuitry of the device
For the final assembly of the device, it is necessary to develop an electrical circuit of the device. Knowing that the engine must rotate in both directions for lacing and lacing, you need to connect it to two analog outputs of the Arduino board. These outputs can be both a power source of 3.5 volts and land, this property is further specified in the program. To power the entire system, a battery is needed that produces a voltage of 5 volts necessary for the operation of the Arduino Micro board. To charge this battery, a charge controller is needed, designed for batteries with a voltage of 5 volts. All these elements shall be joined as in the diagram presented (see para. attached file.