Home > Projects > Other Projects > Love You Pillow

Love You Pillow

Summary of Love You Pillow


This project creates an "I Love You Pillow" that detects hugs using a DIY capacitive sensor made of aluminum foil and sends corresponding love emojis via a Telegram bot. The Arduino MKR IoT Bundle handles the WiFi connection and logic, while a buzzer provides heartbeat feedback based on hug duration. The system integrates libraries for capacitive sensing, Telegram communication, and WiFi stability.

Parts used in the I Love You Pillow:

  • Arduino MKR IoT Bundle
  • Buzzer
  • Aluminium foil
  • 1 resistor 5M ohm
  • Breadboard
  • Wires
  • Telegram Bot

Open source is love, and so are hugs!

 

Things used in this project

Hardware components

Arduino MKR IoT Bundle
Arduino MKR IoT Bundle
× 1

Software apps and online services

Telegram

Story

select the privacy
Turn off the privacy setting

Quick Solutions to Questions related to I Love You Pillow:

  • How does the device detect a hug?
    The device uses aluminium foil connected to the Arduino to create a DIY capacitive sensor that senses the electrical capacitance of the human body.
  • Can you send different emojis based on hug length?
    Yes, depending on the length of your hug, a different emoji will be sent from the Telegram Bot to the chosen chat.
  • Does the pillow make any sound when hugged?
    Yes, when you hug the pillow, you will hear the sound of a heartbeat coming from the buzzer inside.
  • What is the best way to add a watchdog to prevent crashes?
    You can use the Adafruit SleepyDog library or Adafruit ASF Core to add a timer that reboots the board if it stops receiving updates.
  • How do you get the unique chat-id for the bot?
    You must have the specific person text the bot first so the code can save the chat-id of that specific chat.
  • Does the bot work in group chats?
    To include the bot in a group chat, you need to disable the privacy mode in Bot Settings allowing the bot to read all messages.
  • What software libraries are required for this project?
    The project requires the WiFi101, TelegramBot, ArduinoJson, and CapacitiveSensor libraries.
  • How are emojis encoded in the Telegram Bot code?
    Emojis must be sent using UNICODE characters, such as U00002764 for a heart emoji.
  • Why might the WiFi connection turn off unexpectedly?
    WiFi can sometimes turn off for a few seconds without reason, which could cause the Arduino to hang if not handled by a watchdog.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top