EL ARJA Mohamed
Published © GPL3+

Air Sheet Cooler

This device will refresh the sheet while sleeping and is as quiet as a whisper

BeginnerFull instructions provided1 hour455
Air Sheet Cooler

Things used in this project

Hardware components

PCBWay Custom PCB
PCBWay Custom PCB
×1
Rechargeable Battery, Lithium Ion
Rechargeable Battery, Lithium Ion
×1
Arduino Pro Mini 328 - 5V/16MHz
SparkFun Arduino Pro Mini 328 - 5V/16MHz
×1
pc fan
×1
General Purpose Transistor NPN
General Purpose Transistor NPN
×1
USB Connector, Micro USB Type B
USB Connector, Micro USB Type B
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Custom parts and enclosures

model to put on the bed

attach it to the bed to cool the sheets

Schematics

shéma

shematics

the shematic for the pcb

Code

code for Arduino

C/C++
you will have to upload it in the arduino using the arduino IDE and connect to the pin like in the scheme
const byte TRIGGER_PIN = 2; // PIN ECHO TRIGGER
const byte ECHO_PIN = 3;    // PIN ECHO

int FAN_PIN = 4; //pin for the fan (transistor as a relay)

const unsigned long MEASURE_TIMEOUT = 25000UL; // 25ms = ~8m à 340m/s


const float SOUND_SPEED = 340.0 / 1000;

void setup() {
// initializing the arduino
  pinMode(TRIGGER_PIN, OUTPUT); // the trigger pin is an output pin
  digitalWrite(TRIGGER_PIN, LOW); // pin is low to have no bugs
  pinMode(ECHO_PIN, INPUT); // the echo pin is an input to receive the ultra soud
  pinMode(FAN_PIN, OUTPUT); //the pin for the fan to activate 
}

void loop() {
//this will repeat indenfinitely
  digitalWrite(TRIGGER_PIN, HIGH); //Activate the pin during 10 milliseconds
  delayMicroseconds(10);
  digitalWrite(TRIGGER_PIN, LOW);


  long measure = pulseIn(ECHO_PIN, HIGH, MEASURE_TIMEOUT); //measur the time the sound comme back


  float distance_mm = measure / 2.0 * SOUND_SPEED; //wi divide it by 2 * the speed of sound ( line 7) to give us the distance in millimetre


  if ( distance_mm <= 50) //if the distance is inferior or equal to 5 cm the fan will activate during 10 minutes
  {
    digitalWrite(FAN_PIN, HIGH);
    delay ( 60000); //10 minutes 
    digitalWrite(FAN_PIN, LOW); //and then turn off
  }


  delay(50); //every half a second it repeat if the fan isn't turned on
}

Credits

EL ARJA Mohamed

EL ARJA Mohamed

2 projects • 1 follower
Thanks to TamiaLab.

Comments