sigma

【Smart Car】wifi car

 
Overview

1. Project background

去年因疫情原因公司原来的物联网项目推迟,正好给了我学习硬件开发的时间,然后疫情在家给儿子买了辆遥控小车,结果没玩几次就玩坏了,恰好前段时间学习了一下怎么使用立创EDA绘制原理图及PCB。
碰到这次举办小车的活动,正好检验下自己这段时间的学习成果,顺便把鸽了儿子很久的小车坑给填了。
由于是给小孩子玩的小车,首要就是耐摔耐撞,而且也要简单,不能太复杂,太复杂我自己也没法完成。因不了解2.4G遥控具体原理。因此考虑使用旧手机通过wifi来控制小车。
另外,小孩玩玩具也是有个新鲜劲的,因此在玩了一段时间后,就没有新鲜感了,特在设计时考虑后续的升级改造。

2. Function introduction

  • The car is planned to be powered by 2 18650 batteries and is designed with an nmos anti-reverse connection circuit.
  • Onboard voltage detection circuit can support low voltage alarm function.
  • Equipped with infrared obstacle avoidance circuit, it can decelerate and brake when approaching obstacles to reduce or avoid collisions.
  • Use the wifi module to connect to the AP or mobile phone hotspot in client mode, and use your mobile phone to control it.
  • The on-board shell positioning holes make it easier to add shell designs in the future and facilitate installation.
  • The H-bridge driver built using discrete MOS tubes can support high-power motors. It can also support three-phase motors through subsequent software upgrades.
  • Equipped with front lights, rear brake lights and horn to simulate car functions.
  • It is tentatively planned to use 4 N20 motors divided into left and right groups for driving.

3. Detailed circuit description

3.1 Power supply part

小车供电使用两节18650电池串联供电,使用18650电池盒通过PH2.0插口连接到小车底板,虽然PH2.0本身带有防插错功能,但还需进一步防止电池装反的情况。因此小车底板增加了**PMOS**防反接电路。经过防反接电路后通过AMS1117-3.3芯片,输出3.3v给WIFI模块供电。

WX20210418-150030@2x.png

3.2 Headlights and brake lights

车前灯原本打算使用两个gpio口进行控制,但转念一想,前大灯不是转向灯,没必要分别控制,小孩玩反而增加复杂度。刹车灯原本是想通过电路设计自动控制,但因电机驱动设计导致自动刹车灯的电路较为复杂且不方便调试,而改为使用gpio通过程序逻辑进行控制。

WX20210418-151134@2x.png

3.3 Obstacle avoidance circuit

该部分参考的立创号小车,由于器件规格购买错误,而未进行焊接。

3.4 Motor control circuit

计划使用的FD6288三相桥控制芯片进行驱动,实际使用时因三相的程序逻辑过于复杂,本人尚未充分理解,因此只使用了其中两相,组成H桥驱动直流有刷电机。

WX20210418-151617@2x.png

4 Summary

本次活动只能算是部分完成了,最终版本的程序仍然未完成。使我认识到很多不足,软硬件的理解不够充分,各器件的型号规格都还不熟悉,打样回来才发现库存很多器件规格与画板时使用的不一致,重新购买器件也浪费了较多时间。对EDA的使用也很浅显,画图时没有关注器件的选型,价格,封装等,特别感谢审核的刘工,审核时指出问题所在。感谢立创创办这样的活动,使我种业余人士能有机会拓展视野,学习到新的技能,认识和向各位专业人士交流学习机会。
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-15 16:29:17

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号