Skip to content

denysgerasymuk799/Smart_lighting_system

Repository files navigation

Smart Lighting System

Description: 🎇

Presentation of the project

The main target of the project is to design a dynamic system of lighting devices on the soft and hard level, which have special functionality and can be controlled with the main board or your smartphone via Bluetooth.

This project demonstrates how to transform BLE Pioneer Kits with PSoC 4 BLE into nodes of a Mesh Network and relay common data over that network using flooding mechanism. The system employs connection method, where a BLE connection is made between two nodes before data is transferred.

Once the data has been received by a node, the node switches GAP role to connect to other nodes and relay the same data. The data relayed in this project is of RGB LED color and intensity control and the Mesh Network allows it to be relayed to each node in that network. The project can be easily modified to relay any other form of data.

Based on such approach, we have developed the following functionality:

  1. Auto reassignment of the main control board: in the main mode, there is the main control board, which initialises changing the color and its spread throughout the Mesh system. Furthermore, if the main board disappears, so the system lights up red color and auto reassignment of the main control board is starting -- as the result one of the peripherals becomes the main control board.

  2. Synchronisation with music: the system is able to make the lighting show by changing the color and brightness depending on the music bits.

  3. Switching the system on/off and switching between modes with clapping.

  4. Switching the role (from Central to Peripheral or vice versa) pushing the button.

  5. Code Morse: realisation of the well-known code Morse with blinking and changing brightness of lights.

Based on Cypress Mesh_Flood project

Description of each folder 📌

  • Mesh_Flood_PSoC4BLE_Original.cydsn -- an original code of Cypress Mesh_Flood project;

  • Mesh_Flood_Main_Auto_Reassignment.cydsn -- a code with the function of auto reassignment of the main control board;

  • Code_Morse.cydsn -- code Morse realisation with blinking and changing brightness of the lights;

  • Workspace_Mic -- workspace with mic functions -- music synchronisation and switching modes with clapping;

License:

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published