https://github.com/matveyt/udm
Custom firmware for Range Finder DIY kit
https://github.com/matveyt/udm
8051 firmware hc-sr04 mcs51 sdcc stc ultrasonic-sensor
Last synced: 10 months ago
JSON representation
Custom firmware for Range Finder DIY kit
- Host: GitHub
- URL: https://github.com/matveyt/udm
- Owner: matveyt
- License: unlicense
- Created: 2025-07-09T10:39:48.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-07-21T14:10:35.000Z (11 months ago)
- Last Synced: 2025-07-21T16:32:45.756Z (11 months ago)
- Topics: 8051, firmware, hc-sr04, mcs51, sdcc, stc, ultrasonic-sensor
- Language: C
- Homepage:
- Size: 224 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Description
This is a custom firmware (written from scratch) for the Range Finder DIY kit.

The kit is built around HC-SR04 ultrasonic sensor and STC15 series MCU (Enhanced 8051) in
DIP-28 package. If you have a different kit then it will probably not work.
Original kit goes with STC15W408S MCU but the firmware does not make use of its extended
features. So it could be replaced by any other one having the same package/pinout and 2K
flash memory, at least. For example, I successfully tested it with STC15F204EA chip.
To rebuild firmware from source you would need free SDCC compiler. Few firmware options
could be changed by editing the file `src/config.h`. Make sure that PCB pinout and MCU
frequency match yours!
To download the firmware you would also need an USB-TTL converter, breadboard, some
jumper wires (RX/TX, 5V and GND only) and software (AIAPP-ISP or stcgal). Please, note
that many STC MCUs do not use RESET line by default, so you have to mount a power switch
instead.