摘要随着经济快速发展,人们现有的物质需求不断提高,生活水平质量不断在增强。传统的自行车已经不能满足人们,人们不光用它来代步,创新型的自行车辅助工具也在不断地增多和功能渐进地加强,它也已经成为人们在低碳生活中的出行方式之一,成为人们休闲、锻炼、娱乐的第一选择。电子车速里程表的出现,不仅能让人们清楚知道自己的骑行时间、骑行速度还有骑行的公理数,更很多程度上丰富了人们的基本需求。本文主要以STC89C52单片机为核心,通过单片机来完成电子车速里程表的设计,硬件采用STC89C52最小系统模块、霍尔脉冲模块、设置与启动模块、显示模和日历模块块组成,软件部分采用C语言进行。论文的设计利用霍尔传感器来测转数、24C02实现保存数据,同时用LED显示屏显示出来,利用温度芯片18B20获取日期数据。关键词:单片机;霍尔传感器;速度/里程;LED显示-I-AbstractWiththerapiddevelopmentoftheeconomy,people'sexistingmaterialneedsareconstantlyimproving,andthequalityoflivingstandardsisconstantlyincreasing.Traditionalbicyclescannolongersatisfypeople.Peoplenotonlyuseittotravel,butalsoinnovativebicycleassistivetoolsareincreasingandfunctioninggradually.Ithasbecomeoneofthewayspeopletravelinlow-carbonlifeandbecomepeople.Thefirstchoiceforleisure,exerciseandentertainment.Theemergenceofelectronicspeedometersnotonlymakespeopleknowtheirridingtime,ridingspeedandthenumberofaxiomsofriding,butalsoenrichespeople'sbasicneeds.ThispapermainlyusesSTC89C52single-chipmicrocomputerasthecore,andcompletesthedesignofelectronicspeedodometerthroughsingle-chipmicrocomputer.ThehardwareadoptsSTC89C52minimumsystemmodule,Hallpulsemodule,settingandstartingmodule,displaymoduleandcalendarmoduleblock.ThesoftwarepartisinClanguage..ThedesignofthepaperusestheHallsensortomeasurethenumberofrevolutions,andthe24C02realizesthepreservationofthedata.Atthesametime,itisdisplayedbytheLEDdisplayscreen,andthedatedataisobtainedbyusingthetemperaturechip18B20.Keywords:singlechipmicrocomputer;Hallsensor;Speed/mileage;Leddisplay-II-目录摘要.......................................................................................................................IABSTRACT..........