[Resource Download] The download address is as follows:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl
51 Voice Alarm Design for Blind Guide-Infrared Obstacle Avoidance-Voice
This design is made up of STC89C52 single-chip microcomputer + infrared obstacle avoidance sensor circuit + voice alarm circuit + power supply circuit.
1. Detect obstacles in front by infrared obstacle avoidance sensor, and the detection distance is adjustable from 3-80cm.
2. The infrared obstacle avoidance sensor detects the obstacle, and the voice alarm. Voice can be recorded by itself.
void Init_Timer0(void);
void uartSendStr(unsigned char *s,unsigned char length);
void UART_Init(void);
void uartSendByte(unsigned char dat);
void main (void)
{
Init_Timer0(); //定时器0初始化
UART_Init();
DelayMs(200); //延时有助于稳定
uartSendStr("reday ok!!",10);
while (1) //主循环