Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Arnov Sharma
Published © MIT

Overengineered Fume Extractor Project

Made an Overengineered Fume Extractor from PCBs, Fan is controlled by Attiny13, this setup has an onboard battery for wire-free operation

BeginnerFull instructions provided1 hour937

Things used in this project

Hardware components

Microchip attiny13
×1

Software apps and online services

Fusion
Autodesk Fusion

Hand tools and fabrication machines

Seeed Studio Fusion PCB/PCBA
Seeed Studio Fusion PCB/PCBA

Story

Read more

Custom parts and enclosures

Fusion360File

Schematics

sch

Code

code

C/C++
const int switchPin = 4; 
const int FANPin = 0;
int FANMode = 1; 

void setup() 
{
    pinMode(FANPin, OUTPUT);
    pinMode(switchPin, INPUT_PULLUP);
    digitalWrite(FANPin, LOW);
     
}
void loop()
{ 
    if (digitalRead(switchPin) ==LOW) 
    { 
        FANMode = FANMode + 1;
        if (FANMode == 4)
        {
            FANMode = 1;
        }
    }
    if (FANMode == 1)
    {
        digitalWrite(FANPin LOW);
        delay(200);
    }
    else if (FANMode == 2)
    {
        digitalWrite(FANPin, HIGH);
        delay(200);
    }
    else if (FANMode == 3)
    {
        analogWrite(FANPin, 50);
        delay(200);        
    }
    //delay(200); // see text
}

Credits

Arnov Sharma
339 projects • 346 followers
Just your average MAKER
Contact

Comments

Please log in or sign up to comment.