LnF 9000
PURPOSE:
Help find lost items easier
COMPONENTS:
DESIGN PROCESS:
WORKSHOPS:
-Arduino
-Bluetooth Module
-Sensors (accelerometer)
-Started with designing just speaker and LED and expanded to Accelerometer
-Uploaded Code
BEGINNINGS:
include "pitches.h"��#include <Adafruit_LSM303_U.h>�#include <Adafruit_L3GD20_U.h>�#include <Adafruit_9DOF.h>��Adafruit_LSM303_Accel_Unified accel = Adafruit_LSM303_Accel_Unified(54321);��#define SPEAKER 8�#define GREEN_LED 12�#define WHITE_LED 11��bool wState = false;�bool gState = false;��void toggle(int led1, bool &led1state, int led2, bool &led2state) {� if (led1state)� {� digitalWrite(led1,LOW);� led1state = false;� }� else� {� digitalWrite(led1, HIGH);� led1state = true;� }� if (led2state)� {� digitalWrite(led2,LOW);� led2state = false;� }� else� {� digitalWrite(led2, HIGH);� led2state = true;� }� Serial.println(led1state);� Serial.println(led2state);�}��
�void setup() {� Serial.begin(9600);� pinMode(GREEN_LED, OUTPUT);� pinMode(WHITE_LED, OUTPUT);� Serial.println("Accelerometer Test"); Serial.println("");� tone(SPEAKER, NOTE_C4);� digitalWrite(GREEN_LED, HIGH);� digitalWrite(WHITE_LED, HIGH);� delay(1000);� noTone(SPEAKER);� digitalWrite(GREEN_LED, LOW);� digitalWrite(WHITE_LED, LOW);� gState = false;� wState = false;� accel.begin();�}��void loop() {� sensors_event_t event;� accel.getEvent(&event);� Serial.print("Z: "); Serial.print(event.acceleration.z); Serial.print(" ");Serial.println("m/s^2 ");� if(event.acceleration.z < -5) {� tone(SPEAKER, NOTE_C4);� digitalWrite(GREEN_LED, HIGH);� gState = true;� for (int i = 0; i < 6; ++i) {� toggle(GREEN_LED, gState, WHITE_LED, wState);� delay(500);� }� digitalWrite(GREEN_LED, LOW);� gState = false;� noTone(SPEAKER);� } else {� Serial.println("no");� }� delay(100);�}
CODE:
MID-PROCESS:
-Found a way to connect Android Phone and control commands
-Added more commands (Daisy-Bell)
-Designed Schematic for Soldering
-Measured parameters and rendered box
FINAL TOUCH-UPS:
-3D Printed Box to fit circuit in
-Soldered circuit on Perfboard
Box Design vs. Box Outcome!
2 Main Difficulties
Design &
Communication
Design:
Communication:
Thank You!