Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Mayank JonejaR
Published © GPL3+

FumeSucker Powered By Bolt IoT

Unless you're addicted to the lead fumes released while soldering (and lost a few braincells), you could totally use one of these.

IntermediateProtip1 hour1,373
FumeSucker Powered By Bolt IoT

Things used in this project

Hardware components

Bolt WiFi Module
Bolt IoT Bolt WiFi Module
×1
Temperature Sensor
Temperature Sensor
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
RobotGeek Relay
RobotGeek Relay
×1

Software apps and online services

Bolt Cloud
Bolt IoT Bolt Cloud

Story

Read more

Schematics

Fritzing FumeSucker Breadboard Diagram

The circuit for FumeSucker

Code

FumeSucker.py

Python
The threshold checking code to switch on the fan if too hot and switch it off if the soldering Iron is not being used
import time
from boltiot import Bolt
import json

api_key = "Your_API_key"
d_id = "Your_device_id"

solder_temperature_threshold = 26.8 # in C
client= Bolt(api_key, d_id)
offset_magic_number = 0 #needed sometimes when sensor mis-behaves :\

def get_solder_temperature(pin):
    """
    Get CPU temperature.
    """
    response = client.analogRead(pin)
    print response
    data = json.loads(response)
    return int(data['value'])

def control_fan(pin, value):
    """
    Control the Fan
    """
    response = client.digitalWrite(pin, value)
    print response

while True:
    solder_temperature = get_solder_temperature("A0")
    temp = float(solder_temperature)/1023.0*100 - offset_magic_number
    print "Solder temperature is", temp
    if temp > float(solder_temperature_threshold):
        control_fan('0','HIGH')
    else:
        control_fan('0', 'LOW')
    time.sleep(5)

Credits

Mayank Joneja
6 projects • 42 followers
Embedded Hardware Development and Robotics. Networked Embedded Systems | IoT | Wireless Sensor Networks | Design Thinking
Contact
R

R

7 projects • 94 followers
Senior Software Developer
Contact
Thanks to karlalhdz and rwaldron.

Comments

Please log in or sign up to comment.