Cov txheej txheem:

Arduino Datalogger Nrog RTC, Nokia LCD thiab Encoder: 4 Kauj Ruam
Arduino Datalogger Nrog RTC, Nokia LCD thiab Encoder: 4 Kauj Ruam

Video: Arduino Datalogger Nrog RTC, Nokia LCD thiab Encoder: 4 Kauj Ruam

Video: Arduino Datalogger Nrog RTC, Nokia LCD thiab Encoder: 4 Kauj Ruam
Video: Arduino SD Card and Data Logging to Excel Tutorial 2024, Hlis ntuj nqeg
Anonim
Arduino Datalogger Nrog RTC, Nokia LCD thiab Encoder
Arduino Datalogger Nrog RTC, Nokia LCD thiab Encoder
Arduino Datalogger Nrog RTC, Nokia LCD thiab Encoder
Arduino Datalogger Nrog RTC, Nokia LCD thiab Encoder
Arduino Datalogger Nrog RTC, Nokia LCD thiab Encoder
Arduino Datalogger Nrog RTC, Nokia LCD thiab Encoder

Qhov:

  • Arduino Nano lossis Arduino Pro Mini
  • Nokia 5110 84x48 LCD
  • DHT11 kub/av noo sensor
  • DS1307 lossis DS3231 RTC module nrog built-in AT24C32 EEPROM
  • Pheej yig encoder nrog 3 debouncing capacitors

Nta:

  • GUI raws li Nokia LCD thiab encoder
  • kub, av noo, hnub tim thiab sijhawm tuaj yeem khaws cia txhua 1 txog 120 feeb
  • txhua cov ntaub ntawv tau nrawm rau 39 bitfield nkaus xwb yog li 32kbit flash (4KB) tuaj yeem haum 819 cov ntaub ntawv
  • yeem AT24C256 nti tuaj yeem khaws txawm tias 6553 cov ntaub ntawv
  • pw tsaug zog siv los cawm roj teeb, ATMEGA tau sawv los ntawm kev cuam tshuam feem ntau
  • DHT11 tsuas yog siv tau thaum ntsuas
  • siv los ntawm ib leeg 18650 lossis lwm lub cell lithium
  • ob peb zaub "ntsej muag"
  • 6 fonts ua
  • roj teeb qib ntsuas
  • cov ntaub ntawv tshuaj xyuas thiab teeb duab
  • min/max nrog hnub/sijhawm
  • tag nrho cov ntaub ntawv kaw tseg ntawm qhov chaw nres nkoj hauv hom CSV
  • LCD rov qab teeb
  • tus kheej cov peev txheej nrawm thiab qis N5110 siv
  • tus kheej qib qis DHT11 nyeem cov ntaub ntawv
  • tus kheej DS1307, DS3231 thiab AT24C32 I2C EEPROM tuav txoj cai
  • txoj cai siv yuav luag txhua 32KB Arduino flash
  • txhua daim ntawv sau npe sab hauv tuaj yeem khaws cia hauv EEPROM lossis DS1307 sab hauv RAM

Cov ntaub ntawv compression

Cov txiaj ntsig hauv qab no raug kaw:

  • sijhawm (teev, min)
  • hnub tim (d, m, y)
  • kub
  • av noo

Cov ntaub ntawv saum toj no tau nrawm rau 39-ntsis bitfield:

  • hr 0..23 -> 5b
  • min 0..59 -> 6b
  • d 1..31 -> 5b
  • m 1..12 -> 4b
  • y 2018..2021 -> 2b
  • temp -40.0..64.0 -> 1024values = 10b
  • hwm 0..100 -> 7b
  • tag nrho 39 khoom

Tsuas yog 5 bytes siv rau 1 cov ntaub ntawv:

cov khoom 76543210 byte0 hhhhhmmm byte1 mmmddddd byte2 mmmmyytt byte3 tttttttt byte4 hhhhhhh0

Kauj Ruam 1: Saib Yeeb Yaj Kiab

Image
Image

Yog tias koj txaus siab rau qhov haujlwm tshwj xeeb thiab txhim kho saib cov vis dis aus saum toj no

Kauj ruam 2: Kev sib txuas

Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas

NOKIA 5110:

  1. TXC to D9
  2. CS/CE rau D10
  3. TXC to D8
  4. MOSI/DIN rau D11
  5. SCK/CLK rau D13
  6. VCC rau Arduino VCC
  7. LOJ to D6
  8. GND to CSY

HLB 11:

  1. VCC to CSY
  2. Kev lees paub rau lub dav hlau D14 data
  3. NC
  4. GND to CSY

RTC DS1307/DS3231 thiab AT24C32 EEPROM:

Arduino I2C (A4/A5)

Encoder:

  • Pin 2 to D2
  • Pin 4 to D4
  • Khawm rau D3

Kauj Ruam 3: RTC Modules "LowPower" Hloov kho (xaiv tau)

RTC Cov Qauv
RTC Cov Qauv
RTC Cov Qauv
RTC Cov Qauv

Hauv DS1307 txiav 2 kab, tshem R6 thiab ua cov khoom sib txuas

Hauv DS3231 txiav 2 ntu

Kauj ruam 4: Firmware

Arduino duab kos:

github.com/cbm80amiga/N5110_DHT11_logger_G…

N5110 lub tsev qiv ntawv:

github.com/cbm80amiga/N5110_SPI

Kev xaiv teeb tsa:

#define USE_DS3231 -> siv DS3231 siv DS1307

#define REG_IN_RTCRAM -> cov npe sau cia hauv RTC RAM (tsuas yog rau DS1307)

Pom zoo: