电子发烧友App

硬声App

0
  • 聊天消息
  • 系统消息
  • 评论与回复
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
创作中心

完善资料让更多小伙伴认识你,还能领取20积分哦,立即完善>

3天内不再提示
电子发烧友网>电子资料下载>电子资料>如何制作手势控制机器人-MadeWithArduino(发射器)

如何制作手势控制机器人-MadeWithArduino(发射器)

2022-07-01 | zip | 0.05 MB | 次下载 | 免费

资料介绍



poYBAGKv7X6AKOYzAAClL71tD_o966.png
pYYBAGKv7YCAHmu2AABmH4CQlB0908.png
poYBAGKv7YOACFdDAACl55zIcGk56.jpeg

成分

nRF24Lo1+ × 1
Arduino Nano V3 × 1
MPU6050 × 1

描述

如何制作手势控制机器人|| #MadeWithArduino(发射器)

嘿,欢迎回到一个新项目。所以今天我们将学习使用Arduino创建一个手势控制车。

这里我将分享项目发射器部分的详细教程,我还分享了另一个项目接收器部分的教程。这是查看它的链接:https ://bit.ly/3lZOOUI

poYBAGKv7YmAOByhAABO2fdn9zo655.jpg

查看 YouTube 上的项目教程视频:

首先说一下我们需要的材料:

〜阿杜诺纳米

~ MPU 6050

~ nRF24Lo1+

〜男性和女性头

~ 9V 电池

开始安装组件:

安排好上述组件后,我们需要将母头引脚焊接到 PCB,如图所示。

poYBAGKv7YuADcIoAAA-O-LVUgU664.jpg

现在,我们需要将组件一个一个地安装到 PCB 上。在以下模式中:

poYBAGKv7Y6AN6jsAAA0wGW2n3U668.jpg

安装完组件后,我们需要上传本文附件中给出的代码。

注意:在上传代码之前,请确保将 Arduino Nano 与您的计算机连接并包含所需的库。

pYYBAGKv7ZCAJ1kbAABcw8CLIYM693.jpg

连接后,打开Arduino IDE并上传代码。

pYYBAGKv7ZOAQplLAABEAwoQInk431.jpg

完成代码上传后,只需断开 Arduino Nano 与计算机的连接即可。

将 PCB 安装到手表上:

在这个项目中,我将发射器握在手中,以便它可以跟踪我的手势,我用纸板制作了一个手表条,并在双面胶带的帮助下将 PCB 安装到其中。如图所示。

poYBAGKv7ZWAUCVNAABDvyWXpD8166.jpg

这就是这个项目的全部内容。请务必查看 Receiver 项目教程 ( https://bit.ly/3lZOOUI ) 并查看我们的 YouTube 教程视频:

?

谢谢你。

代码

手势控制发射器代码

C/C++

  //Arduino Gesture control Transmitter Code
  //Created By DIY Burner
  //Contact me here on Instagram https://www.instagram.com/diy_burner/
  //You need to include MPU6050.h and I2CDEV.h library before uploading the sketch, otherwise you'll get compilation error message.
   
  #include //SPI library for communicate with the nRF24L01+
  #include "RF24.h" //The main library of the nRF24L01+
  #include "Wire.h" //For communicate
  #include "I2Cdev.h" //For communicate with MPU6050
  #include "MPU6050.h"//The main library of the MPU6050
   
   
  MPU6050 mpu;
  int16_t ax, ay, az;
  int16_t gx, gy, gz;
   
  //Define packet for the direction (X axis and Y axis)
  int data[2];
   
  //Define object from RF24 library - 9 and 10 are a digital pin numbers to which signals CE and CSN are connected.
  RF24 radio(8,9);
   
  //Create a pipe addresses for the communicate
  const uint64_t pipe = 0xE8E8F0F0E1LL;
   
  void setup(void){
  Serial.begin(9600);
  Wire.begin();
  mpu.initialize();//Initialize the MPU object
  radio.begin(); //Start the nRF24 communicate
  radio.openWritingPipe(pipe); //Sets the address of the receiver to which the program will send data.
  }
   
  void loop(void){
   
  //With this function, the acceleration and gyro values of the axes are taken.
  //If you want to control the car axis differently, you can change the axis name in the map command.
  mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
   
  //In two-way control, the X axis (data [0]) of the MPU6050 allows the robot to move forward and backward.
  //Y axis (data [0]) allows the robot to right and left turn.
  data[0] = map(ax, -17000, 17000, 300, 400 ); //Send X axis data
  data[1] = map(ay, -17000, 17000, 100, 200);//Send Y axis data
  radio.write(data, sizeof(data));
  }

 

下载该资料的人也在下载 下载该资料的人还在阅读
更多 >

评论

查看更多

下载排行

本周

  1. 1山景DSP芯片AP8248A2数据手册
  2. 1.06 MB  |  532次下载  |  免费
  3. 2RK3399完整板原理图(支持平板,盒子VR)
  4. 3.28 MB  |  339次下载  |  免费
  5. 3TC358743XBG评估板参考手册
  6. 1.36 MB  |  330次下载  |  免费
  7. 4DFM软件使用教程
  8. 0.84 MB  |  295次下载  |  免费
  9. 5元宇宙深度解析—未来的未来-风口还是泡沫
  10. 6.40 MB  |  227次下载  |  免费
  11. 6迪文DGUS开发指南
  12. 31.67 MB  |  194次下载  |  免费
  13. 7元宇宙底层硬件系列报告
  14. 13.42 MB  |  182次下载  |  免费
  15. 8FP5207XR-G1中文应用手册
  16. 1.09 MB  |  178次下载  |  免费

本月

  1. 1OrCAD10.5下载OrCAD10.5中文版软件
  2. 0.00 MB  |  234315次下载  |  免费
  3. 2555集成电路应用800例(新编版)
  4. 0.00 MB  |  33566次下载  |  免费
  5. 3接口电路图大全
  6. 未知  |  30323次下载  |  免费
  7. 4开关电源设计实例指南
  8. 未知  |  21549次下载  |  免费
  9. 5电气工程师手册免费下载(新编第二版pdf电子书)
  10. 0.00 MB  |  15349次下载  |  免费
  11. 6数字电路基础pdf(下载)
  12. 未知  |  13750次下载  |  免费
  13. 7电子制作实例集锦 下载
  14. 未知  |  8113次下载  |  免费
  15. 8《LED驱动电路设计》 温德尔著
  16. 0.00 MB  |  6656次下载  |  免费

总榜

  1. 1matlab软件下载入口
  2. 未知  |  935054次下载  |  免费
  3. 2protel99se软件下载(可英文版转中文版)
  4. 78.1 MB  |  537798次下载  |  免费
  5. 3MATLAB 7.1 下载 (含软件介绍)
  6. 未知  |  420027次下载  |  免费
  7. 4OrCAD10.5下载OrCAD10.5中文版软件
  8. 0.00 MB  |  234315次下载  |  免费
  9. 5Altium DXP2002下载入口
  10. 未知  |  233046次下载  |  免费
  11. 6电路仿真软件multisim 10.0免费下载
  12. 340992  |  191187次下载  |  免费
  13. 7十天学会AVR单片机与C语言视频教程 下载
  14. 158M  |  183279次下载  |  免费
  15. 8proe5.0野火版下载(中文版免费下载)
  16. 未知  |  138040次下载  |  免费