電子發(fā)燒友App

硬聲App

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內(nèi)不再提示
創(chuàng)作
電子發(fā)燒友網(wǎng)>電子資料下載>電子資料>如何制作手勢控制機器人-MadeWithArduino(發(fā)射器)

如何制作手勢控制機器人-MadeWithArduino(發(fā)射器)

2022-07-01 | zip | 0.05 MB | 次下載 | 免費

資料介紹



poYBAGKv7X6AKOYzAAClL71tD_o966.png
pYYBAGKv7YCAHmu2AABmH4CQlB0908.png
poYBAGKv7YOACFdDAACl55zIcGk56.jpeg

成分

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

描述

如何制作手勢控制機器人|| #MadeWithArduino(發(fā)射器)

嘿,歡迎回到一個新項目。所以今天我們將學習使用Arduino創(chuàng)建一個手勢控制車。

這里我將分享項目發(fā)射器部分的詳細教程,我還分享了另一個項目接收器部分的教程。這是查看它的鏈接:https ://bit.ly/3lZOOUI

poYBAGKv7YmAOByhAABO2fdn9zo655.jpg

查看 YouTube 上的項目教程視頻:

首先說一下我們需要的材料:

?阿杜諾納米

~ MPU 6050

~ nRF24Lo1+

?男性和女性頭

~ 9V 電池

開始安裝組件:

安排好上述組件后,我們需要將母頭引腳焊接到 PCB,如圖所示。

poYBAGKv7YuADcIoAAA-O-LVUgU664.jpg

現(xiàn)在,我們需要將組件一個一個地安裝到 PCB 上。在以下模式中:

poYBAGKv7Y6AN6jsAAA0wGW2n3U668.jpg

安裝完組件后,我們需要上傳本文附件中給出的代碼。

注意:在上傳代碼之前,請確保將 Arduino Nano 與您的計算機連接并包含所需的庫。

pYYBAGKv7ZCAJ1kbAABcw8CLIYM693.jpg

連接后,打開Arduino IDE并上傳代碼。

pYYBAGKv7ZOAQplLAABEAwoQInk431.jpg

完成代碼上傳后,只需斷開 Arduino Nano 與計算機的連接即可。

將 PCB 安裝到手表上:

在這個項目中,我將發(fā)射器握在手中,以便它可以跟蹤我的手勢,我用紙板制作了一個手表條,并在雙面膠帶的幫助下將 PCB 安裝到其中。如圖所示。

poYBAGKv7ZWAUCVNAABDvyWXpD8166.jpg

這就是這個項目的全部內(nèi)容。請務必查看 Receiver 項目教程 ( https://bit.ly/3lZOOUI ) 并查看我們的 YouTube 教程視頻:

?

謝謝你。

代碼

手勢控制發(fā)射器代碼

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"http://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數(shù)據(jù)手冊
  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開發(fā)指南
  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數(shù)字電路基礎pdf(下載)
  12. 未知  |  13750次下載  |  免費
  13. 7電子制作實例集錦 下載
  14. 未知  |  8113次下載  |  免費
  15. 8《LED驅(qū)動電路設計》 溫德爾著
  16. 0.00 MB  |  6656次下載  |  免費

總榜

  1. 1matlab軟件下載入口
  2. 未知  |  935054次下載  |  免費
  3. 2protel99se軟件下載(可英文版轉(zhuǎn)中文版)
  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次下載  |  免費