4. VI. Financial Expenses
Shown below is a table of our expenditure and write below that is the summary of our financial
statement.
Components Price ($)
Arduino Uno 22.00
MaxSonar Sensor 25.00
Breadboard Shield 2.00
LCD display 7.00
Pololu Accelerometer 10.00
Laser Diode 3.00
Summary:
Total Spent : $69.00
Budget : $75.00
Amount Saved: $6.00
VII. Code
//Brian Medrano, Ronann Carrero, Rohan Agarwal, Jason Jin
//RSA Final Project
//include the libraries of the hardware pieces we use
#include <Wire.h>
#include <LSM303.h>
#include <SoftwareSerial.h>
const int LCD_pin = 12; //Pin 12 LCD
SoftwareSerial LCD_Serial = SoftwareSerial(255, LCD_pin);
//initialize the sensor
LSM303 sensor;
int const SWITCH1 = 2; // switch 1 for interrupt
//variables to hold values for g calculations
float calibration = 0.0;
float const vgun = 1368.737;
float x;
float gvalue;