UnnamedH / CarLock

A car central lock system written in MikroC for MCU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 :)

About

A car central lock system written in MikroC for MCU


Languages

Language:Assembly 67.8%Language:C 17.9%Language:C++ 14.3%