535 views|4 replies

1116

Posts

2

Resources
The OP
 

【DigiKey Creative Competition】Project Name + Smart Home Control System [Copy link]

 This post was last edited by beyond_笑谈 on 2024-1-4 15:51

This DIY uses a touch screen and an external switch to control the opening and closing of home appliances, and the touch screen and external LEDs display the current working status of the home appliances accordingly.

Use PIC32-MAXI-WEB demo (MCU: PIC32MX795F512L) as the main control board, and external expansion switches and LED boards to replace switches and lights in the home control system.

Video link: https://training.eeworld.com.cn/video/38917

Source code link: https://download.eeworld.com.cn/detail/beyond_%E7%AC%91%E8%B0%88/630634

Please see the attached Word file.

The following figure shows the main test environment:

1.jpg (530.15 KB, downloads: 0)

1.jpg

digikey_iot_contest_2023_智能家居控制系统.doc

1.71 MB, downloads: 5

This post is from DigiKey Technology Zone

Latest reply

Awesome bro, the expansion board is great!   Details Published on 2024-1-6 14:30
 
 

6821

Posts

11

Resources
2
 

This time, the home appliances are turned on and off by controlling the touch screen, and the current working status of the home appliances is displayed accordingly.

Awesome! You must have put a lot of thought into it.

This post is from DigiKey Technology Zone
 
 
 

153

Posts

0

Resources
3
 

pic32 is indeed unpopular, awesome post!

This post is from DigiKey Technology Zone
 
 
 

118

Posts

1

Resources
4
 

Awesome bro, the expansion board is great!

This post is from DigiKey Technology Zone
 
 
 

1116

Posts

2

Resources
5
 
This post was last edited by beyond_笑谈 on 2024-1-7 15:28

1. Introduction

Design name: Touch-controlled intelligent home control system design

Project description: The home appliances are turned on and off through the touch screen and external switches, and the current working status of the home appliances is displayed accordingly. PIC32-MAXI-WEB demo (MCU: PIC32MX795F512L, PIC microcontrollers are often used in industrial control and home appliances due to their high reliability and excellent anti-interference performance) is used as the main control board, and external expansion switches and LED boards are used to replace switches and lights in the home control system.

The work is shown below:

2. System Block Diagram

The system application diagram is as follows:

As shown in the system application diagram, the entire design scheme is implemented using demo and external expansion modules.

3. Functional description of each part

As shown in the circled area below, a dip switch is used to replace the commonly used skipping switch at home, and an external 3V battery is used for power supply. IN1 is the switch detection signal, and the MCU can collect the switch status through the level detection function.

As shown in the circled area in the figure below, LED is used instead of lighting. When the controller outputs a control signal and turns on the switch side of the isolation relay S1, the LED lights up. The switch, control board, and LED all use different power supplies and voltage signals to simulate the isolated power supply of each load in an actual home control system.

4. Source Code

The main source code of the test is as follows. In the test program, the signal status is read and the output control signal is output. For the rest of the source code, please see the download link

void vTaskTest( void * pvParameters )

{

xSemaphoreTake(xSemaphorePrint, portMAX_DELAY);

while(1); {

xSemaphoreTake(xSemaphorePrint, portMAX_DELAY);

switch(ProdTestType) {

case PROD_TEST_NONE:

break;

case PROD_TEST_EXTCON:

vTaskSuspend(pxTaskIO);

ExtConTestAll();

UserPeriphInit();

vTaskResume(pxTaskIO);

break;

case PROD_TEST_USBOTG:

break;

case PROD_TEST_CAN:

StatLEDSet(1, FALSE);

StatLEDSet(2, FALSE);

StatLEDSet(3, FALSE);

{

int counter = 4000;

char ch;

CANtesting(1);

while(counter--) {

CANtesting(0);

if( UartCommRead(&ch, 1) ) {

UartCommWrite(&ch, 1);

ch = '*';

UartCommWrite(&ch, 1);

}

vTaskDelay(5);

}

}

StatLEDSet(1, FALSE);

StatLEDSet(2, FALSE);

StatLEDSet(3, TRUE);

break;

}

ProdTestType = PROD_TEST_NONE;

}

}

Source code link: https://download.eeworld.com.cn/detail/beyond_%E7%AC%91%E8%B0%88/630634

5. Demonstration video of the work’s functions

The demonstration video mainly simulates the usage in home control and demonstrates the actual operation.

Video link: https://training.eeworld.com.cn/video/38917

6. Project Summary

Project summary: The switch control of the home control system is realized by means of a touch screen and a mechanical switch, and the icons and LEDs on the touch screen are used to display the status of the controlled home appliances, thereby realizing the conceptual design of a smart home control system.

The Word document is as follows:

digikey_iot_contest_2023_ ...

digikey_iot_contest_2023_智能家居控制系统.doc

991.5 KB, downloads: 3

This post is from DigiKey Technology Zone
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list