Umair Aftab / Mbed 2 deprecated Autus Featured

Dependencies:   TextLCD mbed

Fork of keypad_test by Plamen Totev

Autus

This is the codebase accompanying the project Autus.

Autus is an automated growth chamber for plants.

Features

Control Humidity inside chamber wrt to external humidity. Control Temperature inside chamber. ( Peltier Heaters/Coolers ) Water and shower plants. Control soil humidity. Monitor water tanks level (Load Cell) /media/uploads/umairaftab/frdm_-_new_page1.png

Code Base Features

Fixed timing and CRC for DHT-11 Sensor. Fixed OneWire bug for ds18b20

Cyclic Executive Scheduler with Priority. Async IPC framework for PC App over bluetooth

Fake RTC systick, I was having some trouble with the on board rtc.

/media/uploads/umairaftab/download.png

RTC_improvised/rtcimp.cpp

Committer:
umairaftab
Date:
2014-04-11
Revision:
8:2d462919519e
Child:
9:43c339533f7f

File content as of revision 8:2d462919519e:

#include "mbed.h"


unsigned int sec=0;
unsigned int min=0;
unsigned int hour=0;
void sec_inc() {
    
    if(sec<59){
        sec++;
    }
    else{
        sec=0;
        min++;
        if(min>59){
            min=0;
            hour++;
            if(hour>=24){
                hour=0;
            }
        }
    }
}

void rtcimp_settime(int hour_in , int min_in){
    hour = hour_in;
    min = min_in;
};