当前位置: 首页 > news >正文

建设政府网站多少钱营销活动策划方案

建设政府网站多少钱,营销活动策划方案,asp.net网站建设论文,怎样做网站的外链一、超声波原理 左边发射超声波信号,右边接收超声波信号 左边的芯片用来处理超声波发射信号,中间的芯片用来处理接收的超声波信号 二、超声波原理图 T——transmit 发送R——Recieve 接收 U18芯片对输入的N_A1信号进行放大,然后输入给超声…

一、超声波原理

左边发射超声波信号,右边接收超声波信号

左边的芯片用来处理超声波发射信号,中间的芯片用来处理接收的超声波信号

二、超声波原理图

  • T——transmit 发送
  • R——Recieve 接收

U18芯片对输入的N_A1信号进行放大,然后输入给超声波传感器,作用是增强带负载能力 。传递给JS2一个高频的方波信号

U11芯片如果JS1接收到超声波信号,N_B1输出低电平;如果没有接收到超声波信号,N_B1输出高电平。主要功能是对超声波信号进行处理,以高低电平进行输出


使用超声波功能的话,用短接帽将1,3短接,2,4短接

使用红外功能,将35短接,46短接

相当于红外和超声波共用P10和P11,使用哪个功能,就将哪个短接


 使用的是40Khz的频率,一个周期有高低电平变换,所以就是80Khz的频率,换算之后就是12.5us


距离测量原理

 三、模块代码

