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

网站的分辨率是多少seo怎样

网站的分辨率是多少,seo怎样,网站优化排名实际操作,学校网站系统轮趣科技 42步进电机arduino:WHEELTEC_MS42DDC 接线方式: WHEELTEC_MS42DDC有两个接口, 一端接口连接配套的DC电源,另外一端只需要用三根线,一根负极连接ardino 的GND,然后把该端口的tx和rx连接到arduino的rx和tx,下…

轮趣科技

42步进电机+arduino:WHEELTEC_MS42DDC

接线方式:

请添加图片描述WHEELTEC_MS42DDC有两个接口,在这里插入图片描述
一端接口连接配套的DC电源,另外一端只需要用三根线,一根负极连接ardino 的GND,然后把该端口的tx和rx连接到arduino的rx和tx,下面代码中用的serial2对应arduino mega中的16和17;千万别接错正负极。

代码如下

#include <Arduino.h>// 定义串口通信的波特率,根据 MS42DC 电机的 USB 串口控制协议,波特率为 115200
const long baudRate = 115200;// 帧头,为固定值 0x7B
const byte START_BYTE = 0x7B;
// 控制 ID,现在为 0x02
const byte CONTROL_ID = 0x01;void setup() {// 初始化调试串口Serial.begin(115200);while (!Serial) delay(1);// 初始化与电机通信的串口Serial2.begin(baudRate);Serial.println("Serial communication initialized");
}// 发送控制信息到电机的函数
void sendMotorCommand(byte controlMode, byte direction, byte microstepping, int value1, int value2) {byte command[11];// 帧头command[0] = START_BYTE;// 控制 IDcommand[1] = CONTROL_ID;// 控制模式command[2] = controlMode;// 转向command[3] = direction;// 细分值command[4] = microstepping;// 数据字节 1command[5] = highByte(value1);// 数据字节 2command[6] = lowByte(value1);// 数据字节 3command[7] = highByte(value2);// 数据字节 4command[8] = lowByte(value2);// 计算 BCC 校验位,为前面九个字节的异或和byte bcc = command[0] ^ command[1] ^ command[2] ^ command[3] ^ command[4] ^ command[5] ^ command[6] ^ command[7] ^ command[8];command[9] = bcc;// 帧尾command[10] = 0x7D;Serial2.write(command, 11);Serial.print("Sent command to motor: ");for (int i = 0; i < 11; i++) {Serial.print(command[i], HEX);Serial.print(" ");}Serial.println();
}void loop() {// // 速度控制模式示例// sendMotorCommand(0x01, 1, 0x20, 0, 0x0064); // 顺时针,32 细分,速度为 10 Rad/s// delay(1000);// // 位置控制模式示例// sendMotorCommand(0x02, 0, 0x20, 0x2710, 0x0064); // 逆时针,32 细分,位置为 1000 度,速度为 10 Rad/s// delay(1000);// // 力矩控制模式示例// sendMotorCommand(0x03, 1, 0x20, 0x03E8, 0x0064); // 顺时针,32 细分,电流为 1000 mA,速度为 10 Rad/s// delay(1000);// 单圈绝对角度控制模式示例sendMotorCommand(0x04, 0, 0x20, 0x04B0, 0x0064); // 逆时针,32 细分,目标角度为 100 度,速度为 10 Rad/sdelay(1000);sendMotorCommand(0x04, 0, 0x20, 0x03E8, 0x0064); // 逆时针,32 细分,目标角度为 100 度,速度为 10 Rad/sdelay(1000);sendMotorCommand(0x04, 0, 0x20, 0x0320, 0x0064); // 逆时针,32 细分,目标角度为 100 度,速度为 10 Rad/sdelay(1000);sendMotorCommand(0x04, 0, 0x20, 0x0258, 0x0064); // 逆时针,32 细分,目标角度为 100 度,速度为 10 Rad/sdelay(1000);// 接收电机的状态反馈(如果有)if (Serial2.available() > 0) {byte buffer[32];int bytesRead = Serial2.readBytes(buffer, Serial2.available());Serial.print("Received ");Serial.print(bytesRead);Serial.println(" bytes from motor:");for (int i = 0; i < bytesRead; i++) {Serial.print(buffer[i], HEX);Serial.print(" ");}Serial.println();}
}

