Table of Contents

DIY Surprise Gift Box Using Smartphone

Surprise-Gift-Box-Using-Smartphone
Project Description

Introduction

Once there was an engineer who fell in love with a writer. So much head over heels he was that he decided to make her his forever. And being the engineer he was, he wanted to pop the question in an unusual, innovative way keeping it romantic all the same. He looked for here and there and everywhere when he stumbled across our DIY surprise gift box using a Smartphone. Just one look and he knew this was it. And after that, the two had their happily ever after!

The End.

D’you want your love story to be as romantically modern as this one? Then hop on board and make this project with us!

Making

Let’s start by making the gift box.

Take a readymade box or make one of the required size using cardboard. Once you have the box, cover it with a gift-wrapping paper of your choice.
Make sure that you wrap the lid and the base of the box separately.

We need to hide the circuit into the box. Connect the IR Sensor and Bluetooth to Arduino Nano according to the instructions given in the next step. Once done with the connections, place the entire circuit in the box.Placing the circuit in the box

Record your message in your Smartphone and connect it to the Bluetooth Module.

Place your phone in the box and cover it using the gift-wrapping paper such that the phone and the entire circuit remains hidden.Surprise-Gift-Box-Using-Smartphone

Place your gift above the paper.

Finally, decorate it the way you want.

final gift

Connection

Make the connections to the Arduino Nano as given below:

IR sensor:

  • OUT: digital pin 2 of nano
  • VCC: 5V of nano
  • GND: GND of nano

Bluetooth:

  • 5v: 5v of nano
  • GND: GND of nano
  • Rx: Digital pin 4 of nano
  • Tx: Digital pin 5 of nano

Battery:

  • Positive: VIN of nano
  • Negative: GND of nano

gift box fritzing diagram

Also, you can use evive instead of Arduino Nano.

Logic

The purpose of the box is to surprise the recipient when they open the box. The surprise can be both loving or it can be a prank.

All you have to do is record a message on your phone or download your favorite song. Write the code as shown. Pair Dabble with the Bluetooth Module. Select the Music Module.

When the IR sensor triggers HIGH, it will send a command via Bluetooth to play the music or the pre-recorded message selected by you.

Code

Upload the following Arduino Code to evive:

Conclusion

With this, your DIY surprise gift box using a Smartphone is ready to make your better half’s day!

Project Downloads - Code and Files

Code LabelCode File
Arduino Codehttps://ai.thestempedia.com/wp-content/uploads/2023/05/gift_box-2.ino
evive Library
Dabble Library

Circuit Diagram

Circuit Diagram DescriptionCircuit Diagram Fritzing Diagram

Make the connections as given:

IR sensor:

  • OUT: digital pin 2 of nano
  • VCC: 5V of nano
  • GND: GND of nano

Bluetooth:

  • 5v: 5v of nano
  • GND: GND of nano
  • Rx: Digital pin 4 of nano
  • Tx: Digital pin 5 of nano

Battery:

  • Positive: VIN of nano
  • Negative: GND of nano

Explore Related Projects by STEMpedia

Explore Community Projects