The DS18B20 is a commonly used high-precision single-bus digital temperature measurement chip. It features small size, low hardware overhead, strong anti-interference capability, and high accuracy.
Specifications: Temperature measurement range -55℃ to +125℃, with an error of ±0.4°C within the range of -10℃ to +85℃.
It returns a 16-bit binary temperature value
. Master-slave communication uses a single bus, meaning data transmission and reception are done via a single wire.
No external components are required; the chip itself can function independently.
The DS18B20 includes an internal EEPROM, and the digital conversion accuracy and alarm temperature can be set via configuration registers. Even after a power outage, it retains the resolution and alarm temperature settings.
Each DS18B20 has a unique 64-bit ID, allowing any number of DS18B20s to be connected to a single bus. The temperature value is read from the ROM by searching the DS18B20. The DS18B20 returns a 16-bit binary number representing the detected temperature, with the high five bits indicating whether it's positive
or
negative. If all five high bits are 1, the returned temperature is negative; if all five are 0, the returned temperature is positive. The following 11 bits represent the absolute temperature value. Converting this to decimal and multiplying by 0.0625 gives the current temperature value.
The DS18B20 has three pins:
GND: Power ground; DQ: Digital signal input/output; VDD: External power supply input. The operation of the DS18B20 can be divided into three steps:
1. Initialize the DS18B20; 2. Execute ROM instructions; 3. Execute DS18B20 function instructions
. The second step, executing ROM instructions, involves accessing each DS18B20, searching for its 64-bit serial number, reading the matching serial number value, and then matching it with the corresponding DS18B20. If we are only using a single DS18B20, we can skip the ROM instructions. The byte for skipping ROM instructions is 0xCC.
Here, we use a 74HC573, a 51 microcontroller minimum system, and a DS18B20.
The simulation is as follows:

PDF_WinterWarmThermometer.zip
Altium_WinterWarmThermometer.zip
PADS_Warm Winter Thermometer.zip
BOM_Winter Warmth Thermometer.xlsx
93149
GL3224 Card Reader
Affordable and good-looking GL3224 card reader
Main controller: The GL3224
, including the chip and resistors, costs less than ten yuan, which is much cheaper than card readers on Taobao.

Read/write speed test:

There was a problem with the firmware update; anyone knowledgeable can offer some guidance.
PDF_GL3224 Card Reader.zip
Altium_GL3224 card reader.zip
PADS_GL3224 card reader.zip
BOM_GL3224 card reader.xlsx
93150
electronic