Final project


Final project presentation Video

Final project presentation Slide

Motion sensor lamp

Bhutan has over 71 percent of its territory under forest cover and is the only carbon negative country in the world. I have always considered myself very fortunate to be part of such a green country and I wanted to contribute towards it, be it big or the smallest way possible. Bhutan generates electricity using natural and renewable resources (Hydro, solar, wind and bio-waste). Naturally, looking at the surrounding my interest in renewable energy grew. Studying electrical engineering has pushed my interest even more as I have learnt how greatly renewable energy helps conserve our green and beautiful forest.

I noticed that the street lights in our country are either operated manually or timer sensors are used whereby the street lights are kept on starting from 7pm in the evening till 6 am in the morning. Street lights are very important and keep the community safe but a lot of energy is wasted when the streets are empty. My plan for the long run is to build a solar powered motion sensor street lights in the country.

But every dream must start from a single step thats how i decided i wanted to work on motion sensor lamp as my final project for the Fabacademy. An intelligent motion sensor lamp which when it is dark outside activates LDR sensor and if any movement is sensed, the doppler sensor is activated which will give the signal to relay to turn on the LED and stays on for 5 seconds. As for the design of the lamp, i am planning to use different Bhutanese design and give it a touch of Bhutan's culture.

Image

Why motion sensor lamps?

Even now, the lamps and lights are kept on throughout the night at the houses for security and safety reasons. If one house keeps one light on throught the night, just think about how much energy is wasted by a city (where there are thousands of houses)

Planning:

Conditions to set for lamp to glow:

Image

Flowchart

Image

Lampshade design ideas:

The 2D and 3D design of the lamp are done during the week 2 assignment of the fabacademy.

But I wanted to incorporate some bhutanese designs for the lamp shade for which I am going to use a 3D printer lithophane .

We can make pictures into 3D designs easily using lithophane maker

Image

The design is called an endless knot and it is one of the popular designs in my country.

Image

For the base or the support to the lamp, I wanted to make something different and unique. So, I want to making a tensegrity table

Image

Work division

image

1. Electronics board

First of infinite attempts

image

Third times the charm

Design file for the electronic board done on KiCAD is here

2. Programming

Install Esp32 in arduino IDE

BluetoothSerial ESP_BT; #define Sensor 13 #define LED 14 #define lightSensorPin 32 bool Detection = 0; int lightSensorReading = 0; int button = 0; void setup() { Serial.begin(19200); ESP_BT.begin("ESP32_Control"); //Name of your Bluetooth interface -> will show up on your phone pinMode(Sensor,INPUT); pinMode(LED,OUTPUT); pinMode(lightSensorPin, INPUT); } void loop() { // --------- Receive Bluetooth signal -------- if (ESP_BT.available()) //Serial.print("current status:"); //Serial.print(button); { incoming= ESP_BT.read(); //Read what we receive //incoming = 2; // separate button ID from button value -> button ID is 10, 20, 30, etc, value is 1 or 0 button = incoming; Serial.print("new status:"); Serial.print(button); if (incoming==0) { Serial.print("Button 1:"); Serial.println(button); digitalWrite(LED, button); } else if(incoming==1) { Serial.print("Button 2:"); Serial.println(button); digitalWrite(LED, button); } if(incoming==2) { Serial.print("Button 3:"); Serial.println(button); Detection = digitalRead(Sensor); lightSensorReading = analogRead(lightSensorPin); Serial.println(lightSensorReading); if(lightSensorReading > 4000 && Detection== HIGH) { Serial.println("Motion detected !!"); digitalWrite (LED, HIGH); delay(3000); } else { digitalWrite (LED, LOW); Serial.println("No motion detected"); } } } }

File for the final project program is here

3. App

  1. Click on start new project and name your project

    Image

  2. On the left hand side, you get the options to choose what you want in the app

    Image

  3. Added buttons and inserted image to the buttons

    Image

  4. Click on buttons and give the conditions and results

image

  1. The conditions and result for bright bright lamp

image

  1. MIT app inventor can be connected to andriod phones only. To use the app in your phone, download the MIT app inventor app in your phone. From the Mac, click on connect-> AI companion and connect to the phone using the QR code that is generated from there.

    image

The file for the app developed using MIT app inventor is here

4. Tensegrity table

Design files for tensegrity table is here

5. Lamp shade

image

image

6. Bulb holder- holder

Design file for the bulb-holder is here

7. Lamp shade holder

Design files for lamp shade holder in Fusion360 is here

8. Branding and logo

Design file for BrightBrightLamp in inkscape in svg format is here

FINAL- Integrating

Steps

  1. First step is programming the board

  2. Putting the electronics inside the tensegrity table

  3. Assembling the tensegrity table using the fish thread

  4. Placing the bulb holder on top of the tensegrity table

  5. Placing the lamp shade holder on top of the bulb holder and inserting the bulb

  6. Give the power supply to the bulb and the board and ENJOY!

    image

Bill of material (BOM)

Sl.no Name Source Quantity Price Total
1 Desho paper Local Market 2 $1.25 $2.5
2 Wires(red&black) Local market 2m $0.5 $1
3 Bulb holder Local market 1 $0.31 $.31
4 Bulb(LED) Local market 1 $5 $5
5 Plug top Local market 1 $0.56 $0.56
6 ESP32 Wroom32 Fablab mandela 1 $4 $4
7 PCB - R10k SMD Fablab Mandela 2 $ 0.05 $0.1
8 PCB - R1k SMD Fablab Mandela 2 $ 0.05 $ 0.1
9 PCB - C0.1uF SMD Fablab Mandela 3 $ 0.3 $ 0.9
10 PCB - Led SMD Fablab Mandela 2 $ 0.2 $ 0.4
11 PCB - Connector strips SMD Fablab Mandela 1 $ 1 $ 1
12 Voltage regulator- IC REG LINEAR 3.3V 1A SOT223 Fablab mandela 1 $0.34 $0.34
13 Slide Switch SPDT Surface Mount, Right Angle Fablab mandela 1 $0.92 $0.92
14 Tactile Switch SPST-NO Top Actuated Surface Mount Fablab mandela 1 $0.92 $0.92
15 White PRO Series Tough PLA Filament - 1.75mm (1kg) Fablab Mandela 46g $57/kg $ 2.62
TOTAL $20.62

License

Who's done what beforehand?

Acknowledgment