Forum: Geothermal & Heat Pumps
01-03-16, 02:36 PM
|
Replies: 28
Views: 22,765
And that's it for the moment.
It still lacks...
And that's it for the moment.
It still lacks control of the heatpump in cooling mode when the temperature reaches the dewpoint that's to come later (when the summer approaches!)
Hope this helps...
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:33 PM
|
Replies: 28
Views: 22,765
14. OLED.ino
/*
Universal 8 bit Graphics...
14. OLED.ino
/*
Universal 8 bit Graphics Library, u8glib - Universal Graphics Library for 8 Bit Embedded Systems - Google Project Hosting (http://code.google.com/p/u8glib/)
*/
#include...
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:32 PM
|
Replies: 28
Views: 22,765
13. NTCThermistor.ino (still sort of in...
13. NTCThermistor.ino (still sort of in development/test)
///////////////////////////////////////////////////////////////////////////////////////////////////
// NTC Thermistor...
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:30 PM
|
Replies: 28
Views: 22,765
12. Ethernet.ino (part 4)
// send the XML...
12. Ethernet.ino (part 4)
// send the XML file with status
void XML_response(EthernetClient cl)
{
char buf[20];
cl.print(F("<?xml version = \"1.0\" ?>"));
cl.print(F("<inputs>"));...
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:30 PM
|
Replies: 28
Views: 22,765
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:29 PM
|
Replies: 28
Views: 22,765
10. Ethernet.ino (part 2)
//Save settings...
10. Ethernet.ino (part 2)
//Save settings received from web page
//GET /savesettings?defTime=5&defTemp=-2 HTTP/1.1
void saveSettings(char * buf) {
char str1[150];
char *s = str1, *t = NULL;...
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:27 PM
|
Replies: 28
Views: 22,765
9. Ethernet.ino (part 1)
//For ethernet ...
9. Ethernet.ino (part 1)
//For ethernet
#include <SPI.h>
#include <Ethernet.h>
#include "HeatpumpController.h"
// Enter a MAC address and IP address for your controller below.
// The IP...
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:25 PM
|
Replies: 28
Views: 22,765
8. DS1307.ino
#include <Time.h>
#include...
8. DS1307.ino
#include <Time.h>
#include <DS1307RTC.h>
const char *monthName[12] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
uint64_t...
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:25 PM
|
Replies: 28
Views: 22,765
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:24 PM
|
Replies: 28
Views: 22,765
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:23 PM
|
Replies: 28
Views: 22,765
5. BAC1000.ino
#include <Wire.h>
//For...
5. BAC1000.ino
#include <Wire.h>
//For BAC1000 thermometer
#include "BAC1000.h"
NIL_THREAD(threadReadBAC1000, arg) {
while (TRUE) {
{
sendBAC1000Command(READALL, 0, 1, 0, 0, 0, 0);
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:22 PM
|
Replies: 28
Views: 22,765
4. BAC1000.h - header file for BAC1000...
4. BAC1000.h - header file for BAC1000 thermometer
#pragma once
#ifndef _BAC1000_h
#define _BAC1000_h
//RS485 settings
#define RS485TxControl 10 //RS485 Direction control
#define...
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:21 PM
|
Replies: 28
Views: 22,765
3. 24C34EEPROM.ino
#define...
3. 24C34EEPROM.ino
#define AT24C32_I2C_ADDRESS 0x50 // the I2C address of Tiny RTC AT24C32 EEPROM
void EEPROM_write_byte(unsigned int uiAddress, byte bData)
{
int iCount = 0;
do
{...
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:20 PM
|
Replies: 28
Views: 22,765
Last part of HeatpumpController.ino
// Declare stacks for threads
NIL_WORKING_AREA(waThreadMain, 1024);
NIL_WORKING_AREA(waThreadEth, 1024);
NIL_WORKING_AREA(waThreadDS18B20, 128);
NIL_WORKING_AREA(waThreadBAC, 256);...
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:19 PM
|
Replies: 28
Views: 22,765
|
Forum: Geothermal & Heat Pumps
01-03-16, 02:17 PM
|
Replies: 28
Views: 22,765
Code for heatpump controller
Ok, here we go.. This is my code for my heat pump controller. First an explanation of the structure.
There are 9 individual modules (.ino files) that make up the controller. Each one attempts to...
|
Forum: Geothermal & Heat Pumps
11-17-15, 12:19 AM
|
Replies: 28
Views: 22,765
Adding Ethernet is really easy. Either use an...
Adding Ethernet is really easy. Either use an Ethernet shield with a Wiznet W5100 or an ENC28J60 board. There is also a mini Ethernet board with a W5100 on it. I have another mini-project running...
|
Forum: Geothermal & Heat Pumps
11-17-15, 12:00 AM
|
Replies: 28
Views: 22,765
When I was searching for something already...
When I was searching for something already written I came across a couple of examples of this problem. Some had incredible lists of proposed functions only to then die quietly when the task of...
|
Forum: Geothermal & Heat Pumps
11-16-15, 01:04 PM
|
Replies: 28
Views: 22,765
The benefit of having each part of the program...
The benefit of having each part of the program running in its own thread is that it becomes somewhat easier to debug the program as you can disable individual threads and concentrate on the bit you...
|
Forum: Geothermal & Heat Pumps
11-16-15, 12:18 PM
|
Replies: 28
Views: 22,765
|
Forum: Geothermal & Heat Pumps
11-16-15, 01:20 AM
|
Replies: 28
Views: 22,765
Home made heat pump controller
I need a heat pump controller for a flat that I have in the nearby city. I have installed under floor heating as it is probably the most comfortable and efficient heating there is (and it can also...
|