The motor output uses a separate I / O port, because the eccentric wheel is installed on the motor, which will produce vibration when it rotates. The intensity of output vibration can be realized by controlling the pulse duty cycle of the motor. A variety of modes of vibration can be realized by controlling the time interval between rotation and stop, and the combination of multiple pulses such as from weak to strong or from strong to weak. The up and down keys are strength control keys. When the strength is the minimum, press "down" to enter the shutdown state. All functions stop, all LEDs turn off, and the single chip microcomputer enters the sleep state. At this time, the power consumption of the single chip microcomputer is very low, and the current is only a few UA. To delay battery life. When in the shutdown state, press "up" to start up and enter the working mode. Em78p153 uses an internal clock and the reset circuit is also integrated in the chip, so the peripheral circuit is very simple and the work is more reliable and stable. This is good for product design, production and cost reduction. | |