tinytool52 — is a complete bare metal driver suite for modern day Intel MCS51 (8051/8052) clones. It features a minimal implimentation of the C Standard Library with headers like ttl52int.h , ttl52bool.h, ttl52matrix.h and bare metal driver for 37+ Sensors , UART Serial , Software PWM , Software DAC & ADC , and more!
- ttl52int.h — Standard Integers for 8052/8051
- ttl52bool.h — Boolean variables for 8052/8051
- ttl52fxp.h — Fixed Point data types as a float alternative for 8052/8051
- ttl52matrix.h — Functions for working with matrices 8052/8051
- ttl52dstring.h — String libraries for 8051/8052
- ttl52def.h — NULL,size_t and offsetof() implimentation for 8051/8052
More libraries may be added as per requirement.
- Three Pin Relay
- Three Pin LED Module
- Dual Color LED
- Four Pin RGB Module
- Four Pin SMD RGB
- Three pin Tracking Sensor
- Four Pin Avoidance Sensor
- Four Pin Small Sound Sensor
- Four Pin Big Sound Sensor
- Four Pin Flame Sensor
- Four Pin Linear Hall Sensor
- Four Pin touch Sensor
- Four Pin Digital Temperature Sensor
- Active Buzzer Driver (Times/Ticks)
- Passive Buzzer Driver (Frequency Based)
- Four Pin Reed Switch
- Three Pin Mini Reed
- Heartbeat Sensor
- 7-Color Flasher
- Laser Emiter
- Shock Sensor
- Three Pin Push Button Module
- Rotatory Encoders
- Humidity Sensors
- Anaglog Temp & Hall Sensors
- TR Emission Driver
- IR Reciever Driver
- Tap Module
- Joystick Driver
More hardware drivers will be added as per requirement.
- 0 — 3 Months : Complete Software Library with Stable Releases
- 3 — 9 Months : Subset of Hardware Drivers
Please stay updated on the release structure for keeping track with stable drivers & different hardware configurations. Updates to the timeline will be made after some drivers are made and I can accurately guess the approximate time needed.
tinytool52 primarily targets the SDCC (Small Device C Compiler) and the pre compiled *.lib releases will not work for Keil C51 , Ports may be possible if there is enough demand However, I personally do not like Keil C51 and its proprietary lock in mechanisms.
Each release will consist of a driver library (xyz.lib) file and its headers (xyz.h) with a quick start guide covering all the functions , their arguments , usage and a guide to link the library in your project.
Linking Guides will also be published on this Repository.
Sensor Documentation
Supported MCU Targets
8051 Releases
8052 Releases
Software Libraries
Hardware Drivers
tinytool52 is completely designed and developed by Baibhav Bhattacharya (BaibhavPenguin on GitHub) , the tinytool52 drivers are completely free & open-source for anyone to use and modify
The Software , Drivers or Libraries under the tinytool52 project come with absolutely NO WARRANTY.
Copyright 2026 Baibhav Bhattacharya — Apache License , version 2.0