Appendices
Appendices
Appendices
APPENDIX A
APPENDIX B
RESEARCH
GANTT CHART
3
APPENDIX C
#include <RobotIRremote.h>
#include <RobotIRremoteInt.h>
#include <RobotIRremoteTools.h>
// ****************************** SPI - ADXL345 CONFIGURATION AND
LIBRARY ************************************
#include <Wire.h>
#include <Adafruit_SSD1306.h> // header files
#include <Adafruit_GFX.h>
#include <SparkFun_ADXL345.h> // SparkFun ADXL345 Library -
SENSOR Libraries
// ****************************** I2C - 0.9 inch OLED DISPLAY
CONFIGURATION AND LIBRARY ************************************
#define READINGS_NUMBER 10
#define DELAY_TIME 10
#define OLED_ADDR 0x3C // Address of Slave - default per OLED
Module
Adafruit_SSD1306 display(-1); // -1 = no reset pin
#if (SSD1306_LCDHEIGHT != 64) //
#error("Height incorrect, please fix Adafruit_SSD1306.h!");
#endif
// set variables
float DEG = 0.00; // final degrees na mogawas sa screen
float DEG2 = 0.00; // final degreed
void setup()
{
display.begin(SSD1306_SWITCHCAPVCC, OLED_ADDR); //
Initialize OLED
display.clearDisplay();
display.display();
data2 = accfront/denum2;
deg2 = atan(data2);
DEG2 = deg2*57.3;