Cov txheej txheem:

Hloov Kho Arduino ASCD 8x 18650 Ntse Charger / Discharger rau ESP8266 Khoos phis tawj Serial: 4 Cov Kauj Ruam
Hloov Kho Arduino ASCD 8x 18650 Ntse Charger / Discharger rau ESP8266 Khoos phis tawj Serial: 4 Cov Kauj Ruam

Video: Hloov Kho Arduino ASCD 8x 18650 Ntse Charger / Discharger rau ESP8266 Khoos phis tawj Serial: 4 Cov Kauj Ruam

Video: Hloov Kho Arduino ASCD 8x 18650 Ntse Charger / Discharger rau ESP8266 Khoos phis tawj Serial: 4 Cov Kauj Ruam
Video: Cas Tsis Xaiv Koj - R-Lin Thoj New Song Original By Zaj Dub [Official MV] 2023 2024, Hlis ntuj nqeg
Anonim
Hloov Kho Arduino ASCD 8x 18650 Smart Charger / Discharger rau ESP8266 Kho Vajtse Serial
Hloov Kho Arduino ASCD 8x 18650 Smart Charger / Discharger rau ESP8266 Kho Vajtse Serial
Hloov Kho Arduino ASCD 8x 18650 Smart Charger / Discharger rau ESP8266 Kho Vajtse Serial
Hloov Kho Arduino ASCD 8x 18650 Smart Charger / Discharger rau ESP8266 Kho Vajtse Serial

Ntawm PCB version 2.0 thiab hais txog ESP8266 Arduino Adapter muaj tus lej tsis raug qhov twg koj tsis tuaj yeem siv (sib txuas lus) nrog ESP8266 rau kev sib txuas lus wireless rau Vortex Nws Roj Teeb Portal.

Qhov kev hloov kho no txuas nrog ESP8266 Arduino Adapter rau Hardware Serial RX1 thiab TX1 ntawm Arduino Mega 2560

Kauj Ruam 1: Cov Cuab Yeej thiab Cov Cheeb Tsam

Cov Cuab Yeej thiab Cov Cheeb Tsam
Cov Cuab Yeej thiab Cov Cheeb Tsam

Cov Cuab Yeej Xav Tau:

Soldering hlau

Pliers lossis Wire Strippers

Kub kua nplaum phom (yeem)

Qhov Yuav Tsum Tau:

ESP8266 Arduino Adapter ESP8266 ESP-01

AliExpress Txuas

eBay Link

ESP8266 ESP-01

AliExpress Txuas

eBay Link

Dupont Hlau FF

AliExpress Txuas

eBay Link

Kauj ruam 2: Mount thiab Solder

Mount thiab Solder
Mount thiab Solder
Mount thiab Solder
Mount thiab Solder

Mount

Mount ESP8266 Arduino Adapter nrog 2.5mm tooj dag sawv tawm

Ntsuas

Ntsuas Dupont Poj niam cov xov hlau thiab txiav kom loj raws li cov ntsiab lus ntawm cov laug. Koj tuaj yeem nce ESP8266 Arduino Adapter ntawm qhov faib faib lossis SD daim npav nyeem ntawv qhov vim tias lawv zoo ib yam.

Sawb

Tshem cov xaim ntawm qhov kawg ntawm Dupont Poj niam cov xov hlau txog 1-2 hli nrog cov pliers lossis cov hlua hlau

Solder

Solder cov xov hlau xa mus rau duab:

GND ESP8266 Arduino Adapter rau hauv av dav hlau ntawm PCB

VCC ESP8266 Arduino Adapter rau 5V Arduino Mega 2560

TX ESP8266 Arduino Adapter rau D19 (RX1) Arduino Mega 2560

RX ESP8266 Arduino Adapter rau D18 (TX1) Arduino Mega 2560

Kub nplaum (yeem)

Kub kua nplaum tag nrho cov ntsiab lus solder

Kauj Ruam 3: Upload Arduino Mega Sketch

Rub tawm Arduino Mega Sketch
Rub tawm Arduino Mega Sketch

Ua ntej rub tawm daim duab kos kos 5V Voltage tso tawm los ntawm Arduino's Voltage Regulator.

Hloov kho Arduino Sketch los ntawm github: arduino-mega-8x-charger-discharger Hloov kab no hauv Arduino Sketch rau koj nyeem qhov ntsuas hluav taws xob

const ntab referenceVoltage = 5.01; // 5V Output ntawm Arduino

Koj tseem tuaj yeem hloov qee lwm qhov kev teeb tsa rau koj qhov kev xav tau kev xeem

