Skip to content

Rohith-Kanathur/ManualCarSimulator

Repository files navigation

🚗 Embedded Manual Car Simulator using LPC2148

This project demonstrates Embedded System Programming using the LPC2148 ARM7 microcontroller.
It simulates essential car control functionalities — including door operation, gear control, indicators, clutch, brake, accelerator, and speed display — through an embedded hardware setup.


📘 Overview

The project uses various input and output peripherals interfaced with the LPC2148 to mimic real-world automobile behavior.
It integrates multiple components like a stepper motor, DC motor, joystick, switches, and a seven-segment display, coordinated through embedded C programming.


⚙️ Functional Description

🚪 Car Door Mechanism

  • A stepper motor is used to open and close the car door.
  • Motor rotation direction determines whether the door opens or closes.

⚙️ Gear Control

  • A joystick acts as a gearbox with the following gears:
    • Gear 1
    • Gear 2
    • Gear 3
    • Gear 4
    • Reverse
  • The current gear is displayed on an LCD screen (or output interface).

🧭 Indicators & Controls

  • Switches are used to simulate:
    • Clutch
    • Brake
    • Accelerator
    • Left Indicator
    • Right Indicator
  • Corresponding LEDs indicate the status of each control.

💨 Speed Display & DC Motor Control

  • The speed value corresponding to the selected gear and accelerator input is displayed on a seven-segment display.
  • This speed value is used to drive a DC motor, simulating the car’s motion proportional to gear and acceleration.

🔌 Hardware Components

Component Function
LPC2148 Microcontroller Central control unit
Stepper Motor Controls car door mechanism
DC Motor Simulates car movement
Joystick Gear selection
Switches Clutch, brake, accelerator, indicators
Seven Segment Display Displays speed
LEDs Indicate gear and turn signals

🧩 Software & Tools

  • Programming Language: Embedded C
  • Microcontroller: LPC2148 (ARM7)
  • IDE: Keil µVision
  • Compiler: ARM RealView / Keil C Compiler
  • Flashing Tool: Flash Magic

About

A stepper motor is used to open and close the car door. Switches are used to mimic clutch, brake, accelerator,left indicator and right indicator. A joystick is used as a gear box with gears 1, 2, 3, 4 and reverse. The speed is displayed on a seven segment display whose value is used to drive a DC motor. The current gear and the use of indicators…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages