亚洲春色中文字幕久久久-三上亚,一吻二脱三床四吻胸,国产真实伦对白视频全集,在线毛片观看,精品成品入口黄网,国产毛aⅴ片久久久,亚洲AV色香蕉一区二区三区老师,萧皇后A级艳片,色情日本视频更新,99久久亚洲精品日本无码

標題: 鬧著玩-數控電源 [打印本頁]

作者: felixsun1975    時間: 2019-3-13 11:03
標題: 鬧著玩-數控電源
一直想弄個數控電源,今天把手里的東西搜羅一下感覺可以整在一起就動手了,事后算了一下成本, 35元左右,而且都是淘寶可以買到的東西


電壓用手機軟件調節

lm2596 DCDC降壓模塊¥4.00
Mini360 DCDC¥2.00
LM393 電壓比較模塊¥4.00
ESP32 NodeMCU¥24.00
電阻三只(20k左右)¥1.00
合計¥35.00
ACDC電源適配器(12-19)自備
手機自備






作者: admin    時間: 2019-3-13 22:08
樓主能分享制作資料嗎?
作者: felixsun1975    時間: 2019-3-13 23:28
admin 發表于 2019-3-13 22:08
樓主能分享制作資料嗎?

明天補上

作者: felixsun1975    時間: 2019-3-14 10:36



作者: felixsun1975    時間: 2019-3-14 10:45
ESP32 上的程序 基于 Arduino 和 Blynk
/*************************************************************
  Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest

  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.


  Blynk library is licensed under MIT license
  This example code is in public domain.

*************************************************************
  This example runs directly on ESP32 chip.

  Note: This requires ESP32 support package:
    https://github.com/espressif/arduino-esp32

  Please be sure to select the right ESP32 module
  in the Tools -> Board menu!

  Change WiFi ssid, pass, and Blynk auth token to run :)
  Feel free to apply it to any other example. It's simple!
*************************************************************/

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial


#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "your_auth";          //改成你自己的 auth

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "wifi_name";      //改成你自己的 wifi 名稱
char pass[] = "wifi_password";  //改成你自己的 wifi 密碼

int powerPin = 25;  //dac輸出腳


BLYNK_WRITE(V1)
{
    float tmpVal;
    tmpVal = param.asInt();
    tmpVal = tmpVal / 100; // assigning incoming value from pin V1 to a variable
    tmpVal = tmpVal / 6;   //根據分壓電阻調整系數
    tmpIntVal = tmpVal * 256 /3.3;
    dacWrite(powerPin, tmpIntVal);  
}

void setup()
{
  // Debug console
  Serial.begin(115200);
  Blynk.begin(auth, ssid, pass);
}

void loop()
{
  Blynk.run();
}
作者: felixsun1975    時間: 2019-3-14 10:55
手機端在應用市場搜索Blynk安裝就好,ios,android 都可以,設置比較簡單控制V1端口輸出值就行,用blynk掃描 我提供的二維碼也可以



作者: zpz181818    時間: 2019-3-19 08:46
好文章,收藏一個先。
作者: yhgwork    時間: 2020-2-4 12:24
不錯的文章,學習了
作者: fj51hei    時間: 2021-6-14 21:11
不錯的玩法 贊一個
作者: fj51hei    時間: 2021-10-25 09:24
EP32的開發環境搭建可以講講  ESP32 上的程序 基于 Arduino




歡迎光臨 (http://www.denmoz.com/bbs/) Powered by Discuz! X3.1