This project is supported by the 1st Magconn Idea Competition. Until now, turning on and off the air conditioner, heater and etc. , you used different remote controls.
We were dissatisfied with this and thought it for better way. We wanted to control this wirelessly and also be compatible with other devices. So we decided to use Bluetooth. It is wireless and is the connection method supported by many devices(Laptop, SmartPhone, desktop and etc.) and is suitable for what we want.
Have you ever tried to replaces parts on breadboard?(even any circuits)
It will be simple if there are few wires, but if you have a lot of wires and a mix of other wires, it will be inconvenient and difficult to replace the parts. The Magconn Module is can resolve this problem. We connected DHT22(Temperature and Humidity Sensor) to the Magconn Module by soldering.Step 1
Now you do not need to connect each line any more, just connect or disconnect modules.
And we connected Arduino and Sensors as follows.
We used two bluetooth modules(HC-06) to connect with serial communication with smart phones.
Please note that Arduino UNO's Digital 0,1 pins are reserved for hardware serial communication pins and should be uploaded while disconnected during Arduino Sketch.Step 2
Now we've got it working.
Above video shows external power supply to Arduino and Bluetooth connection with PC and smartphone.
The 74LS138, a DEMUX IC, was used as a way to get the most out of the pins, and we controlled four LEDs according to the fine dust concentration.
The criteria for fine dust concentration were in accordance with the Korea Meteorological Agency standard. There is only one DHT22 sensor combined with the Magconn module because it is difficult to connect the limit and pin to the number of the module.
In the future, other sensors and communication modules can be combined with the Magconn module for proper use. Pairing with PC HC-06 is for serial communication between PC and Arduino. After that, serial communication is possible by connecting Bluetooth and corresponding HC-06 module to PC.Step 3
HC-06, which is marked as Pairing with Android, connects your smartphone with Bluetooth. I used the Bluetooth Serial Controller application in Google Play Market.
Due to the lack of parts, you can simply read the data from the sensor and stop it, but if you have more pins and have other IRs, you can set more commands and set up more commands.To summarize the behavior:
The temperature, humidity and fine dust concentration are automatically displayed on the LCD when power is first applied.
After that, when the signal is applied to the Bluetooth on the smartphone by the power control, the data communication is controlled by generating the interrupt. In this case, input 1 turns on the power and 0 turns on the power.
When the power is ON, 'POWER ON' is displayed on the LCD and environmental information is displayed on the LCD. Receives environmental information read from the sensor via serial communication.
When the power is OFF, 'POWER OFF' is displayed on the LCD. I do not receive environmental information.
The resistor connected to the LED is to limit the overcurrent to a 330 ohm resistor, and the resistor on the DHT22 sensor is a pullup resistor.
Overall control was with a smart phone, and data transmission and reception with a PC.