網站架設 netdata 炫酷的體式款式監控Linux系統本

 

文章標籤

freddib16r5jl 發表在 痞客邦 留言(0) 人氣()



ESP32 節制 TB6612FNG 直流馬達驅動∕節制板 請看這篇

 

利用Android手機若何用Arduino藍芽連線ESP32節制蜘蛛機械人
需要利用雙電源
若是利用單電源,電流會被馬達抽走
ESP32晶片電流不足會沒法正常運作
文章標籤

freddib16r5jl 發表在 痞客邦 留言(0) 人氣()

學會Arduino基本操控後
一定會想學會無線遙控,如藍芽Bluetooth, Wifi
這篇申明藍芽Bluetooth操控

成效圖
若何用藍芽Bluetooth連線節制 Arduino


影片


代碼:

  1. // Include necessary libraries
  2. #include <BLEDevice.h>
  3. #include <BLEServer.h>
  4. #include <BLEUtils.h>
  5. //#include <BLE2902.h>
  6. //#include <Wire.h>
  7.  
  8. // 界說 UUIDs (注意要與App Inventor內容對應)
  9. #define SERVICE_UUID            "C6FBDD3C-7123-4C9E-86AB-005F1A7EDA01"
  10. #define CHARACTERISTIC_UUID_RX  "B88E098B-E464-4B54-B827-79EB2B150A9F"
  11. #define CHARACTERISTIC_UUID_TX  "D769FACF-A4DA-47BA-9253-65359EE480FB"
  12.  
  13. // 界說LM35 ESP32 GPIO接腳
  14. const int analogIn = A0;
  15.   
  16. int RawValue= 0;
  17. double Voltage = 0;
  18. double tempC = 0;
  19. double tempF = 0;
  20. String BLE_Code;
  21. BLECharacteristic *pCharacteristic;
  22. bool deviceConnected = false;
  23. // Handle received and sent messages
  24. boolean ledState=false;
  25. String message = "";
  26. char incomingChar;
  27.  
  28. // Temperature Sensor 與led接腳變數
  29. float temperature = 0;
  30. const int ledPin = 2;
  31.  
  32. // 設定 callbacks onConnect & onDisconnect函數
  33. class MyServerCallbacks: public BLEServerCallbacks {
  34.   void onConnect(BLEServer* pServer) {
  35.     deviceConnected = true;
  36.   };
  37.   void onDisconnect(BLEServer* pServer) {
  38.     deviceConnected = false;
  39.   }
  40. };
  41.  
  42. // 設定 callback function 當收到新的資訊 (from the Android application)
  43. class MyCallbacks: public BLECharacteristicCallbacks {
  44.   void onWrite(BLECharacteristic *pCharacteristic) {
  45.     std::string rxValue = pCharacteristic->getValue();
  46.     BLE_Code="";
  47.     if(rxValue.length() > 0) {
  48.       Serial.print("接收資料為 : ");
  49.       for(int i = 0; i < rxValue.length(); i++) {
  50.         BLE_Code+=rxValue[i];
  51.         Serial.print(rxValue[i]);
  52.       }
  53.       Serial.println();
  54.       BLE_Code.toUpperCase();
  55.       Serial.println(BLE_Code);
  56.       if(BLE_Code.indexOf("LED")==0)
  57.       {
  58.         ledState=!ledState;
  59.       Serial.println(ledState);
  60.       }
  61.       if(BLE_Code.indexOf("ON")==0)
  62.       {
  63.         Serial.println("LED 點亮!");
  64.         ledState=true;
  65.       }
  66.       else if(BLE_Code.indexOf("OFF")==0) {
  67.         Serial.println("LED 熄滅!");
  68.         ledState=false;
  69.       }
  70.     }
  71.   }
  72. };
  73.  
  74. void setup() {
  75.   Serial.begin(115200);
  76.   pinMode(ledPin, OUTPUT);
  77.    
  78.   // 豎立BLE Device
  79.   BLEDevice::init("ESP32_WeMos1");
  80.  
  81.   // 創設BLE Server
  82.   BLEServer *pServer = BLEDevice::createServer();
  83.   pServer->setCallbacks(new MyServerCallbacks());
  84.  
  85.   // 確立BLE Service
  86.   BLEService *pService = pServer->createService(SERVICE_UUID);
  87.  
  88.   // 設立建設BLE Characteristic
  89.   pCharacteristic = pService->createCharacteristic(
  90.                       CHARACTERISTIC_UUID_TX,
  91.                       BLECharacteristic::PROPERTY_NOTIFY);                     
  92. //  pCharacteristic->addDescriptor(new BLE2902());
  93.   BLECharacteristic *pCharacteristic = pService->createCharacteristic(
  94.                                          CHARACTERISTIC_UUID_RX,
  95.                                          BLECharacteristic::PROPERTY_WRITE);
  96. pCharacteristic->setCallbacks(new MyCallbacks());
  97.  
  98.   // 入手下手(起)service
  99.   pService->start();
  100.  
  101.   // 最先(起)advertising
  102.   pServer->getAdvertising()->start();
  103.   Serial.println("期待BLE手機連線....");
  104.   
  105.   digitalWrite(ledPin,LOW);
  106.   delay(500);
  107.   digitalWrite(ledPin,HIGH);
  108.   delay(500);
  109.   digitalWrite(ledPin,LOW);
  110. }
  111.  
  112. void loop() {
  113.   // Check received message and control output accordingly
  114.     if (ledState)
  115.         digitalWrite(ledPin, HIGH);
  116.       else
  117.         digitalWrite(ledPin, LOW);
  118.   delay(20);
  119. }
