element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Bluetooth Unleashed Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Bluetooth Unleashed Design Challenge
  • More
  • Cancel
Bluetooth Unleashed Design Challenge
Blog Bluetooth Unleashed : AAPSAD #8 : The Fragrance
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: sakthi.1260
  • Date Created: 23 Jun 2018 3:42 PM Date Created
  • Views 1056 views
  • Likes 6 likes
  • Comments 4 comments
  • arduino
Related
Recommended

Bluetooth Unleashed : AAPSAD #8 : The Fragrance

sakthi.1260
sakthi.1260
23 Jun 2018

Hello guys,

All the testing and modules are been done with the Arduino Mega, but I'm gonna use the Arduino Micro as my final board, on the previous blog we successfully

controlled the Humidifier using the Arduino and I started the soldering work in parallel.

imageimage

The chassis of the humidifier itself is sufficient to hold the Arduino Micro and the Bluetooth module so my work got reduced on designing a separate enclosure.

 

So this weeks update is the Room freshener,

 

I've chosen two scents one is little warming great one to rise up the spirit (SummerDelight for SORROW), the other one is smooth and calming(Citrus for ANGER).

 

Dismantled the machine.

imageimageimage

I couldn't find what chip it was using the on part markings and decided to study the circuit, the IC was simply switching a PNP transistor on particular intervals.

imageimage

after finding the terminals of the PNP tapped wires and added a NPN to control with Arduino GPIO. The motor consumed about 200mA as peak current so a 2N3904 was enough. The only one Issue was timing, 500ms was too short and 1ms was too long. A USB scope came handy and ON timing was 750ms.

imageimageimage

imageimage

Did the same for the other one freshener device too  and its action time (I started using gifs its much more convenient than uploading videos hoping it works good on mobile devices too)...

imageimage

The code of course... I've added a few more lines to the previous code.

#include <TroykaDHT.h>
#define ROOM_SUM 11
#define ROOM_CIT 12
#define HUMIDIFIER 9
void freshner (int fresh)
{digitalWrite(fresh,HIGH);
 delay(750);
 digitalWrite(fresh,LOW); 
}

DHT dht(10, DHT11);
void setup()
{
  pinMode(HUMIDIFIER, OUTPUT);
  pinMode(ROOM_SUM, OUTPUT);
  pinMode(ROOM_CIT, OUTPUT);
  Serial.begin(9600);
  dht.begin();
}

void loop()
{ digitalWrite(HUMIDIFIER,LOW);
  dht.read();
  delay(100);
  int hum = dht.getHumidity();
  char c = Serial.read();
  switch(c){
    case 'a':             //ANGER
      if (hum<80)
      {
        digitalWrite(HUMIDIFIER,HIGH);
      }
      freshner(ROOM_CIT);
      delay(480000);
      break;
  
    case 's':             //SAD
      if (hum<60)
      {
          digitalWrite(HUMIDIFIER,HIGH); 
      }
      freshner(ROOM_SUM);
      delay(480000);
      break;
  }
}

 

Cheers,

Sakthi image

  • Sign in to reply

Top Comments

  • DAB
    DAB over 7 years ago +2
    Nice update. DAB
  • genebren
    genebren over 7 years ago +2
    Nice update. This is an interesting approach to improving mood. Scent is a power tool and a very direct link to memories. Unfortunately for me, most fragrances are offensive to me, usually way to strong…
  • sakthi.1260
    sakthi.1260 over 7 years ago in reply to genebren +1
    Hi Gene, Initially the idea was to use tiny refillable canisters and drive them using stepper and a servo so that you can have a set of custom fragrances, all my resources are offline for a while so had…
  • genebren
    genebren over 7 years ago in reply to sakthi.1260

    Sakthi,

     

    The refillable canisters would have been a great way to go.  Scents in the fruits and citrus range seem to process well for me, it is the overly floral scents that are difficult for me to handle.

    I do like the smell of real food a lot (maybe too much).

    Gene

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • sakthi.1260
    sakthi.1260 over 7 years ago in reply to genebren

    Hi Gene,

    Initially the idea was to use tiny refillable canisters and drive them using stepper and a servo so that you can have a set of custom fragrances, all my resources are offline for a while so had to drop the idea.

     

    How about the smell of food? are they unpleasant too? image

     

    Cheers,

    Sakthi

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • genebren
    genebren over 7 years ago

    Nice update.  This is an interesting approach to improving mood.  Scent is a power tool and a very direct link to memories.  Unfortunately for me, most fragrances are offensive to me, usually way to strong, sweet or somehow unpleasant.  Maybe that is why I am always in such a bad mood image.

    Keep up your good work!

    Gene

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 7 years ago

    Nice update.

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube