• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
MKT-porter
博客园    首页    新随笔    联系   管理    订阅  订阅

随笔分类 -  Arduino

1 2 3 4 下一页
arduino按键控制舵机

摘要:#include <Wire.h> #include <Adafruit_PWMServoDriver.h> Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(); const uint8_t SERVO_CHANNEL = 0; const 阅读全文
posted @ 2025-04-12 03:41 MKT-porter 阅读(62) 评论(0) 推荐(0)
arduino激光测距

摘要:设置采集频率20hz 5A 0B 02 C3 4F E0 设置串口波特率115200 5A 06 02 80 04 73 样例1 单独测距 #include <SoftwareSerial.h> #define START_BYTE 0x5C // 起始帧标志 #define FRAME_SIZE 阅读全文
posted @ 2025-03-17 21:48 MKT-porter 阅读(39) 评论(0) 推荐(0)
arduino string 转化char

摘要:float Temperature = split_result[2].toFloat(); float Humidity = split_result[1].toFloat(); int Smoke = split_result[0].toInt(); String alram = String( 阅读全文
posted @ 2023-08-10 12:01 MKT-porter 阅读(139) 评论(0) 推荐(0)
(经典)arduino控制步进电机

摘要:1TB6600驱动器 贵 Arduino控制TB6600驱动器+42步进电机 https://blog.csdn.net/dongyan3595/article/details/122388869 实际使用 1 接线 2调电流控制 3调步数精度 步数 细分 4 高电平有效 int PUL = 7; 阅读全文
posted @ 2023-07-17 15:33 MKT-porter 阅读(2943) 评论(0) 推荐(0)
基于Arduino UNO的DS18B20多点组网测温

摘要:https://blog.csdn.net/PHILICS7/article/details/129588728 写在前面DS18B20基于单总线协议,多个DS18B20可以连接在同一个引脚上,通过单总线扫描可以得到地址,并分别对某个地址上的DS18B20进行通信(发命令开启温度转换)完成测温。 设 阅读全文
posted @ 2023-07-17 14:48 MKT-porter 阅读(306) 评论(0) 推荐(0)
Arduino 控制激光测距 4M

摘要:VL53L0X飛時測距模組通常有6隻接腳,只需要接電源和I2C腳。 Arduino Uno板的接線示範: 安裝Arduino版的VL53L0X程式庫 選擇Arduino IDE主功能表的「草稿碼→匯入程式庫→程式庫管理員」,在「程式庫管理員」中搜尋“VL53L0X ”關鍵字,即可找到相關程式庫,常見 阅读全文
posted @ 2023-07-05 16:06 MKT-porter 阅读(276) 评论(0) 推荐(0)
Arduino通过A4988电机驱动板控制NEMA电机电路连接

摘要:http://www.taichi-maker.com/homepage/reference-index/motor-reference-index/arduino-a4988-nema-stepper-motor/ 简化版本呢代码 /* Arduino控制NEMA步进电机测试程序 by 太极创客( 阅读全文
posted @ 2023-07-05 15:51 MKT-porter 阅读(1320) 评论(0) 推荐(0)
arduino避障小车

该文被密码保护。
posted @ 2023-03-04 01:51 MKT-porter 阅读(0) 评论(0) 推荐(0)
arduino赌气气压计显示oled

摘要:1气压计 #include <Adafruit_BMP085.h> Adafruit_BMP085 bmp; void setup() { Serial.begin(9600); if (!bmp.begin()) { Serial.println("Could not find a valid B 阅读全文
posted @ 2022-07-29 18:01 MKT-porter 阅读(120) 评论(0) 推荐(0)
arduino跟随小车

摘要:int PrintOk=1;//打印消息 // 红外状态信号 int pin_red_right = 8; int pin_red_center = 9; int pin_red_left = 10; // 电机驱动引脚 int pin_Motor_RightA = 4; int pin_Motor 阅读全文
posted @ 2022-04-09 14:07 MKT-porter 阅读(130) 评论(0) 推荐(0)
arduino读取时钟

摘要:Arduino 实时时钟DS1302模块 https://dsx2016.com/?p=1583 DS1302 内部有一个 31×8 的用于临时性存放数据的 RAM 寄存器。 DS1302 是 DS1202 的升级产品,与 DS1202兼容,但增加了主电源/后备电源双电源引脚,同时提供了对后备电源进 阅读全文
posted @ 2022-04-08 03:18 MKT-porter 阅读(363) 评论(0) 推荐(0)
arduino红外测温

该文被密码保护。
posted @ 2022-04-08 02:27 MKT-porter 阅读(0) 评论(0) 推荐(0)
arduino读取mpu6050加速度传感器

摘要:#include <Adafruit_MPU6050.h> #include <Adafruit_Sensor.h> #include <Wire.h> Adafruit_MPU6050 mpu; void MpuInt(){ if (!mpu.begin()) { Serial.println(" 阅读全文
posted @ 2022-04-02 17:09 MKT-porter 阅读(833) 评论(0) 推荐(0)
arduino激光测距

该文被密码保护。
posted @ 2022-03-23 18:18 MKT-porter 阅读(254) 评论(0) 推荐(0)
arduino发怂16进制数据

摘要:uint8_t buffer[2]; buffer[0] = 0xe0; buffer[1] = 0x11; portTwo.write(buffer, 2); 阅读全文
posted @ 2022-03-15 10:53 MKT-porter 阅读(393) 评论(0) 推荐(0)
esp8266读取mpu6050和烟雾数据tcp发送电脑

该文被密码保护。
posted @ 2021-10-28 21:07 MKT-porter 阅读(0) 评论(0) 推荐(0)
zigbee无线串口

摘要:2.4G zigbee无线串口收发模块 CC2530数据透传 点对点广播模式TTL 连接参考 https://item.taobao.com/item.htm?spm=a1z09.2.0.0.693f2e8dthmJVV&id=536534170165&_u=h1qf7bf5f801 点对电通信 1 阅读全文
posted @ 2021-10-17 15:03 MKT-porter 阅读(322) 评论(0) 推荐(0)
经典arduino和esp8266串口通信 tcp通信

该文被密码保护。
posted @ 2021-05-09 11:51 MKT-porter
6线AB相马达与ARDUINO 和 L298N电机之间

摘要: 阅读全文
posted @ 2021-01-21 03:47 MKT-porter 阅读(133) 评论(0) 推荐(0)
arduino字符分割

摘要://待分割字符 String split_input= "My_i_You_i_Her_i_XiaoHe_i_"; //分割结果 String split_result[10];//手动动态调整数组大小,保证数组可以满足容量 void setup() { Serial.begin(115200); 阅读全文
posted @ 2020-07-28 16:37 MKT-porter 阅读(1158) 评论(0) 推荐(0)

1 2 3 4 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3