Editor Version ×
Standard

1.Easy to use and quick to get started

2.The process supports design scales of 300 devices or 1000 pads

3.Supports simple circuit simulation

4.For students, teachers, creators

Profession

1.Brand new interactions and interfaces

2.Smooth support for design sizes of over 5,000 devices or 10,000 pads

3.More rigorous design constraints, more standardized processes

4.For enterprises, more professional users

Ongoing

STD [抢焊台]太阳能供电的无线温湿度传感器

License:

Mode: Editors' pick

  • 2.9k
  • 1
  • 1
Update time: 2021-04-12 00:08:26
Creation time: 2016-05-21 11:26:21
Description
前言: 感谢PCB哥为大家争取的送焊台福利,在此,分享我用EazyEDA制作PCB的过程,希望对大家有帮助。 ---------- 我一直想做一个随时查看室内温湿度的物联网应用,在了解ESP8266模块后,有了一个方案:通过ESP8266+DHT22实现温湿度上传,供电部分用太阳能+锂电池解决,既环保又不用手动给电池充电。 在进行万能板实验后,发现方案可行,一直运行了1一个月没有问题。ESP8266用休眠模式,1小时上传一次数据,大大降低了功耗,一块1350mA的电池工作时间超过1个月,使得太阳能供电有了可行性。功耗如下: 1.工作电流0.07A 2.待机电流0.00A ![实验板][1] 可以看到没那么美观,于是产生了打样PCB的想法,之前在阿莫论坛看到过EazyEDA的介绍,但一直没深入了解,这次看到PCB哥的介绍后,下载了它的中文使用手册,发现太适合我这种小白电子爱好者了。很快,就画好了原理图和PCB,在EazyEDA下单,因为一直没进度,就发给嘉立创去打样。在收到打样品后,就开始焊接,下载程序,经过1星期测试,没发现问题。 在此,将**EazyEDA**优缺点总结一下: 优点: 1. 跨平台使用,云端保存数据,可随时进行设计。 2. 很多热心人士分享封装库,降低了设计难度。 3. 可生成光标文件,打样方便,或者在线打印,自己蚀刻PCB。 缺点: 1. 不能自动布局(我太懒了)。 2.不能导入AD的封装库。 ![打样品正面][2]![打样品背面][3]! ![正常工作][4]![太阳能板][5]![手机端查看温湿度][6] ---------- ESP8266源代码: #include #include "DHT.h" //DHT 定义 #define DHTPIN 12 #define DHTTYPE DHT22 DHT dht(DHTPIN, DHTTYPE); const char* ssid = ""; const char* password = ""; String wsd = "/api/wsd.php"; String location = "ws2"; const char* host = ""; const int httpPort = ; unsigned long last_time = 0; void Upload();//上传数据 void setup_wifi( );//连接wifi void setup() { Serial.begin(115200); setup_wifi(); // Start the server Serial.println("Server started"); // dht初始化 dht.begin(); } void loop() { //60分钟上传一次 Upload(); //delay(3000); //ESP.deepSleep(3600000000, WAKE_RF_DEFAULT); ESP.deepSleep(3600*1000000, WAKE_RF_DEFAULT); } void Upload() { WiFiClient client; if (!client.connect(host, httpPort)) { Serial.println("tcp error"); return; } float h = dht.readHumidity(); float t = dht.readTemperature(); String json; if (isnan(h) || isnan(t) ) { Serial.println("dht error"); return; } json = "{\"Temperature\":\""; json.concat(t); json.concat("\","); json.concat("\"Humidity\":\""); json.concat(h); json.concat("\","); json.concat("\"location\":\""); json.concat(location); json.concat("\"}"); int json_len = json.length(); String cmd; cmd = "POST " + wsd + " HTTP/1.1\r\n" + "Host: " + host + "\r\n" + "Content-Type:" + " application/json\r\n" + "Content-Length: " + String(json_len) + "\r\n\r\n" + json + "\r\n"; client.print(cmd); Serial.println(cmd); last_time = millis(); } void setup_wifi() { delay(10); // We start by connecting to a WiFi network Serial.println(); Serial.print("Connecting to "); Serial.println(ssid); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(""); Serial.println("WiFi connected"); Serial.println("IP address: "); Serial.println(WiFi.localIP()); } ---------- [1]: /editor/20160521/574060365b7b0.jpg [2]: /editor/20160521/574060564aed0.jpg [3]: /editor/20160521/574060d19c5be.jpg [4]: /editor/20160521/57406100196ed.jpg [5]: /editor/20160521/57406110c8981.jpg [6]: /editor/20160521/574061239da15.jpg
Design Drawing
schematic diagram
1 /
PCB
1 /
The preview image was not generated, please save it again in the editor.
ID Name Designator Footprint Quantity
1 串口 P1 HDR1X3 1
2 下载跳线 P2 HDR1X3 1
3 TP4056 U2 TP4056-taobao 1
4 DHT22 U3 DHT22 1
5 ESP8266-12E/ESP-12E U4 LGA22-2.0-24X16MM 1
6 10k R3,R4,R1 R3 3
7 1u C2 CP_8X13MM 1
8 SIP6 P3 HDR1X6 1
9 SIP7 P4 HDR1X7 1
10 switch P5 HDR1X3 1
11 power P6 HDR1X2 1
12 sleep P7 HDR1X3 1

Unfold

Project Attachments
Empty
Project Members
Target complaint
Related Projects
Change a batch
Loading...
Add to album ×

Loading...

reminder ×

Do you need to add this project to the album?

服务时间

周一至周五 9:00~18:00
  • 0755 - 2382 4495
  • 153 6159 2675

服务时间

周一至周五 9:00~18:00
  • 立创EDA微信号

    easyeda

  • QQ交流群

    664186054

  • 立创EDA公众号

    lceda-cn