Skip to content

A car central lock system written in MikroC for MCU

Notifications You must be signed in to change notification settings

UnnamedH/CarLock

Repository files navigation

Car Lock

This is a project made in MikroC in C, for the PIC16F84A, but it can be used with virtually any MCU with a little bit of tweaking. The circuit schematics I used could be uploaded and published if needed.

This is a project for a central lock system of a car. It takes inputs from both RB1 and RB2 for a predefined duration, and outputs with a predefined duration to RB5 and RB6 to lock or unlock the car.

Truth Table

Inputs Outputs
RB1 RB2 RB5 RB6
0 1 0 0
1 1 1 0
0 1 0 0
0 0 0 1

In this case, RB1 is pulled down and RB2 is pulled up. This was done since the signal is coming from a single wire.

  • When RB1 is closed the system is locked.
  • When RB2 is grounded the system is unlocked.

Feedback / Support

This is primarily a finished project. And is not something I am prioritizing. But I am open to changing/fixing anything with your help.

I am still an amateur developer and I really appreciate any feedback :)