Demo here: https://www.youtube.com/watch?v=1vhxyDxPzY0
🔥 PIC16F628 Digital Thermometer Firmware + Full Build Package (DS18B20, Assembly Language)
Build a reliable, accurate, and ultra-fast digital thermometer using the classic PIC16F628 microcontroller and the DS18B20 1-Wire temperature sensor.
This package includes fully tested assembly code, schematics, BOM, and everything you need to drop straight into your own project.
This is not generic code from the internet — it’s a fully optimised, timing-accurate firmware designed specifically for 4 MHz clock, correct 1-Wire timings, and stable operation even on long sensor cables.
⸻
✅ What’s Included
You will receive a complete project pack containing:
📌 Firmware
• Fully commented PIC16F628 Assembly (ASM) source code
• Pre-compiled working HEX file (ready to flash)
• Celsius readings
• Accurate 1-Wire timing routines
📌 Hardware
• Full schematic
• Bill of Materials (easy-to-source components)
• Wiring diagram / pinout reference
• Optional: PCB layout preview (if you want, I can generate Gerbers too)
• All found here for free: https://tinyurl.com/Digital-thermistor
📌 Documentation
• Step-by-step build instructions
• How to correctly wire and test the DS18B20
• All found for free here also: https://tinyurl.com/Digital-thermistor
⸻
⭐ Why This Firmware Is Special
Most DS18B20 examples are written for Arduino or high-level languages.
This project is:
⚡ Ultra-Optimised for PIC Assembly (mpasm mplab 8.92 or earlier, not the bloated mplab x)
• Accurate 1-Wire read/write slots
• Cycle-perfect delays at 4 MHz
• Robust reset pulse detection
• Works reliably on noisy lines
• Clean, readable register-level code
🧰 Perfect for hobbyists, students, and product builders
If you want to learn or build something real-world, this gives you:
• A working thermometer
• Clean assembly code
• Working hardware
• You can modify it for your own product
⸻
🎯 Who This Project Is For
• PIC developers
• Electronics students
• Makers building temperature monitors
• Anyone learning PIC assembly
• Product designers needing a temperature module
If you just want something that “works”, you can flash the HEX file and go.
If you want to learn, the commented ASM code is easy to follow.
⸻
💬 Support
If you get stuck, message me — I’m happy to help you wire it or troubleshoot your build.
What's included in this Digital Download?
Assembly code file ready to edit and or compile and flash to your PIC16F628. The schematics and tutorial on the build are free and found here: https://tinyurl.com/Digital-thermistor
Why Use PIC Assembly Instead of Arduino/ESP32?
Most examples online use high-level microcontrollers.
This project is different — it’s built for speed, reliability and precision.
✔ No operating system
✔ No Arduino bloat
✔ Cycle-perfect timing
✔ Ultra-low power
✔ Microsecond-level accuracy
✔ Starts instantly
✔ Production-grade reliability
Disclaimer — For non commercial personal use only
This thermometer project (including source code, schematic, and documentation) is supplied strictly for personal learning, research, or hobby use. It is not certified or intended for commercial, industrial, or medical applications. For a commercial license, please message me.
The design and code are provided as-is, without any warranty of any kind — express or implied — including but not limited to fitness for a particular purpose, merchantability, or safety.
By downloading, building, or using this project, you agree that you are solely responsible for verifying all safety aspects, electrical ratings, and compliance with local regulations. The author accepts no liability for any loss, damage, injury, or death arising from use or misuse of this project.
Do not use this design in situations where failure could cause harm or financial loss. Use at...
Read more »
Pedro Minatel
land-boards.com
Mike Lemberger