ShivamGautam
Published © GPL3+

Wireless Smart Light - Smarter Notifications

A Wireless Smart Light powered by P9038-R-EVK – Qi 5W & P9025AC-R-EVK – Qi 5W

BeginnerFull instructions provided2 hours1,221
Wireless Smart Light - Smarter Notifications

Things used in this project

Hardware components

Qi 5W Transmitter Prototype Kit
IDT Qi 5W Transmitter Prototype Kit
×1
Qi 5W Receiver Prototype Kit
IDT Qi 5W Receiver Prototype Kit
×1
Photon
Particle Photon
×1
LED (generic)
LED (generic)
×1
General Purpose Transistor NPN
General Purpose Transistor NPN
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Wireless Smart Light

Schematics

Code

Firmware for Wireless Smart Light

C/C++
Flash it.
int L1 = 6;
int L2 = 5;
int L3 = 4;
int L4 = 3;
int notification(String command);
void setup() {
    Particle.function("notify", notification);
    pinMode(L1, OUTPUT);
    PinMode(L2, OUTPUT);
    PinMode(L3, OUTPUT);
    PinMode(L4, OUTPUT);
}

void loop() {
    digitalWrite(L1, HIGH);
    digitalWrite(L2, HIGH);
    digitalWrite(L3, HIGH);
    digitalWrite(L4, HIGH);
}
void notify{
    for(int i=0; i<=10; i++){
    digitalWrite(L1, HIGH);
    digitalWrite(L2, HIGH);
    digitalWrite(L3, HIGH);
    digitalWrite(L4, HIGH);
    delay(1000);
    digitalWrite(L1, LOW);
    digitalWrite(L2, LOW);
    digitalWrite(L3, LOW);
    digitalWrite(L4, LOW);
    delay(1000);
    }
}

Credits

ShivamGautam

ShivamGautam

4 projects • 9 followers
Software developer, web developer, MIC programming, IoT

Comments