Firmware - dilshan/electronic-limit-switch GitHub Wiki
This electronic limit switch employs a Microchip PIC10F200 microcontroller to monitor inputs and control the relay.
To compile and flash the firmware, you’ll need:
- MPLAB X IDE (v6.0 or later recommended)
- XC8 Compiler (v2.40 or later)
To program the PIC10F200 microcontroller, use MPLAB IPE provided by Microchip.
- Connect the programmer (such as PICkit 3 or PICkit 4) to the target device and open MPLAB IPE. (This microcontroller can be programmed using programming pads on the PCB or a SOT23 ZIF programming adapters.)
- Select the correct MCU (PIC10F200) and programmer/debugger from the MPLAB IPE dropdown menus.
- Load the generated .hex file from the
dist/
folder. - Click Connect to detect the device.
- Press Program to flash the firmware.