文章標籤

freddib16r5jl 發表在 痞客邦 留言(0) 人氣()

網站架設

網站架設 CSS教授教養:文繞圖 設置

 

文章標籤

freddib16r5jl 發表在 痞客邦 留言(0) 人氣()

完成圖
jquery.pagination.js JS分頁插件:簡單
文章標籤

freddib16r5jl 發表在 痞客邦 留言(0) 人氣()

Arduino EPS32 DEVKIT V1 用PWM節制

 

文章標籤

freddib16r5jl 發表在 痞客邦 留言(0) 人氣()

ESP32 腳位 34 對應10K歐姆電阻與光敏電組連接處
ESP32 腳位 27 對應LED 正極
10K歐姆電阻另外一腳接VCC
LED腳負極接地
光敏另一腳接地
光敏電阻與10K歐姆電阻連接
如圖:

Arduino ESP32 用光敏電阻做小夜燈 網站架設

文章標籤

freddib16r5jl 發表在 痞客邦 留言(0) 人氣()

比來發現Cpanel伺服器發給gmail信箱經常收不到
一下又收的到,但大部份都被擋下來
找了google後發現要到google workspace申請帳號驗證網域
先到google workspace 申請帳號
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl

輸入公司名稱
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl

姓名及EMAIL
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl
選已有網域了
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl
輸入網域
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl

設定EMAIL(你擁有的網域)帳號密碼
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl

輸入手機號碼
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl

收到簡訊驗證碼並輸入
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl

點接管
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl

點 保護
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl

點 我已經準備好珍愛我的網域
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl

繼續 前往步調2
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl

複製TXT value(TXT值) 到 Cpanel dns manager新增一TXT記載
點選 保護網域 (五分鐘內完成)
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl

繼續
網站架設 Cpanel gmail 檔信問題.. googl
網站架設 Cpanel gmail 檔信問題.. googl

網站架設 Cpanel gmail 檔信問題.. googl 網站架設

 

文章標籤

freddib16r5jl 發表在 痞客邦 留言(0) 人氣()

網站架設
良多人架好網站後卻發現YAHOOGOOGLE搜索不到本身網站
卻不知道哪裡出了問題?其實是因為新建置的網站並沒有被各大搜索引擎收錄
文章標籤

freddib16r5jl 發表在 痞客邦 留言(0) 人氣()

影片



人人經常用google搜索時
經常會看到以下畫面

網站架設 若何利用google商家資訊提高曝光率網站架設 若何利用google商家資訊提高曝光率
網站架設 若何利用google商家資訊提高曝光率網站架設 若何利用google商家資訊提高曝光率

是否是很好奇若何可以提高自己的商家暴光


就以關鍵字 洗水管 ,網站架設 管乾淨 高週波水管清洗 商家來做說明


尚未申請的請看這篇 若何註冊商家資訊

已申請完成商家資訊請登入商家資訊帳戶->首頁
網站架設 若何利用google商家資訊提高曝光率網站架設 若何利用google商家資訊提高曝光率

第一次進入是沒稀有據的
點選左邊->資訊
進入後編纂-> 商家名稱 - 辦事項目 - 地址(客戶在此區容易找到你) - 辦事局限 - 營業時候(24小時讓用戶不分時段都能看到) - 商家代碼 - 標籤(關頭字) - 電話號碼(輕易客戶連系到你) - 公司敘述 - 揭幕日期
網站架設 若何利用google商家資訊提高曝光率網站架設 若何利用google商家資訊提高曝光率

編纂好以後需要顛末審核
點選左邊->相片
這時候可上傳關於本身商家的相片,如封面、標誌、影片、公司室內環境、公司外觀、工作實況
網站架設 若何利用google商家資訊提高曝光率網站架設 若何利用google商家資訊提高曝光率

圖片上傳好後
點選左邊->產品->新增產品
網站架設 若何利用google商家資訊提高曝光率
網站架設 若何利用google商家資訊提高曝光率

填入商品名稱 - 商品圖片 - 種別 - 價格 - 商品描寫 - 貫穿連接按鈕(可不填)
網站架設 若何利用google商家資訊提高曝光率
網站架設 若何利用google商家資訊提高曝光率
都設定好後,點選左邊->網站
啟動網站,讓網站上線
網站架設 若何利用google商家資訊提高曝光率


如許有助於提高商家暴光
暴光提高,當然生意就變多了
註:經常更新內容,更容易暴光

網站架設 

文章標籤

freddib16r5jl 發表在 痞客邦 留言(0) 人氣()