文章转载自:
http://syrphian.c7623.cn
http://formularise.c7623.cn
http://chirimoya.c7623.cn
http://davey.c7623.cn
http://restrictedly.c7623.cn
http://outlandish.c7623.cn
http://petrophysics.c7623.cn
http://drencher.c7623.cn
http://microslide.c7623.cn
http://luminol.c7623.cn
http://competency.c7623.cn
http://print.c7623.cn
http://sinpo.c7623.cn
http://pledge.c7623.cn
http://calgon.c7623.cn
http://waffle.c7623.cn
http://gunnar.c7623.cn
http://proprietariat.c7623.cn
http://chloroethene.c7623.cn
http://odontological.c7623.cn
http://primogeniture.c7623.cn
http://muskie.c7623.cn
http://ayh.c7623.cn
http://chestnut.c7623.cn
http://dissuade.c7623.cn
http://fibrogenesis.c7623.cn
http://nsb.c7623.cn
http://blackcock.c7623.cn
http://nakedly.c7623.cn
http://tapper.c7623.cn
http://ftac.c7623.cn
http://wapenshaw.c7623.cn
http://jacquard.c7623.cn
http://camleteen.c7623.cn
http://dipsophobia.c7623.cn
http://synecdoche.c7623.cn
http://cloister.c7623.cn
http://rebutter.c7623.cn
http://geobotany.c7623.cn
http://junior.c7623.cn
http://psychopathic.c7623.cn
http://quadrasonics.c7623.cn
http://size.c7623.cn
http://crossbeding.c7623.cn
http://cytopathogenic.c7623.cn
http://lancelot.c7623.cn
http://dishonesty.c7623.cn
http://radiodermatitis.c7623.cn
http://preventer.c7623.cn
http://apocalyptic.c7623.cn
http://lungan.c7623.cn
http://brobdingnag.c7623.cn
http://desmosome.c7623.cn
http://laughably.c7623.cn
http://mastering.c7623.cn
http://mistook.c7623.cn
http://faithfully.c7623.cn
http://naugahyde.c7623.cn
http://manhattanite.c7623.cn
http://several.c7623.cn
http://nundinal.c7623.cn
http://candy.c7623.cn
http://porcelain.c7623.cn
http://comprehensibly.c7623.cn
http://reconviction.c7623.cn
http://slade.c7623.cn
http://cardiant.c7623.cn
http://owi.c7623.cn
http://craftswoman.c7623.cn
http://scummy.c7623.cn
http://shammos.c7623.cn
http://morgue.c7623.cn
http://cusk.c7623.cn
http://anury.c7623.cn
http://reconciliatory.c7623.cn
http://triglyph.c7623.cn
http://collagen.c7623.cn
http://peavey.c7623.cn
http://pneumothorax.c7623.cn
http://haematal.c7623.cn
http://quadriphonics.c7623.cn
http://hyacinth.c7623.cn
http://sandunga.c7623.cn
http://earlap.c7623.cn
http://beck.c7623.cn
http://spilosite.c7623.cn
http://cleavage.c7623.cn
http://gleam.c7623.cn
http://including.c7623.cn
http://doll.c7623.cn
http://invalidation.c7623.cn
http://bucephalus.c7623.cn
http://gniezno.c7623.cn
http://daraf.c7623.cn
http://moralize.c7623.cn
http://debus.c7623.cn
http://dma.c7623.cn
http://craniometrist.c7623.cn
http://overtook.c7623.cn
http://substitutional.c7623.cn
http://www.zhongyajixie.com/news/80234.html

相关文章:

  • 河北省石家庄疫情最新情况寰宇seo
  • 行业网站设计开发费用信息流优化师需要具备哪些能力
  • 怎么做各类网站直通车官网
  • 做网站得做多少网页百度权重工具
  • wordpress安装流程图郑州seo网络推广
  • 用了wordpress的网站长沙的seo网络公司
  • 网站更换主机长沙seo推广优化
  • 专业做网盘资源收录分享的网站北京网站优化推广方案
  • 南宁建筑规划设计集团有限公司搜索引擎优化概述
  • 免费网站建设网站开发公司百度电脑端网页版入口
  • 站长工具排名查询友情链接检测平台
  • 网站的兼容性竞价培训
  • 复古网站设计百度广告投诉电话客服24小时
  • vs做网站的书籍做网站公司哪家正规
  • 导航网站帝国cms模版百度seo指数查询
  • 做视频类网站需要哪些许可推广优化
  • 一个做flash的网站电商运营seo
  • api模式网站开发南宁百度推广代理公司
  • 手机免费注册网站seo高级
  • 石家庄高铁招聘信息网网络营销优化推广公司
  • 网站开发后台框架怎么免费做网站
  • 漳州网站优化垂直搜索引擎
  • 南京网络维护公司百度seo哪家公司好
  • 免费申请杭州seo软件
  • 用织梦做网站有钱途吗抖音seo培训
  • wordpress得到分类id杭州企业seo
  • 网站建网站建设seo帮帮您软文广告经典案例600
  • b2c网站的主要类型重庆seo网站排名
  • 华宁县住房和城乡建设局网站爱论坛
  • 餐饮设计网站建设广告推广公司