登录
首页 » c » 四路寻迹

四路寻迹

于 2023-04-27 发布 文件大小:27.11 kB
0 156
下载积分: 2 下载次数: 1

代码说明:

#include #define CAR_SPEED_MAX 10 //最大速度 sfr P4=0xe8; sbit PWM_R=P1^7; //PWM输出 sbit PWM_L=P1^2; sbit Moto_RA=P1^6; sbit Moto_RB=P1^5; sbit Moto_LA=P1^4; sbit Moto_LB=P1^3; //左右电机驱动 unsigned char Moto_Speed_R; //右轮速度 unsigned char Moto_Speed_L; //左轮速度  unsigned char Moto_Speed_Num; //PWM调速 sbit INF_R0=P4^3; //循迹 右侧内传感器 sbit INF_R1=P4^2; //循迹 右侧外传感器 sbit INF_L0=P4^1;   //循迹 左侧内传感器 sbit INF_L1=P4^0;   //循迹 左侧外传感器 unsigned char Car_Sta; //电机启动速度 /*********************************** *函数名称:void Delay(unsigned char num) *函数功能:延时 *参数说明:num 延时时间 数值最大255 *返回说明:无 *其它说明:不精准延时 ***********************************/ //void Delay(unsigned char num) //{ // unsi

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • PSK_encode_decode
    本源码通过声音传通数据,将数据调制二进制PSK(即BPSK)信号从喇叭发出来,另外一个接收程序接收到声音后,便可以解码出来,用到的技术有PSK编码、PSK解码、Windows录音,为了防止传输过程中出现的误,本原码采用rss纠错码,使得通讯更加稳定可靠。(The Source by voice through the data, binary modulation PSK (ie, BPSK) signals emitted the speaker, the other receiving program after receiving the sound, you can decode it, the techniques used have PSK encoding, PSK decoding, Windows Recording in order to prevent accidental transmission occurs, the primitive code using rss error correction code, making communications more reliable.)
    2015-04-03 13:58:41下载
    积分:1
  • 8155proteus
    51单片机的8155扩展的proteus仿真,完成数码管显示,LED灯控制,键盘控制等多种功能,仅供参考(51 MCU 8155 extended proteus simulation, the completion of digital tube display, LED light control, keyboard control and other functions, for reference purposes only)
    2020-12-11 00:29:18下载
    积分:1
  • swnt
    matlab建立碳纳米管模型,从而进行后面的其他运算(Matlab set up a carbon nanotube model to perform other operations.)
    2021-03-25 00:59:14下载
    积分:1
  • 0-1背包问题
    问题描述为:给定一组物品,每种物品都有自己的重量和价格,在限定的总重量内,我们如何选择,才能使得物品的总价格最高。
    2023-02-02 21:40:03下载
    积分:1
  • IESS-601E
    iEEE 601 标准 信道编码相关 卫星通信(the standard channel iEEE 601 encoding related satellite communications)
    2021-03-26 10:39:13下载
    积分:1
  • account
    C++大作业,编写一个account类实现基类派生类之间的各种关系。主要用于初学者对于类的理解。(C++ big job, write a class that implements account the various relationships between the base class derived class. The main class for beginners to understand.)
    2013-12-26 14:58:21下载
    积分:1
  • STM32平衡车程序
    基于STM32的平衡小车程序,卡尔曼滤波
    2022-04-29 23:31:06下载
    积分:1
  • 带fifo支持长短按键模块程序
    带fifo支持长短按键模块程序,不依赖平台,可移植使用。
    2022-05-25 05:45:22下载
    积分:1
  • vc-cpp
    c语言实现,能够输入和查询客户存款取款记录。在客户文件中,每个客户是一条记录,包括编号、客户姓名、支取密码、客户地址、客户电话、账户总金额;在存取款文件中,每次存取款是一条记录,包括编号、日期、类别、存取数目、经办人。类别分为取款和存款两种。本系统能够输入客户存款或取款记录;根据客户姓名查询存款和取款记录。(c language, be able to enter and query the records of customer deposit withdrawals. , Each customer is a record in the customer file, including the number, customer name, withdraw the password, the customer address, customer phone account the total amount in the deposit file, each deposit is a record, including the number, date, category, access the number of managers. The categories are divided into two kinds of withdrawals and deposits. The system can enter the customer deposits or withdrawals records their deposits and withdrawals recorded according to the customer' s name.)
    2012-06-26 00:26:45下载
    积分:1
  • 基于opencv的激光线中心提取源码
    说明:  基于opencv的激光线中心提取源码,需要配置下自己的opencv和图像文件路径,可以直接运行,输出激光线的中心(The source code of laser line center extraction based on OpenCV needs to be configured with its own opencv and image file path, which can run directly and output the center of laser line)
    2020-07-31 14:48:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载