Tag Archives: PIC32


Autonomous Parallel Parking Car

Owing to limited parking space, crowded cities require you to have really good parallel parking skills to park your vehicle in a narrow parking space. This stressful task has lately been made easier in the new automobiles with the implementation of automatic parallel parking technology based on multiple imaging cameras and laser sensors. This add-on could add a few thousand dollars extra on your car price. Alberto Gutiérrez, Shaan Shetty, and Boling Hu (students from Cornell University) built a low-cost prototype car with autonomous parallel parking capability that would enable the car to find a suitable parking space and park itself without any assistance from the driver. Their design uses Ultrasound Sensors with a PIC32 microcontroller to map the surrounding obstacles, and determines if the available parking space is sufficient to park the car.

Autonomous parallel parking car

Autonomous parallel parking car

Our system is mainly composed of five ultrasonic sensors (HC-SR04, a dual motor driver, a PIC32MX250F128B microcontroller, a TFT display and two DC motors with gear boxes. The car is capable of parking autonomously after it detects a parking space on its right side. There is one sonar on the front, one on the back, two on the right side and one on the back right corner of the vehicle. One of the side sensors is in charge of keeping the car aligned to the parking space boundaries using a closed-loop Proportional-Integral (PI) controller.

Here’s the demo of the autonomous parking car.

chipKIT Tutorial 1: Digital input and output

Our first chipKIT tutorial is about reading and writing digital data (0 or 1) from and to an I/O pin of the chipKIT board. Digital inputs are useful to determine whether an incoming digital signal is logic HIGH or logic LOW. A simple application of digital input is reading the state of a push-button switch and perform some action based on if the switch has been pressed or not. Similarly, digital outputs are used by microcontrollers for many purposes, such as to enable or disable an external chip, drive LEDs and LCD displays, control relay switches, etc. In this tutorial, we will build a very simple circuit using a momentary push-button and an LED, both connected to the digital I/O pins of chipKIT Uno32. The state of the switch is continuously read by Uno32, which then toggles the LED on and off every time the switch is pressed.

Digital input and output

Read more