element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • 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
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
Design for a Cause - Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Design for a Cause - Design Challenge
  • More
  • Cancel
Design for a Cause - Design Challenge
Blog Cue System for Anosmia and Smart WheelChair #8a - Home Appliance Control
  • Blog
  • Forum
  • Documents
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dixonselvan
  • Date Created: 31 Aug 2018 6:17 AM Date Created
  • Views 863 views
  • Likes 6 likes
  • Comments 4 comments
  • relay board
  • dixonselvan
  • accessibility_projects
  • ardexpert
  • design for a cause - design challenge
  • amazon alexa
  • Alexa
  • design for a cause
  • smart home
Related
Recommended

Cue System for Anosmia and Smart WheelChair #8a - Home Appliance Control

dixonselvan
dixonselvan
31 Aug 2018

<<<<Previous Blog     Next Blog>>>>

 

Audio & Visual Cue System for Anosmia (Smell Disorder) and Smart WheelChair - Ft. Amazon's Alexa

Week 8: Aug 21 - 27

     The Smart Wheelchair has the following three sections: temperature monitoring, fall & collision detection, and home appliance control. These will be covered in a four-part blog series, the last part being the integration part. This blog is about the 'Home Appliance Control' section of the Smart Wheelchair. For the collection of this project's blogs published so far, visit this link and for the detailed plan of the 'Smart WheelChair' visit this link. This week progress has been mainly on the integration and testing of the Smart WheelChair system of the project and the 'Home Appliance Control' section. For the completed integrated code of the 'Temperature Monitoring' and 'Fall and Collision Detection' sections, visit this GitHub page. The Alexa part of the 'Home Appliance Control' is still a work in progress and will be posted soon. Once it is complete, Alexa will instruct the Arduino MKR1000 in terms of what home appliance it has to turn ON/ OFF. Until then Arduino MKR1000 has been programmed to send instructions to the slave (extra smell sensing unit) Arduino UNO through Bluetooth to turn ON and OFF the connected appliances in a sequence. You can find a similar setup here in my Digilent Arty S7 road test review here.

 

Smart WheelChair [Part 3 of 4]

               Temperature Monitoring     |  Fall & Collision Detection     |    Home Appliance Control     |     Integration

    • Introduction
    • List of Hardware and Software involved
    • Circuit Connection Diagram
    • Code
    • Outcome

Introduction

 

     The ‘Home Appliance Control’ section of the Smart Wheelchair will provide the ability to voice control the power to home appliances like TV, mobile chargers etc. Alexa will listen to the voice command, then process it and pass on the desired action to be taken, to the Arduino MKR1000. The main smell sensing unit will have the Arduino MKR1000 whereas the extra unit will have the Arduino UNO connected to the four channel relay module. The instruction will be communicated through Bluetooth between the master Arduino MKR1000 (main unit) and the slave Arduino UNO (extra unit). In correspondence with the instruction, the respective relay will be turned ON or OFF. For instance, if you command, Alexa, charge my phone, then the relay associated with the phone charger will turn ON and will start charging your phone.

 

     For the explanation and idea about the complete hardware setup for this project, visit this link - Cue System for Anosmia and Smart WheelChair #7 - Hardware Explained and Case

 

List of Hardware and Software involved

 

     Below is the list of hardware and software involved in making a 'Fall and Collision Detection' system. Click on the names in order to be directed to the site where you can buy or access the resource.

 

     Hardware

    • Arduino UNO
    • Arduino MKR1000 Dev board
    • Four Channel Relay Module
    • Bluetooth Module - x2
    • Amazon Echo Dot
    • Few two-core wires
    • Proto Shield / Breadboard & few Jumper wires

 

     Software

    • Arduino IDE
    • IFTTT
    • Thinger.io

 

Circuit Connection Diagram

 

     Below is the circuit connection diagram for the 'Home Appliance Control' section of the smart wheelchair. There are two subsections, the Arduino MKR1000 connected with Bluetooth module acting as master and the Arduino UNO connected with Bluetooth module acting as the slave and four channel relay module. This relay is in turn connected to an extension box with four outlets to plug in the home appliances. Out of the four only three are connected in a way that it can be controlled. The remaining one is for the DC fan of the main smell sensing unit, which will be always ON.

 

     Reference for: Configuring Master Slave Bluetooth - video

 

image

 

 

Code

 

      The code for Phase - I (without Alexa) of the 'Home Appliance Control' section of the smart wheelchair is provided below. For GitHub repository page, Click here.

 

Master Bluetooth - Arudino MKR1000

void setup() {
  Serial1.begin(38400);
}


void loop() {
  for(int i=1; i<=8;i++){
    passCmdCode(i);  
  }
}


void passCmdCode (int code){
  Serial1.print(code);
  delay(1000);
}

 

Slave Bluetooth - Arduino UNO

int Relay1 = 10;
int Relay2 = 11;
int Relay3 = 5;
int Relay4 = 6;
int serialData = 0;


void setup() {
  // put your setup code here, to run once:
  pinMode(Relay1, OUTPUT);
  pinMode(Relay2, OUTPUT);
  pinMode(Relay3, OUTPUT);
  pinMode(Relay4, OUTPUT);
  Serial.begin(38400);
}


void loop() {
  // put your main code here, to run repeatedly:
  if(Serial.available()>0){
     serialData = Serial.read();
     Serial.println(serialData);
     if (serialData == 49){
      digitalWrite(Relay1, HIGH);
     }
     else if (serialData == 50){
      digitalWrite(Relay1, LOW);
     }
     else if (serialData == 51){
      digitalWrite(Relay2, HIGH);  
     }
     else if (serialData == 52){
      digitalWrite(Relay2, LOW); 
     }
     else if (serialData == 53){
      digitalWrite(Relay3, HIGH);
     }
     else if (serialData == 54){
      digitalWrite(Relay3, LOW);
     }
     else if (serialData == 55){
      digitalWrite(Relay4, HIGH);  
     }
     else if (serialData == 56){
      digitalWrite(Relay4, LOW); 
     }
  }
}

 

Outcome

 

    Below is the video showing a demo of the outcome for the phase I of the 'Home Appliance Control' section without Alexa integrated.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Have you got any suggestion or comment? Let me know in the comments section below.

image

Progress made so far,

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 50%

 

<<<<Previous Blog     Next Blog>>>>

  • Sign in to reply

Top Comments

  • dwinhold
    dwinhold over 4 years ago +3
    You're project is looking great! Keep up the good work. Dale
  • dixonselvan
    dixonselvan over 4 years ago in reply to dwinhold +3
    Thanks dwinhold But I need to hurry up as I really running out of time
  • aspork42
    aspork42 over 4 years ago +1
    Coming along very well! It feels nice at points like this when you can finally plug the different parts together and have them work
  • dixonselvan
    dixonselvan over 4 years ago in reply to aspork42

    Yes aspork42 it is coming along very well. I just posted the Phase II of 'Home Appliance Control' with Alexa you can check this out here - Cue System for Anosmia and Smart WheelChair #8b - Home Appliance Control

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • aspork42
    aspork42 over 4 years ago

    Coming along very well! It feels nice at points like this when you can finally plug the different parts together and have them work image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dixonselvan
    dixonselvan over 4 years ago in reply to dwinhold

    Thanks dwinhold But I need to hurry up as I really running out of time image

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dwinhold
    dwinhold over 4 years ago

    You're project is looking great! Keep up the good work.

     

    Dale

    • Cancel
    • Vote Up +3 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 © 2023 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube