文章分类 -  机器人

摘要:1.进入氪编程 2.进入项目编程 3.进入其中一个项目--彩虹风车 4.按搭建步骤搭建 阅读全文
posted @ 2023-02-07 16:07 new-code 阅读(59) 评论(0) 推荐(0) 编辑
摘要:安装勇敢者APP 1.手机扫描二维码下载 2.点击右上角 3.点击浏览器打开 4.点击安装版 5.点击下载 6.下载完成点击apk文件安装 7.点击继续安装 8.勇敢造安装完成 安装氪编程APP 1.进入勇敢造APP 2.点击敢造装备 3.点击手机--Abilix krypton 4.下载完成后安装 阅读全文
posted @ 2023-02-07 15:37 new-code 阅读(354) 评论(0) 推荐(0) 编辑
摘要:按键开关 按下为1 松开为0 const int kgPin=2; void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(kgPin,INPUT); } void loop() { / 阅读全文
posted @ 2022-12-17 10:07 new-code 阅读(51) 评论(0) 推荐(0) 编辑
摘要:#include <RS_Motor.h> RS_Motor motor_left; RS_Motor motor_right; void setup() { // put your setup code here, to run once: } void loop() { // put your 阅读全文
posted @ 2022-12-17 08:35 new-code 阅读(38) 评论(0) 推荐(0) 编辑
摘要:超声传感器 示例代码 const int trigPin=12; const int echoPin=13; float getDistance(){ digitalWrite(trigPin,LOW); delayMicroseconds(2); digitalWrite(trigPin,HIGH 阅读全文
posted @ 2022-12-11 14:21 new-code 阅读(49) 评论(0) 推荐(0) 编辑
摘要:红外传感器 示例代码 #include<IRremote.h> long ir_value; IRrecv iRrecv(A0); decode_results results; void setup() { // put your setup code here, to run once: Ser 阅读全文
posted @ 2022-12-11 14:07 new-code 阅读(207) 评论(0) 推荐(0) 编辑
摘要:马达示例程序 #include <RS_Motor.h> RS_Motor motor_left; RS_Motor motor_right; void setup() { // put your setup code here, to run once: } void loop() { // pu 阅读全文
posted @ 2022-12-11 13:33 new-code 阅读(205) 评论(0) 推荐(0) 编辑
摘要:2020.06 青少年机器人技术等级考试理论综合试卷(四级) https://www.doc88.com/p-54761549616027.html 2020.09 青少年机器人技术等级考试理论综合试卷(四级) https://www.doc88.com/p-98073986737529.html? 阅读全文
posted @ 2022-10-30 17:16 new-code 阅读(56) 评论(0) 推荐(0) 编辑
摘要:呼吸灯 const int dwqPin=A0; const int ledPin=9; void setup() { // put your setup code here, to run once: Serial.begin(9600); } void loop() { // put your 阅读全文
posted @ 2022-10-23 13:10 new-code 阅读(29) 评论(0) 推荐(0) 编辑
摘要:下载地址 gitee: https://gitee.com/HongYii/Arduino-LiquidCrystal-I2C-library 百度网盘: 链接: https://pan.baidu.com/s/1XzhbjPQFgApPWLnUhTtjxQ?pwd=gq5v 提取码: gq5v 复 阅读全文
posted @ 2022-09-25 16:58 new-code 阅读(42) 评论(0) 推荐(0) 编辑
摘要:舵机 #include<Servo.h> Servo myServo; int djPin=12; void setup() { // put your setup code here, to run once: myServo.attach(djPin); } void loop() { // p 阅读全文
posted @ 2022-09-25 11:24 new-code 阅读(50) 评论(0) 推荐(0) 编辑
摘要:数字信号、模拟信号操作函数 数字信号操作函数 pinMode(pin,mode) 功能: 设置指定引脚工作模式 参数: pin 为数字引脚 0~13 、A0~A5 mode 为INPUT/OUTPUT/INPUT_PULLUP 返回值 无 2.digitalRead(pin) int dwq=A0; 阅读全文
posted @ 2022-09-25 10:51 new-code 阅读(169) 评论(0) 推荐(0) 编辑
摘要:光敏电阻读取 P81 int gmPin=A0;//电位器A0 void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(gmPin,INPUT);//引脚工作模式为输入 } void l 阅读全文
posted @ 2022-09-25 10:33 new-code 阅读(84) 评论(0) 推荐(0) 编辑
摘要:int Sensor= 2; void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(Sensor, INPUT); } void loop() { // put your main c 阅读全文
posted @ 2022-09-24 22:58 new-code 阅读(18) 评论(0) 推荐(0) 编辑
摘要:电位器 电位器模板有S-V-G,通过3P数据线,连接扩展板A0~A5任意引脚,读取模拟输入数据。 analogRead 函数 analogRead(pin) 系统自带函数,功能是从指定的模拟输入引脚(A0~A5) 读取数据值,将0~5V输入电压映射到 0~1023之间的整数值 示例代码 const 阅读全文
posted @ 2022-09-18 13:04 new-code 阅读(372) 评论(0) 推荐(0) 编辑
摘要:C语言中进制前缀 二进制 前缀 0b 示例 0b100 十进制 4 八进制 前缀 0 示例 0100 十进制 64 十进制 无前缀 示例 100 十进制 100 十六进制 前缀 0x 示例 0x100 十进制 256 示例代码 void setup() { // put your setup cod 阅读全文
posted @ 2022-09-18 10:56 new-code 阅读(556) 评论(0) 推荐(0) 编辑
摘要:青少年机器人技术等级考试实际操作试卷(四级)2021-09 青少年机器人技术等级考试实际操作试卷(四级)2021-09-参考方案 阅读全文
posted @ 2022-08-07 11:23 new-code 阅读(262) 评论(0) 推荐(0) 编辑
摘要:青少年机器人技术等级考试实际操作试卷(四级)2021-06 https://www.cnblogs.com/myeln/articles/16462816.html 青少年机器人技术等级考试实际操作试卷(四级)2021-12 https://www.cnblogs.com/myeln/article 阅读全文
posted @ 2022-08-07 10:59 new-code 阅读(353) 评论(0) 推荐(0) 编辑
摘要:米思齐定时触发蜂鸣器--异步控制蜂鸣器 青少年机器人技术等级考试实际操作试卷(三级)2021-12 可以通过上面思路控制蜂鸣器 阅读全文
posted @ 2022-07-31 12:01 new-code 阅读(717) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示