Difference between revisions of "Itty Bitty Buggy: Example 4: Parallel Parking (mDesigner)"

From Microduino Wiki
Jump to: navigation, search
(Overview)
Line 16: Line 16:
 
A sample generated map is as follows:
 
A sample generated map is as follows:
  
[[File:IBB_Example4_Map_Resized.png]]
+
[[File:IBB_Example4_Map_Resized.png|750px]]

Revision as of 20:38, 8 November 2018

Introduction

Itty Bitty Buggy is great at tracing lines and even avoiding lines, but what about parking? In particular, parallel parking... this example will program Itty Bitty Buggy to parallel park!

Overview

In real life, parallel parking takes a practice to perform. This involves judging the distance of the parked cars & how to maneuver the car into position to get into the parking spot. More can be read about parallel parking here: https://en.wikipedia.org/wiki/Parallel_parking

Since, Itty Bitty Buggy does not actually have eyes in order to judge the distance of the park cars. We will just simulate the behavior.

There is a limited amount sensors on Itty Bitty Buggy, we will need to make the best use of these sensors. We have two Color Detectors on Itty Bitty Buggy on the left side "A" and the right side "B".

We will use the Color Detectors to determine when to activate the parallel parking sequence, then again when we have successfully parallel parked to stop the parallel parking sequence.

We arbitrary picked "red" to start parallel parking sequence and "green" to stop the parallel parking sequence.

A sample generated map is as follows:

IBB Example4 Map Resized.png