欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

 找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開(kāi)始

搜索
查看: 7429|回復(fù): 9
收起左側(cè)

鬧著玩-數(shù)控電源

  [復(fù)制鏈接]
ID:489769 發(fā)表于 2019-3-13 11:03 | 顯示全部樓層 |閱讀模式
一直想弄個(gè)數(shù)控電源,今天把手里的東西搜羅一下感覺(jué)可以整在一起就動(dòng)手了,事后算了一下成本, 35元左右,而且都是淘寶可以買(mǎi)到的東西
P90313-104059.jpg

電壓用手機(jī)軟件調(diào)節(jié)

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





回復(fù)

使用道具 舉報(bào)

ID:1 發(fā)表于 2019-3-13 22:08 | 顯示全部樓層
樓主能分享制作資料嗎?
回復(fù)

使用道具 舉報(bào)

ID:489769 發(fā)表于 2019-3-13 23:28 | 顯示全部樓層
admin 發(fā)表于 2019-3-13 22:08
樓主能分享制作資料嗎?

明天補(bǔ)上
回復(fù)

使用道具 舉報(bào)

ID:489769 發(fā)表于 2019-3-14 10:36 | 顯示全部樓層
鬧著玩數(shù)控電源_1.jpg 鬧著玩數(shù)控電源2.jpg

回復(fù)

使用道具 舉報(bào)

ID:489769 發(fā)表于 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 名稱(chēng)
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;   //根據(jù)分壓電阻調(diào)整系數(shù)
    tmpIntVal = tmpVal * 256 /3.3;
    dacWrite(powerPin, tmpIntVal);  
}

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

void loop()
{
  Blynk.run();
}
回復(fù)

使用道具 舉報(bào)

ID:489769 發(fā)表于 2019-3-14 10:55 | 顯示全部樓層
手機(jī)端在應(yīng)用市場(chǎng)搜索Blynk安裝就好,ios,android 都可以,設(shè)置比較簡(jiǎn)單控制V1端口輸出值就行,用blynk掃描 我提供的二維碼也可以

微信圖片_20190314105253.jpg
回復(fù)

使用道具 舉報(bào)

ID:472506 發(fā)表于 2019-3-19 08:46 | 顯示全部樓層
好文章,收藏一個(gè)先。
回復(fù)

使用道具 舉報(bào)

ID:128989 發(fā)表于 2020-2-4 12:24 | 顯示全部樓層
不錯(cuò)的文章,學(xué)習(xí)了
回復(fù)

使用道具 舉報(bào)

ID:712493 發(fā)表于 2021-6-14 21:11 | 顯示全部樓層
不錯(cuò)的玩法 贊一個(gè)
回復(fù)

使用道具 舉報(bào)

ID:712493 發(fā)表于 2021-10-25 09:24 | 顯示全部樓層
EP32的開(kāi)發(fā)環(huán)境搭建可以講講  ESP32 上的程序 基于 Arduino
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表