Harrysome Chou

@Harrysome

`呆丸學生` `Arduino學習ing` `夢想是當電機大神`

Joined on Oct 15, 2019

  • 以下是Arduino中會用到的基本語法(用的是arduino的寫法),要看完整的Cpp教學請上Google自行查詢。Arduino的程式是建立在Cpp之上,但並不完全包含所有函數,如有Cpp中能用但Arduino中無法include的東西(如<<和vector),請見下面的擴充函式庫連結,使用方法會在libraries(函式庫)的使用中說明 Arduino Libraries List Arduino Libraries使用 C++大神請跳 Arduino程式基本架構及語法 資料型態 在Arduino中我們會常用到的型態有以下幾個
     Like  Bookmark
  • 第一階段 ESP32 wifi+BT $200 蝦皮 蝦皮 UHF R200 $1200 (已購買) 鋰電池 容量再考慮 $200 蝦皮 天線 $700 充電模組 $50以下 蝦皮 蝦皮 RFID Tag $50 (已購買) 測試最大距離以及數量 看天線的指向性和角度
     Like  Bookmark
  • Different coding system(編碼&數字系統) Encode / decode(編解碼的意義與方式) 歷史 對稱/非對稱 Algorithm(演算法運用) Example Caesar cipher Enigma cipher XOR cipher Matrix
     Like  Bookmark
  • 大一程設教戰手則 fxxk program design 程式設計的意義 meaning of program design 簡化處理過程 提高效率&速度 拿到學分 拿到offer
     Like  Bookmark
  • 適用c 架構 跟你看書一樣從上往下,用{ }做為分區 #include <stdio.h> //函式導入 double pi = 3.1415926; void a(){ //自定義 printf("haha\n");
     Like  Bookmark
  • 零件列表 名稱 耗能 功能 RF24 108mA(max) 無線收發
     Like  Bookmark
  • ![](https://i.imgur.com/iGgC6Cy.jpg =500x) pinout borad type Vin GND SCL SDA
     Like  Bookmark
  • Arduino有自己的一套IDE(整合開發環境),包含了編輯器以及編譯器,且它能編譯數十種不同型號的版子(不同的微控),有需要都可以上Google找。這篇主要是講Arduino IDE中的程式部分,要看介面使用請見這篇 Arduino IDE 2.0 基本架構 //範例程式------ #include<...> //1. 引入函式庫 //-------------------------------------------------------------------------- const int pin = 13; //2. 腳位或變數定義 int blink = 1000; //--------------------------------------------------------------------------
     Like 1 Bookmark
  • #include <stdio.h> int main() { int a, b, c; while (1) { printf("Enter three odd number : "); scanf("%d %d %d", &a, &b, &c); if (a % 2 == 0 || b % 2 == 0 || c % 2 == 0) { printf("enter again\n"); } else {
     Like  Bookmark
  • IDE安裝 進官網找到1.8.19,選自己電腦的系統並點入 -> just download,下載好了之後點開並安裝,安裝中跳的問題一律按同意 github擴充下載 進網址按下code > 下載壓縮檔(download ZIP),下載好後解壓縮到桌面,若沒有解壓縮全部,就照三四張照片解壓縮檔案
     Like  Bookmark
  • 前置安裝 Arduino去官網載1.8.19(win 7 and newer),其他資料在 https://github.com/Harrysome/2023-NTNU-EEcamp 下載解壓縮後把擴充函式庫(Makeblock-Libraries-master)丟進去 開啟EEcamp裡的車車原廠程式碼,上傳成功的話應該開電時會叫三聲 APP inventor 到官網按creat,然後註冊(一路確定按到底),建立新專案(檔名不要設中文或數字)(網頁語言自己改(在右上角))
     Like  Bookmark
  • ArdunioIDE載點(請自行選取需要的版本) Arduino IDE 2.0更新了,請點擊跳轉 簡介 Arduino的介面簡單而好用,左上角依序是檔案、編輯、草稿碼、工具、說明,下方的是編譯及上傳(上傳自帶編譯功能),常用的快捷鍵有Ctrl+R(編譯)、Ctrl+U(上傳)、Ctrl+O(開啟檔案),中間的區域是編輯區,可進行程式碼的編輯,最下方則是狀態顯示區,程式的上傳、編譯、錯誤都會在這裡顯示 引入函式庫 在Arduino中很常做的一件事就是導入函式庫,使用方法見Arduino Libraries
     Like  Bookmark
  • 2.2 14 $\lim_{x\to-2}(x^3-2x^2+4x+8)$ 36 $\lim_{x\rightarrow4}({4x-x^2\over 2-\sqrt x})$ 54 66
     Like  Bookmark
  • code #include <MPU6050.h> #include <Wire.h> int addr; int AcX,AcY,AcZ; int rx, ry, rz; int min = 265, max = 402; double x, y, z;
     Like  Bookmark
  • 下載 Ref:台灣三軸 使用介面及流程 1. 進入主畫面 ![](https://i.imgur.com/VvWTsPO.png =1000x) 2. 進行編輯或是導入二維檔和圖檔 RD支援的檔案有像圖片(png, jpg, jpeg...)或是畫好的二維圖檔(dxf)(如果是svg要先轉檔),導入後可以調整大小、旋轉或是改變長寬比,如果要打字或加入圖形(直線、曲線、長方、橢圓...)也可以直接新增並編輯,如果希望圖片只留一些部份或線條,可以用inkscape做編輯
     Like  Bookmark
  • code const int led_len = 40; //the length of led strit const int Speed = 10; //millisecond const int brightness = 10; #include <ArxContainer.h> using namespace arx; vector<int,led_len> vec; // color & num array vector<int,led_len> R,G,B; // rgb array
     Like  Bookmark
  • CH Ver Intro In the class, our target is to build Otto robot and control it with Arduino. We need to learn how the moves was controlled and design a dance and song for 1 minutes. Assemble and test For me, building a modle or robot or remote-controlled machine is never a hard work. So I used only 15 min to finish the prosses of assembling its body. Wire hiding ![](https://i.imgur.com/1WcCqFr.jpg =x750)
     Like  Bookmark
  • EN Ver 介紹 在這門課中,我們的目標是組裝Otto機器人並使用Arduino來控制,在過程中去學習機器人的控制,最後設計一段一分鐘的舞蹈和音樂。 組裝 對我而言,組裝機器人或是遙控模型並非難事,我只花了15分鐘就完成組裝了,但接上電後發現我沒有校正腳的角度,所以我又花了10分鐘把馬達一一拆卸並重新組裝。 接線與整線 ![](https://i.imgur.com/1WcCqFr.jpg =x750)
     Like  Bookmark
  • ref : Adafruit industry #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SH1106.h> #define OLED_RESET 4 Adafruit_SH1106 display(OLED_RESET); #define NUMFLAKES 10 #define XPOS 0 #define YPOS 1
     Like  Bookmark
  • First Violin void setup() { pinMode(11,OUTPUT); pinMode(A0,INPUT_PULLUP); pinMode(9,OUTPUT); Serial.begin(9600); digitalWrite(9,0); } void x(int ss,int tmp){
     Like  Bookmark