How To Make Arduino Based Home Automation Project via Bluetooth? 1.Hardware (Input, Output) Arduino UNO: The 8 – bit ATmega 328P microcontroller based Arduino UNO is used in the project to control different components like Bluetooth module and relay network. Bluetooth Module: The Bluetooth Module used in this project is HC- 05. As seen in the image below, this Bluetooth module has 4 – pins for VCC (5V), ground, TX and RX. 2.Software #include <SoftwareSerial.h> const int rxPin = 4; const int txPin = 2; SoftwareSerial mySerial(rxPin, txPin); const int Loads[] = {9, 10, 11, 12}; int state = 0; int flag = 0; void setup() { for (int i=0;i<4;i++) { pinMode(Loads[i], OUTPUT); } ...
ความคิดเห็น
แสดงความคิดเห็น