Devices & Components
Arduino Uno Rev3
Solderless Breadboard Full Size
HC-05 Bluetooth Module
Jumper wires (generic)
High Brightness LED, White
Hardware & Tools
butter paper
Software & Tools
Bluetooth electronics
fritzing
Arduino IDE
Project description
Code
Code for bluetooth lighting system
c_cpp
1const int ledPin=7; 2 3void setup() { 4 pinMode(ledPin,OUTPUT); 5 Serial.begin(9600); 6 7} 8 9void loop() { 10 if(Serial.available()>0){ 11 int data = Serial.read(); 12 Serial.println(data); 13 14 switch(data){ 15 case '1': digitalWrite(ledPin,HIGH); 16 break; 17 case '0': digitalWrite(ledPin,LOW); 18 break; 19 } 20 } 21 22} 23
Downloadable files
Scheamatics -
Scheamatics -

Scheamatics -
Scheamatics -

Comments
Only logged in users can leave comments