MICROCLIMATE CONTROL
SYSTEM
Ism Alfreaq
Ryan Hoffmeier
Eric-Todd Anderson
Kevin Wray
Ruwaybih Alsulami
Mohammed Alattas
Develop a climate control system for easy
maintenance of multiple terrariums/aquariums
Easy to use user interface with possible
extensions to the internet
Monitor various aspects of the environments with
sensors
Control environments autonomously
Presentation of current system status on LCD
screens
Possible extension to larger environment
Room in house, indoor stadium, bio-dome
Mohammed Alattas
PROJECT OVERVIEW
Monitor and control environmental variables
Temperature (heaters/fans)
Humidity (mister)
Lighting (lamps)
CO2 (CO2 tanks)
Multiple sensor boards to monitor individual
environments
Display current status on LCDs
Easy to use user interface via local computer
Interchangeability of peripheral devices
Mohammed Alattas
OBJECTIVES
Climate Variables
Power
Module
Microclimate Control System
Climate Control
User Interface
Microclimate Control System
Inputs
-Climate Variables: input from sensors
-Power: 120 VAC rms, 60Hz
-User Interface: desired climate variables
Outputs
-Peripheral Devices: adjust climate variables
-User Interface: display climate variable values
Functionality
Read in climate variables from sensors, display
values on user interface, control peripheral devices so
that the environment's variables match user input
Mohammed Alattas
LEVEL 0
LEVEL 1
Ryan Hoffmeier
User Interface
Climate Values
Sensor
Boards
Power
Desired Values
Central
Control Unit
6VDC, 1A
Peripheral
Control
Climate
Variables
Power Supply
120VAC
Peripheral
Devices
Climate
Control
Module
Sensor Boards
Inputs
-Climate Variables: input from sensors
-Power: 6VDC, 1A wall wart
-Desired climate values from CCU
Outputs
-Climate values: CO2, ambient light, temperature, humidity
-Peripheral control: ON/OFF signal for each peripheral
device
Functionality
Sensor board collects information from environment, turns
ON/OFF peripherals to meet user’s desired environmental
conditions, and sends current climate status to CCU.
LEVEL 1.2
Module
Peripheral Devices
Inputs
-Power: 120VAC with relays controlled by sensor board
Outputs
-Climate controlled by use of heater, fans, lights,
humidifier, CO2 tank
Functionality
Adjusts environmental variables
Ryan Hoffmeier
LEVEL 1.1
Module
Central Control Unit
Inputs
-Climate Values: current conditions measured and sent by
sensor board
-User Interface: user inputs desired environmental
conditions
-Power: 12VDC, 1A wall wart
Outputs
-User Interface: displays current climate conditions
-Desired Values: outputs user input to sensor board
Functionality
Monitor and control multiple sensor boards from one
location
LEVEL 1.4
Module
Power Supply
Inputs
-Power: 120VAC
-Peripheral Control: ON/OFF signal for each peripheral
Outputs
-6VDC, 1A: sensor board
-12VDC, 1A: central control unit
-120VAC: peripheral devices based on control signal
from sensor board
Functionality
Power sensor board and central control unit. Relays
control signal from sensor board to peripheral devices.
Ryan Hoffmeier
LEVEL 1.3
Climate
Variables
Sensors
CO2
6VDC, 1A
Ligh
t
Temp/Humi
d
5V
Regulator
3.3V
Regulator
I/O
Desired
Values
Wi-Fly
Climate Values
RS232 ATMega32
8
LCD
Digital/Analog I/O
Peripheral Control
Ruwaybih Alsulami
LEVEL 2.1: SENSOR BOARDS
Heater
Fans
120VAC
(Relay Controlled)
Lights
Ruwaybih Alsulami
LEVEL 2.2: PERIPHERAL DEVICES
Heat
Cooling/Air
Circulation
Light
Humidifi
er
Humidity
Solenoid
Valve
CO2 Level
Climate
Control
Wi-Fly
12VDC
Desired Values
RS232
5VDC
Climate Values
RCM3400
Dev Board
RS232
User Interface
Ruwaybih Alsulami
LEVEL 2.3: CENTRAL CONTROL UNIT
Sensor Board
CCU
6V
Wall
Wart
12V
Wall
Wart
120VAC
12V Power
Supply
Power Strip
Peripheral
Control
Relays
Peripheral Relay Control
System
Eric Anderson
LEVEL 2.4: POWER SUPPLY
120VAC to
Peripherals
‘S’tatus
‘P’rogram
Root
‘Q’uit
‘Q’uit
choose
tank # or
all
‘tank #’
get status
for tank #
‘tank #’
‘A’ll
‘Q’uit
choose
tank #
get status
for all
‘Q’uit
choose
variable to
set
‘Q’uit
set variable
Eric Anderson
SOFTWARE FLOW DIAGRAM (CCU)
SOFTWARE: SENSOR BOARD PSEUDO CODE
check sensor 1
if out of range:
adjust peripheral
check sensor 2
if out of range:
adjust peripheral
check sensor 3
if out of range:
adjust peripheral
check uart connected to WiFly (CCU)
if new parameters:
change climate variables
return current climate status
Eric Anderson
Loop:
Sensor Board 2
SYSTEM BLOCK DIAGRAM
Sensor
Temp.Light
Sensor
Humidity
Temp. Sensor
Sensor
Humidity
CO2 Sensor
Sensor
CO2 Sensor
CO2 Tank
CO2 Tank
Lights
Central
Control Unit
Lights
Heater
FansHeater
Fans
Humidifier
Humidifier
LCD Output
LCD Output
Network
User Interface
(PC)
Kevin Wray
Sensor
Board 1
Light
Sensor
Rabbit 3000 microprocessor 30MHz
8 channel 12-bit A/D with programmable gain
Up to 47 I/O lines and 5 serial ports
412K Flash/512K SRAM
Kevin Wray
CONTROL UNIT MICROPROCESSOR:
RCM3400W
1.8-5.5V operating range
Serial USART
32kB Flash program memory
1kB EEPROM (non-volatile)
2kB Internal SRAM
Up to 20MHz
Kevin Wray
SENSOR BOARD MICROCONTROLLER:
ATMEGA328
Eric Anderson
ATMEGA328 PINOUT
Central Control Unit communicates wirelessly
with sensor boards using WiFly
RN-134 “SuRF” board
Eric Anderson
WIFLY COMMUNICATION
MG811 – CO2 Sensor
Detects 0.035% to 1%
Low humidity and temperature dependency
Needs ADC
SHT71 – Humidity and Temperature Sensor
Normal operating range: -20–100oC
Digital output
Low power consumption
TSL235R – Light Sensor
Light to frequency converter
350–1000nm
Output frequency: 200–300kHz
Mohammed Alattas
SENSORS
Solenoid valve (CO2)
Fans
Lights
Mister
Heater
Mohammed Alattas
PERIPHERALS
Ryan Hoffmeier
POWER (SENSOR BOARDS)
120VAC
6VDC
5VDC
3.3VDC
CO2 Sensor (200mA)
Wi-Fly (210mA)
ATMega328 (200mA)
Light Sensor (2mA)
UART to USB (20mA)
T/H Sensor (1mA)
LCD Screen (3mA)
Largest power usage through peripherals
Sensor board connected to opto-isolator
Isolator allows relay to pass current
Keeps high current levels off of sensor boards
Isolation of individual outlets of a power strip
Allows for easy exchange of peripherals
Ryan Hoffmeier
POWER
Component
Quant.
RN-134 “SuRF” board*
3
RCM3400 RabbitCore Devel. Kit*
1
ATMega328
2
Sensors (CO2,Temp/Humidity, Light)
6
UART to USB IC
2
Resistors/Capacitors/Diodes
~75
Regulator/Power Supplies
8
Relays
10
Opto-isolator
10
LCDs
2
Peripherals
9
Kevin Wray
PARTS LIST
Task
Ryan
Eric
Sensor Board Design
X
X
Program Sensor Board
X
Sensor Board PCB
LCDs
Documentation
Mohamme
d
X
X
X
X
X
X
X
X
X
Sensors
Program CCU
Rob
X
Wi-Fly
Power Board
Kevin
X
X
X
X
X
X
X
Kevin Wray
DIVISION OF LABOR
Ruwaybih Alsulami
SCHEDULE
Milestone I
Parts interfaced with Arduino board
Power strip control boards completed
Milestone II
Sensor boards completed
Sensor boards interface with CCU
User interface completed
Expo
Documentation completed
Expansions?
Ruwaybih Alsulami
SCHEDULE HIGHLIGHTS
QUESTIONS?