#include <MeetAndroid.h> /* Programmers: Alexander Myrah, Chinyere Udoh, Xiaotan (David) Xu, Zhenzhen (Sunny) Song Date of Last Edit: 5/5/14 EENG 491 Texting and Driving Prevention Project Original code improvements to the Ping sketch sourced from Trollmaker.com Some code and wiring inspired by http://en.wikiversity.org/wiki/User:Dstaub/robotcar Amarino portion inspired from http://www.amarino-toolkit.net/index.php/download.html Buzzer portion inspired by */ #define trigPin 13 // Trig pin on HC-SR04 (Driver Seat) #define echoPin 12 //Echo pin on HC-SR04 (Driver Seat) #define trigPin1 7 // Trig pin on second HC-SR04 (Front Bumper) #define echoPin1 6 // Echo pin on second HC-SR04 (Front Bumper) #define trigPin2 5 // Trig pin on third HC-SR04 (Back Bumper) #define echoPin2 4 // Echo pin on third HC-SR04 (Back Bumper) #define led 11 // Red LED #define led2 10 // Green LED MeetAndroid meetAndroid; // Amarino Variable
#include <MeetAndroid.h> /* Programmers: Alexander Myrah, Chinyere Udoh, Xiaotan (David) Xu, Zhenzhen (Sunny) Song Date of Last Edit: 5/5/14 EENG 491 Texting and Driving Prevention Project Original code improvements to the Ping sketch sourced from Trollmaker.com Some code and wiring inspired by http://en.wikiversity.org/wiki/User:Dstaub/robotcar Amarino portion inspired from http://www.amarino-toolkit.net/index.php/download.html Buzzer portion inspired by */ #define trigPin 13 // Trig pin on HC-SR04 (Driver Seat) #define echoPin 12 //Echo pin on HC-SR04 (Driver Seat) #define trigPin1 7 // Trig pin on second HC-SR04 (Front Bumper) #define echoPin1 6 // Echo pin on second HC-SR04 (Front Bumper) #define trigPin2 5 // Trig pin on third HC-SR04 (Back Bumper) #define echoPin2 4 // Echo pin on third HC-SR04 (Back Bumper) #define led 11 // Red LED #define led2 10 // Green LED MeetAndroid meetAndroid; // Amarino Variable
project1.docx