本文介绍了应用AVR系列单片机的电动车仪表设计,该设计基于光电检测理论,采用ATMEL公司的8位AVR系列微控制器ATMEGA8作为该仪表系统的核心。通过检测电脉冲和蓄电池电压,实现了电动自行车仪表的里程、速度和电量参数测量与显示。由于采用了资源丰富的ATMEGA8芯片,该设计具有低成本、高可靠性、低功耗等特点。
This paper introduces the design of the electric bicycle's meter by applying AVR series MCU, the design is based on photoelectric detecting theory. The instrument system with the 8 bit AVR series ATMEGA8 microcontroller, made by ATMEL Company, as its core parts. The meter realizes the measurement and the display of the mileage, the velocity and the electric quantity parameters of the electric bicycle by detecting the electric pulses and the voltage of the battery. Because of the usage of the resourceful ATMEGA8 chip the meter is of low-cost, high stability and low power consumption.