-
Notifications
You must be signed in to change notification settings - Fork 2
Home
With the Jarrive system the user makes his office into 'Smart Office', by controlling the Lighting and the air-conditioning through bluetooth technology.
The user installs on his smartphone the Jarrive application and connects the Jarrive system to the Lighting and the air-conditioning. Whenever he arrives to his office (get in the range of bluetooth) the Jarrive system opens the lights (by dimming effect) and after a while starts the air-conditioning. When the users decide to leave the opposite happens. The lights close (by dimming effect) and after a while the air-conditioning closes too.
The user has to just have his smartphone with the Jarrive application on him!
- Arduino UNO
- Bluetooth module HM-10
- 220V AC Relay 5V for Arduino
- Velleman K8064 DC Controlled Dimmer
- Jumper Cables
- Power Supply for Arduino
- Breadboard (optional)
Follow the steps below to connect the "J'arrive" system. Advice the picture for detailed information.
1. Pin1(TX) -> Digital Pin2 2. Pin2(RX) -> Digital Pin3 3. Pin12(3.3V) -> 3.3V Pin 4. Pin13(GND) -> GND Pin 1. GND Pin(-) -> GND Pin 2. VCC Pin(+) -> 5V Pin 3. Signal Pin(S) -> Digital Pin8 1. Analog Input Pin(-) -> GND Pin 2. Analog Input Pin(+) -> Digital Pin9 ***must be a PWM Pin 1. Power Supply -> Arduino Board ***recommended a 9V-12V 1A Power Supply 2. Clima -> Terminal Block (NO) of the AC Relay 3. Light -> Terminal Block (Load) of Velleman K8064 4. AC Power -> Terminal Block (AC Power) of Velleman K8064 ***HIGH VOLTAGEThe Arduino starts and setup the bluetooth through the appropriate AT commands. The Arduino tries in the loop to send a question to the device. If there is no response then assumes that the device is absent so it closes the light and the air-conditioning system. If there is a certain answer to a specific question then the Arduino assumes that the device is present. So it starts the lighting (with dimming effect) and after a while it also turns on the air-conditioning system.
The Arduino code also has a watchdog timer in order to reset after a while (with no data response) the bluetooth.
This app scan for bluetooth Jarrive system and list the device. By clicking on the listed device the connection is established. Every time the arduino sends a certain byte the smartphone sends back a certain answer. That let the Jarrive system know that the smartphone is in the range.