34.Home Automation - 08



In this post I'll show you how to assemble the main control unit of the wireless home automation system.


In this unit , we can connect 8 electronic devices which can control by the speech recognition system & 8 lights which controls by the sensor unit.It needs 5v , 2A power supply to operate this unit.We need to assemble all this modules on a prototyping board.And we need to use female headers to fix the modules to the prototyping board.If you preferred to make your ow printed circuit board it is better.All the module connection should be as below.

  • ESP8622 TX pin with Arduino Nano D2 pin
  • ESP8622 RX pin with Arduino Nano D3 pin
  • dc-dc converter +VOUT pin with ESP8622 VCC pin & CH_PD pin & I2C OLED display VCC pin & NRF24L01 VCC pin
  • dc-dc converter -VOUT pin with ESP8622 GND pin & I2C OLED display GND pin & NRF24L01 GND pin
  • I2C OLED display SCL pin with Arduino Nano A5 pin
  • I2C OLED display SDA pin with Arduino Nano A4 pin
  • NRF24L01 MISO pin with Arduino Nano D12 pin
  • NRF24L01 SCK pin with Arduino Nano D13 pin
  • NRF24L01 CE pin with Arduino Nano D9 pin
  • NRF24L01 MOSI pin with  Arduino Nano D11 pin
  • NRF24L01 CSN pin with Arduino Nano D10 pin

Now the connections for the shift registers with the Arduino module & the relay modules.In the above image left side shift register is the primary register & the other shift register is the secondary register.Same for the relay modules.

  • primary shift register DS(14) pin with Arduino Nano D4 pin
  • primary shift register OE(13) pin with Arduino Nano GND pin
  • primary shift register ST_CP(12) pin with Arduino Nano D5 pin
  • primary shift register SH_CP(11) pin with Arduino Nano D6 pin
  • primary shift register MR(10) pin with Arduino Nano VIN pin
  • primary shift register VCC(16) pin with Arduino Nano VIN pin
  • primary shift register DOUT(9) pin with secondary shift register DS(14) pin
  • secondary shift register OE(13) pin with Arduino Nano GND pin
  • secondary shift register ST_CP(12) pin with Arduino Nano D5 pin
  • secondary shift register SH_CP(11) pin with Arduino Nano D6 pin
  • secondary shift register MR(10) pin with Arduino Nano VIN pin
  • secondary shift register VCC(16) pin with Arduino Nano VIN pin
  • primary shift register Q0(15) pin with primary relay module IN1 pin
  • primary shift register Q1(1) pin with primary relay module IN2 pin
  • primary shift register Q2(2) pin with primary relay module IN3 pin
  • primary shift register Q3(3) pin with primary relay module IN4 pin
  • primary shift register Q4(4) pin with primary relay module IN5 pin
  • primary shift register Q5(5) pin with primary relay module IN6 pin
  • primary shift register Q6(6) pin with primary relay module IN7 pin
  • primary shift register Q7(7) pin with primary relay module IN8 pin
  • secondary shift register Q0(15) pin with secondary relay module IN1 pin
  • secondary shift register Q1(1) pin with secondary relay module IN2 pin
  • secondary shift register Q2(2) pin with secondary relay module IN3 pin
  • secondary shift register Q3(3) pin with secondary relay module IN4 pin
  • secondary shift register Q4(4) pin with secondary relay module IN5 pin
  • secondary shift register Q5(5) pin with secondary relay module IN6 pin
  • secondary shift register Q6(6) pin with secondary relay module IN7 pin
  • secondary shift register Q7(7) pin with secondary relay module IN8 pin
  • primary relay module VCC pin to Arduino Nano VIN pin
  • primary relay module GND pin to Arduino Nano GND pin
  • secondary relay module VCC pin to Arduino Nano VIN pin
  • secondary relay module GND pin to Arduino Nano GND pin
  • Arduino Nano VIN pin to +5V power connection
  • Arduino Nano GND pin to -5V power connection
        
After we make all the connections as above , the control unit is done.Now we can upload the control_unit.ino file to the Arduino Nano board & power up the unit.

In next post I'll show you how to make the sensor unit.

 

0 comments:

Post a Comment