typedef struct {const float shuntResistor [8] = {3.3, 3.3, 3.3, 3.3, 3.3, 3.3, 3.3, 3.3, 3.3}; const ntab referenceVoltage = 5.01; // 5V Output ntawm Arduino const float defaultBatteryCutOffVoltage = 2.8; // Qhov hluav taws xob uas qhov tso tawm nres const byte restTimeMinutes = 1; // Lub sijhawm hauv feeb los so lub roj teeb tom qab them tas. 0-59 yog siv tau const int lowMilliamps = 1000; // Qhov no yog tus nqi ntawm Milli Amps uas tau txiav txim siab qis thiab tsis tau them rov qab vim tias nws suav tias yog qhov ua yuam kev const int highMilliOhms = 500; // Qhov no yog tus nqi ntawm Milli Ohms uas tau txiav txim siab thiab lub roj teeb tau suav tias yog qhov ua yuam kev const int offsetMilliOhms = 0; // Offset calibration rau MilliOhms const byte chargingTimeout = 8; // Lub sijhawm siv sijhawm teev rau them nqi byte tempThreshold = 7; // Ceeb Toom Threshold nyob rau qib siab tshaj qhov pib Kub const byte tempMaxThreshold = 10; // Qhov siab tshaj plaws nyob rau qib siab tshaj qhov ntsuas kub thawj zaug - suav tias yog qhov ua tsis tau zoo ntab roj teeb VolatgeLeak = 2.00; // Ntawm qhov screen thawj zaug "BATTERY CHECK" soj ntsuam qhov siab tshaj plaws ntawm txhua tus qauv thiab teeb tsa tus nqi no me ntsis siab dua byte moduleCount = 8; // Tus naj npawb ntawm Cov Qauv tsim byte screenTime = 4; // Sijhawm hauv vib nas this (Cycles) ib qho Screen Active const int dischargeReadInterval = 5000; // Lub sijhawm sib nrug ntawm kev nyeem tawm. Kho rau mAh +/-} CustomSettings;

Txuas Arduino Mega rau koj lub computer thiab thauj ASCD_Mega.ino shetch

Xaiv qhov chaw nres nkoj COM raug thiab xa cov duab kos

Nco tseg: koj yuav tsum tau ntxiv rau hauv koj Dallas sensor cov npe:

DeviceAddress tempSensorSerial [9] = {{0x28, 0xFF, 0xF5, 0xF9, 0x40, 0x18, 0x03, 0x97}, {0x28, 0xFF, 0xB3, 0x9E, 0x42, 0x18, 0x01, 0x07}, {0x28, 0xFF, 0x29, 0xF5, 0x40, 0x18, 0x03, 0xFA}, {0x28, 0xFF, 0x51, 0xA1, 0x42, 0x18, 0x01, 0x8C}, {0x28, 0xFF, 0xA8, 0x91, 0x18, 0x03, 0xC9}, {0x28, 0xFF, 0x03, 0xF6, 0x40, 0x18, 0x03, 0x37}, {0x28, 0xFF, 0xD7, 0x7B, 0x41, 0x18, 0x02, 0xC7}, {0x28, 0xFF, 0xAD, 0x9F, 0x42, 0x18, 0x01, 0x56}, {0x28, 0xFF, 0x81, 0x8F, 0x41, 0x18, 0x03, 0xEF}};

Kauj Ruam 4: Upload ESP8266 Sketch

Upload ESP8266 Sketch
Upload ESP8266 Sketch

Yog tias koj tsis tau sau npe koj Vortex Nws - Roj Teeb Portal Account mus rau kauj ruam tom ntej.

Koj yuav tsum teeb tsa ESP8266 Arduino Addon hauv koj Arduino IDE siv phau ntawv qhia no: https://learn.sparkfun.com/tutorials/esp8266-thing …

Hloov cov hauv qab no hauv ESP8266_Wifi_Client.ino Arduino Sketch

const char ssid = "";

Rau koj tus WIFI routers SSID

const char tus password = "";

Rau koj li WIFI routers Password

const char userHash = "";

Rau koj Tus Neeg Siv Khoom (Tau qhov no los ntawm "Charger / Discharger Menu -> Saib" hauv Vortex Nws Roj Teeb Portal)

const byte CDUnitID =;

Rau koj CDUnitID (Tau qhov no los ntawm "Charger / Discharger Menu -> View -> Xaiv koj Lub Charger / Discharger" hauv Vortex It Battery Portal)

Siv USB rau ESP8266 ESP-01 Programmer txhawm rau upload daim duab ESP8266_Wifi_Client.ino mus rau ESP8266 nrog kev hloov pauv ntawm PROG

Pom zoo: