Vibrating Pillow

by liesnelissen2005 in Circuits > Arduino

189 Views, 0 Favorites, 0 Comments

Vibrating Pillow

opstaan.png

We made a vibrating pillow for deaf people to wake up in time!

Supplies

What will you need?

First for the pillow:

  1. 5 vibrating motors
  2. Arduino
  3. Relais
  4. Battery 9V
  5. Bluetooth connector
  6. a pillow
  7. a pillowcase
  8. small power wires (many)
  9. piece of cardboard

A device (computer) with which you make the app

And an android to connect with

App

Now that you have all the supplies we can start making a vibrating pillow!

First, we are going to make the app to connect with your phone and the Arduino.

You will open the site, https://appinventor.mit.edu. When you open the site you will see on the left top that you can 'create Apps'. Click on that button. (foto scherm eventueel voor instructies) After that, you can start a new project, click on that, you can give it a name, and start.

Video

How to Create Alarm Clock App | App inventor 2 tutorial for beginners | MIT App Inventor 2
Schermafbeelding 2023-05-02 om 21.38.09.png

So now that you named it (and connected it with a device step3) we can start really making the app. I watched this tutorial for making the app. It really helped me watching the video, but you have to watch carefully what he's doing and explaining ! :) You are going to watch the video down below. I added my personal touch to it.

Connect

We are officially starting. You can connect your phone with the app so you can see on your phone what is exactly changing.You will have to download, the app: 'App inventor' on your android. If you downloaded the app you have two options, you can choose between taking a Qr code with your camera or just type in the code that you will see on your screen to connect your phone. And from that point you will see what you are doing on your pc appears on your android screen.

Download the Arduino IDE 2.1.0 app on your device and copy this code. I already made it for you :)


The code:

#include <SoftwareSerial.h>

 

SoftwareSerial mySerial(10, 11); // RX, TX

 

void setup() {

 

Serial.begin(9600);

 

pinMode(13,OUTPUT); digitalWrite(13,HIGH);

 

Serial.println("Enter AT commands:");

 

mySerial.begin(38400);

 

}

 

void loop()

 

{

pinMode(13,OUTPUT); digitalWrite(13,HIGH);

delay(2000);

digitalWrite(13,LOW);

delay(1000);

if (mySerial.available())

 

Serial.write(mySerial.read());

 

if (Serial.available())

 

mySerial.write(Serial.read());

 

}



The Real Stuff 1

Schermafbeelding 2023-04-19 om 09.15.44.png
IMG-7583.jpg
IMG-7584.jpg
IMG-7585.jpg

Step1 about the real stuff: arduino in tinkercad, this is an example, but it looks a little different in real life.

This is how it is supposed to look.

Now the product is ready to use!