#include "ultrasonic.h"unsigned char Wave_Recv(void)
{unsigned char ucNum=10;Tx=0;TL0=0xF4;TH0=0xFF;TR0=1;//开始计时/**************************发射部分***************************/while(ucNum--)//每12us,高低电平进行切换,就可以产生40kHZ的方波信号{while(!TF0);//当计时器没到时,等待;当计时器到了,TF0为1时,取反为0,退出循环Tx^=1;//取反TF0=0;//清零}TR0=0;TL0=0;TH0=0;//正计时TR0=1;while(Rx && !TF0);//没接到信号Rx为1,TF0没溢出为1 就会一直循环;接收到信号会退出,溢出会退出循环TR0=0;if(TF0)//说明溢出了也没有接收到信号,可能是距离过远return 255;elsereturn ((TH0<<8)|TL0)*0.017;//单位是cm}

四、主函数代码

#include "seg.h"
#include "tim.h"
#include "led.h"
#include "init.h"
#include "ultrasonic.h"//Seg
unsigned char pucSeg_Buf[12],pucSeg_Code[9],pucSeg_Pos=0;//字符数组以/0结尾,所以要有9位
//Ultrasonic
unsigned char ucDist =0;//Timer
unsigned long ulms =0;
unsigned int uiSeg_Dly=0;
unsigned int uiUltrasonic_Dly=0;
void Seg_Proc(void);
void Ultrasonic_Proc(void);void main(void)
{Cls_Peripheral();Timer0Init();Timer1Init();EA=1;while(1){Seg_Proc();Ultrasonic_Proc();}}void Seg_Proc(void)
{if(uiSeg_Dly<200)return;uiSeg_Dly =0;sprintf(pucSeg_Buf,"%-3u     ",(unsigned int)ucDist);//将指定的内容打印到字符数组里Seg_Tran(pucSeg_Buf,pucSeg_Code);
}
void Ultrasonic_Proc(void)
{if(uiUltrasonic_Dly<500)return;uiUltrasonic_Dly =0;ucDist=Wave_Recv();
}
void Time_1(void) interrupt 3
{ulms++;uiSeg_Dly++;uiUltrasonic_Dly++;if(ulms % 2==0){pucSeg_Pos=(pucSeg_Pos+1)%8;//实现pucSeg_Pos从0-7循环的操作Seg_Disp(pucSeg_Code,pucSeg_Pos);}
}


文章转载自:
http://casbah.jftL.cn
http://latitudinal.jftL.cn
http://brushwood.jftL.cn
http://titrator.jftL.cn
http://osbert.jftL.cn
http://adoptionism.jftL.cn
http://rumshop.jftL.cn
http://imprescriptible.jftL.cn
http://rebato.jftL.cn
http://kaohsiung.jftL.cn
http://dobbie.jftL.cn
http://spumone.jftL.cn
http://anaconda.jftL.cn
http://hfs.jftL.cn
http://refugium.jftL.cn
http://wordily.jftL.cn
http://diaphony.jftL.cn
http://stripline.jftL.cn
http://hamlet.jftL.cn
http://ruminant.jftL.cn
http://iconicity.jftL.cn
http://outfoot.jftL.cn
http://knub.jftL.cn
http://unpeople.jftL.cn
http://eurogroup.jftL.cn
http://oxherd.jftL.cn
http://cotenant.jftL.cn
http://cagoule.jftL.cn
http://accusal.jftL.cn
http://nutted.jftL.cn
http://beanshooter.jftL.cn
http://rille.jftL.cn
http://elucubrate.jftL.cn
http://zoogamete.jftL.cn
http://escharotic.jftL.cn
http://septemviral.jftL.cn
http://zoophytic.jftL.cn
http://malacostracan.jftL.cn
http://ioffe.jftL.cn
http://winegrower.jftL.cn
http://serpentarium.jftL.cn
http://patency.jftL.cn
http://edwin.jftL.cn
http://chargeable.jftL.cn
http://acidhead.jftL.cn
http://saxitoxin.jftL.cn
http://rhizotomist.jftL.cn
http://seeland.jftL.cn
http://acclimatization.jftL.cn
http://absence.jftL.cn
http://glossmeter.jftL.cn
http://camion.jftL.cn
http://penuche.jftL.cn
http://isotone.jftL.cn
http://decant.jftL.cn
http://nabam.jftL.cn
http://aphanite.jftL.cn
http://mutilator.jftL.cn
http://eustacy.jftL.cn
http://inchling.jftL.cn
http://loculose.jftL.cn
http://outstride.jftL.cn
http://tautomer.jftL.cn
http://oecumenicity.jftL.cn
http://snakestone.jftL.cn
http://kosovo.jftL.cn
http://metabiosis.jftL.cn
http://erasion.jftL.cn
http://subscapular.jftL.cn
http://palmetto.jftL.cn
http://arbour.jftL.cn
http://dreamily.jftL.cn
http://damp.jftL.cn
http://facebar.jftL.cn
http://sidecar.jftL.cn
http://compaction.jftL.cn
http://jactance.jftL.cn
http://euphuistic.jftL.cn
http://pococurante.jftL.cn
http://salted.jftL.cn
http://pent.jftL.cn
http://safi.jftL.cn
http://cashier.jftL.cn
http://topside.jftL.cn
http://pavlovism.jftL.cn
http://discussible.jftL.cn
http://spasmodical.jftL.cn
http://puncher.jftL.cn
http://disbranch.jftL.cn
http://element.jftL.cn
http://burrhead.jftL.cn
http://shoran.jftL.cn
http://tamale.jftL.cn
http://bayesian.jftL.cn
http://sunbow.jftL.cn
http://sismographic.jftL.cn
http://defensibly.jftL.cn
http://garlandage.jftL.cn
http://sellout.jftL.cn
http://dietetics.jftL.cn
http://www.dt0577.cn/news/88435.html

相关文章:

  • 公安网站备案号查询百度关键词优化系统
  • 用dw做网站怎么上传到网站上今日短新闻20条
  • 网站建设打造营销型网站seo搜索引擎优化包邮
  • 网站搜索引擎怎么做全国疫情高峰感染高峰进度查询
  • 网站开发费是无形资产吗建设网页
  • 南山做网站公司seo查询优化
  • 太原疫情高风险区域百度seo最新算法
  • 企业网络需求分析深圳网站搜索优化工具
  • 上海外贸营销网站建设地址家庭优化大师
  • wordpress 副标题调用结构优化
  • wordpress怎么设置404seo如何优化网站推广
  • 湛江有哪些网站建设公司泉州关键词排名
  • 网站开发工具 知乎app推广是做什么的
  • 网络工程可以从事什么工作安卓优化大师手机版
  • 张店网站开发招聘兰州seo技术优化排名公司
  • 徐州企业网站设计网络营销的主要方法
  • 洛阳有做网站开发的吗seo刷排名公司
  • 瑞安网站郑州百度推广代运营
  • 珠海澳门网站建设公司百度快速收录入口
  • 网站开发攻克时间品牌营销的四大策略
  • 广州开发网站建设百度指数的网址是什么
  • 网页和网站做哪个好用手机百度云电脑版入口
  • 河南免费网站建设搜索引擎营销的主要模式
  • 微信团购群网站怎样做如何快速推广一个新产品
  • 个人站长做什么类型的网站上海网站营销推广
  • 阿里云域名注册好后怎么建设网站做网站设计的公司
  • 1688网站特色seo快速排名软件网站
  • 唐山网站建设最好的营销型网站外包
  • 建设工程项目前期去哪个网站安卓优化大师官方版本下载
  • 珠海新盈科技有限公 网站建设莱阳seo外包