I'll would use the 16F877A Pic I'll need a lot of program space and
I/O lines. LCD display and a 4 by 4 keyboard to allow you to set the
different temperatures for turning of the fan and opening the door. I'll
be using the SHT11 temperature/humidity sensor. I only need one of them
inside and I'll use DS18B20 temperature for the outside readings.
I've only done a RS232 interface that send the data to a PC . On
this project we need to send sent points to the PIC also. It will have
a data logger in the VB6 app also. The way my schedule is right now I
will not be able to get it done until the end of January or a little
after. I have to make a PC board for it by hand. No problem ! I have
that process down .
Here is the parts brake down so far
16F877A $
STH11 $6
DS18B20 $
MAX-232 IC $
resistors etc $5
connectors $2
12volt supply $5
LCD module $5
Dip reed $
DTDP relay 12 volt $2
or solid state same price 5 amp.
PC board materisal $4
-----------------------
APX. $07
MY time in hours = 80 value ?
If you need it in a box 10 more hours.
all the cables can be telephone wire. That will help keep the cost down.
If you want I could send you a picture of another PCBoard I made or
you can look at my web page and to see if my board are good enough for
you. at http://home.columbus.rr.com/cbeener/page3.html
nicksanspam@ece.villanova.edu wrote:
>
>
>>>>I would use a 16F84A Microchip and use the temperature sensor DS18B10
>>>>1-wire digital temperature sensor they run around $.50 each and you
>>>>could connect up to 20 or so if need be to the same two wires. here is
>>>>the code for that.I didn't declare any variables in the source code but
>>>>that should get you started. The 16F84A has 12 bits of I/O EPROM and
>>>>Ram build in. It cost $ it can be programmed with you serial port and
>>>>a few other part. the Assembler is MPLAB it will produce the Hex code
>>>>to program the PIC. It is free from them. It has a great debugger in it
>>>>also. To open and close the door have the Pic drive a Dip Relay . They
>>>>only take about 5ma. to operate.
>>>>
>>>> LIST PF84A ; 16F84A Runs at 4 MHz
>>>> INCLUDE "p16f84a.inc"
>>>> __CONFIG _PWRTE_ON & _XT_OSC & _WDT_OFF ; uses 10 MHz crystal
>>>> ERRORLEVEL -224 ; supress annoying message from tris
>>>> ERRORLEVEL -302 ; supress message from page change
>>>>;-----------------------------------------------------------------
>>>>
>>>>; declar any varables needed
>>>>
>>>>;---------------------------------------------------------------
>>>> org 0
>>>>
>>>>;--------------------------------------------------------------
>>>>
>>>>Main:
>>>> call Init ; initialize ports, set up timer
>>>>
>>>> CALL INITDS1820 ; init DS1820
>>>> MOVLW 0CCH ; skip ROM
>>>> MOVWF O_BYTE
>>>> CALL OUT_BYTE...
>>>
>>>
>>>Thanks! How much, and when can you deliver it?
>>>
>>>Nick
>
>
>
>>If you reallllllllly need it Nick I could do it.
>
>
> Great :-) Thank you Charles!
>
>
>>But I really need more info on the project. What kind of user interface ?
>>LCD 1 to 4 line display with keyboard ? A PC serial interface ?
>
>
> Both :-)
>
>
>>If so ? what do you want on the options and what do you want it to look like ?
>
>
> It would automatically open a garage door with an existing electric opener
> when the sun shines and close the door at night. The door would have clear
> polycarbonate over the outside frame. We need a sun sensor (eg a thermostat
> in a glass box) and an open-or-closed door position sensor (eg a reed switch
> with a magnet) and a relay output that can short the garage door opener
> button for 1 second (to simulate pushing the button.)
>
> Later, we might want to turn on an exhaust fan to keep the garage from
> overheating, and maybe turn on the fan at night in summertime for cooling,
> when the outdoor temp is less than the indoor temp, and maybe turn on
> the fan in spring and fall for heating when the outdoor temp is greater
> than the indoor temp and the dew point of the outdoor air (as measured
> with a humidity sensor) is greater than the indoor surface temps (to avoid
> condensation on those surfaces.) Onset (www.onsetcomp.com) sells a $2.31
> SHT75 12 bit digital combined RH and temp sensor intended for dew point
> calculations.
>
> The last function could be valuable to many homeowners in controlling
> a whole house fan vs an AC or furnace when weather conditions are suitable.
> Liz Robinson of the Philadelphia Energy Coordinating Agency and professor
> Murray Milne at UCLA and Jeff Christian at Oak Ridge would love to get
> their hands on a box like this. Lots of people could use it for cooling
> and heating and energy-efficient dehumidification. In the Southwest, it
> might control an indoor mister as well as the fan for evaporative cooling.
>
> I would like to program it in BASIC (the dew point calculation could use
> a logarithm function) and end up with a standalone box with a power supply
> and a 4 character display and a keypad. I don't know much about PICs, but
> I have the impression it could be a 16F77 or 16F877A.
>
>
>>Your a person with a good head . You should be able to do this
>>project in less than a week after you get the parts . RIGHT ?
>
>
> Maybe a month :-) But I'd rather do incidence angle calculations for
> evacuated tube collectors or help people solar heat houses.
>
> Thanks again,
>
> Nick
>
No I'm not slow I just have other project to work on also, I work
40 to 48 hours a week at my main job. If you looked at my web page you
would see that I do all my PCB by hand. All the traces are drawn with a
paint pin. I do have PCB software But I figured that this was a one of a
kind project. Its been years since I've done a project that required a
commercial PCB. and in low numbers it makes the very pricey.
Morris Dovey wrote:
> Charles Beener wrote:
>
>> APX. $07
>> MY time in hours = 80 value ?
>> If you need it in a box 10 more hours.
>
>
> Hmm. Methinks you're a slow worker (or need to get hold of some PCB
> layout software ASAP)
>
> Would you care to do a quantity pricing? I'm interested, too; and if it
> looks good to me I'll want more than one...
>
nicksanspam@ece.villanova.edu wrote:
>
>>>>I would use a 16F84A Microchip and use the temperature sensor DS18B10
>>>>1-wire digital temperature sensor they run around $.50 each and you
>>>>could connect up to 20 or so if need be to the same two wires. here is
>>>>the code for that.I didn't declare any variables in the source code but
...
Perhaps you guys are looking at it from the wrong direction.
Certainly these kind of controls requirements can't be unique.
Perhaps there is already an off the shelf product that does
exactly this kind of thing and is available at an affordable
cost.
Alternatively, why not use any of the various small computers
that have been produced in the last 20 years. Many of the oldest
ones were designed to operate tape players and therefore have a
low voltage relay built in as well as various other inputs.
Since they are old, slow and obsolete, these are often available
at very low costs. As a computer, they can be programed to do
any sequence you would like.
For instance the old TRS-80 Model 100 had a clock (of sorts),
parallel, serial and cassette interfaces as well as an LCD
screen and keyboard. They're often found for less than $0.
Another possible (and more modern) would be to use any of the
myriad of PDA's out there. Most of them have some kind of serial
interface and software developers kit.
A quick search found me this (expensive) interface for the 1-wire
and Palm Pilots.
http://embeddeddatasystems.com/Merchant2/merchant.mvc?store_codeS&screen=PROD&product_code=HA7MP
Anthony
Yes they could do that there are many 1-wire chips out there you
can used . Read temperatures at different locations and they have
Ibuttons and switches that are one wire also here is a list of the devices.
Group
code Part no. what the device can do.
01, DS1990A, Serial number iButton
01, DS2401, Silicon Serial Number
02, DS1991, MultiKey iButton
04, DS1992, 1Ki Bit Memory iButton
05, DS2405, Addressable Switch
06, DS1993, 4Ki Bit Memory iButton
08, DS1994, 4Ki Bit Memory/Clock iButton
09, DS1422, 1Ki Bit Add-Only UniqueWare Button
09, DS1982, 1Ki Bit Add-Only EPROM iButton
09, DS2502, 1Ki Bit Add-Only Memory
0A, DS1995, 16Ki Bit Memory iButton
0B, DS1985, 16Ki Bit Add-Only EPROM iButton
0B, DS2505, 16Ki Bit Add-Only Memory
0C, DS1996, 64Ki Bit Memory iButton
0F, DS1986, 64Ki Bit Add-Only EPROM iButton
0F, DS2506, 64Ki Bit Add-Only Memory
10, DS1820, One-Wire Digital Thermometer
10, DS1920, Temperature iButton
12, DS2406, Dual Addressable Switch plus 1Ki Bit memory
12, DS2407, Dual Addressable Switch plus 1Ki Bit Memory
14, DS1971, 256-Bit EEPROM iButton
14, DS2430A, 256-Bit 1-Wire EEPROM
16, DS19540??, Java??
18, DS1963S, SHA iButton
1A, DS1963L, 4Ki Bit Monetary iButton
1B, DS2436, Battery ID/Monitor Chip
1C, DS2422, 1Ki Bit 1-Wire RAM with Counters
1D, DS2423, 4Ki Bit 1-Wire RAM with Counters
1E, DS2437, Smart Battery Monitor
1F, DS2409, MicroLAN Coupler
20, DS2450, 1-wire quad A/D converter
21, DS1921, Thermocron (temp recorder) iButton
22, DS1822, Econo 1-wire digital thermometer
23, DS1973, 4Ki Bit mem
23, DS2433, 4Ki Bit EEPROM
81, DS1420, Serial ID Button
82, DS1425, Multi iButton
84, DS1427, Time iButton
89, DS1982U, 1Ki Bit Add
89, DS2502-E64, IEEE EUI-64 Node Address Chip
89, DS2502UNW, 1Ki Bit Add-Only
8B, DS1985U, 16Ki Bit Add
8B, DS2505UNW, 16Ki Bit Add-Only
8F, DS1986U, 64Ki Bit Add
8F, DS2506UNW, 64Ki Bit Add-Only
96??, DS19550??, Java??
??, DS1962, 1Ki Bit Monetary iButton
??, DS1963, 4Ki Bit Monetary iButton
NA, DS1821, Programmable digital thermostat
NA, DS2434, Battery Identification Chip
NA, DS2435, Battery ID Chip with Time/Temperature Histogram
NA, DS2480, Serial 1-Wire Line Driver
That device HA7MP - Palm 1-Wire Host Adapter looks
like it do all.
Thanks for the web page.
Anthony Matonak wrote:
> nicksanspam@ece.villanova.edu wrote:
>
>>
>>>>> I would use a 16F84A Microchip and use the temperature sensor DS18B10
>>>>> 1-wire digital temperature sensor they run around $.50 each and you
>>>>> could connect up to 20 or so if need be to the same two wires. here
>>>>> is the code for that.I didn't declare any variables in the source
>>>>> code but
>
> ...
>
> Perhaps you guys are looking at it from the wrong direction.
> Certainly these kind of controls requirements can't be unique.
> Perhaps there is already an off the shelf product that does
> exactly this kind of thing and is available at an affordable
> cost.
>
> Alternatively, why not use any of the various small computers
> that have been produced in the last 20 years. Many of the oldest
> ones were designed to operate tape players and therefore have a
> low voltage relay built in as well as various other inputs.
> Since they are old, slow and obsolete, these are often available
> at very low costs. As a computer, they can be programed to do
> any sequence you would like.
>
> For instance the old TRS-80 Model 100 had a clock (of sorts),
> parallel, serial and cassette interfaces as well as an LCD
> screen and keyboard. They're often found for less than $0.
>
> Another possible (and more modern) would be to use any of the
> myriad of PDA's out there. Most of them have some kind of serial
> interface and software developers kit.
>
> A quick search found me this (expensive) interface for the 1-wire
> and Palm Pilots.
>
http://embeddeddatasystems.com/Merchant2/merchant.mvc?store_codeS&screen=PROD&product_code=HA7MP
>
>
> Anthony
>
>>>>I would use a 16F84A Microchip and use the temperature sensor DS18B10
>>>>1-wire digital temperature sensor they run around $.50 each and you
>>>>could connect up to 20 or so if need be to the same two wires. here is
>>>>the code for that.I didn't declare any variables in the source code but
>>>>that should get you started. The 16F84A has 12 bits of I/O EPROM and
>>>>Ram build in. It cost $ it can be programmed with you serial port and
>>>>a few other part. the Assembler is MPLAB it will produce the Hex code
>>>>to program the PIC. It is free from them. It has a great debugger in it
>>>>also. To open and close the door have the Pic drive a Dip Relay . They
>>>>only take about 5ma. to operate.
>>>>
>>>> LIST PF84A ; 16F84A Runs at 4 MHz
>>>> INCLUDE "p16f84a.inc"
>>>> __CONFIG _PWRTE_ON & _XT_OSC & _WDT_OFF ; uses 10 MHz crystal
>>>> ERRORLEVEL -224 ; supress annoying message from tris
>>>> ERRORLEVEL -302 ; supress message from page change
>>>>;-----------------------------------------------------------------
>>>>
>>>>; declar any varables needed
>>>>
>>>>;---------------------------------------------------------------
>>>> org 0
>>>>
>>>>;--------------------------------------------------------------
>>>>
>>>>Main:
>>>> call Init ; initialize ports, set up timer
>>>>
>>>> CALL INITDS1820 ; init DS1820
>>>> MOVLW 0CCH ; skip ROM
>>>> MOVWF O_BYTE
>>>> CALL OUT_BYTE...
>>>
>>>
>>>Thanks! How much, and when can you deliver it?
>>>
>>>Nick
>
>
>
>>If you reallllllllly need it Nick I could do it.
>
>
> Great :-) Thank you Charles!
>
>
>>But I really need more info on the project. What kind of user interface ?
>>LCD 1 to 4 line display with keyboard ? A PC serial interface ?
>
>
> Both :-)
>
>
>>If so ? what do you want on the options and what do you want it to look like ?
>
>
> It would automatically open a garage door with an existing electric opener
> when the sun shines and close the door at night. The door would have clear
> polycarbonate over the outside frame. We need a sun sensor (eg a thermostat
> in a glass box) and an open-or-closed door position sensor (eg a reed switch
> with a magnet) and a relay output that can short the garage door opener
> button for 1 second (to simulate pushing the button.)
>
> Later, we might want to turn on an exhaust fan to keep the garage from
> overheating, and maybe turn on the fan at night in summertime for cooling,
> when the outdoor temp is less than the indoor temp, and maybe turn on
> the fan in spring and fall for heating when the outdoor temp is greater
> than the indoor temp and the dew point of the outdoor air (as measured
> with a humidity sensor) is greater than the indoor surface temps (to avoid
> condensation on those surfaces.) Onset (www.onsetcomp.com) sells a $2.31
> SHT75 12 bit digital combined RH and temp sensor intended for dew point
> calculations.
>
> The last function could be valuable to many homeowners in controlling
> a whole house fan vs an AC or furnace when weather conditions are suitable.
> Liz Robinson of the Philadelphia Energy Coordinating Agency and professor
> Murray Milne at UCLA and Jeff Christian at Oak Ridge would love to get
> their hands on a box like this. Lots of people could use it for cooling
> and heating and energy-efficient dehumidification. In the Southwest, it
> might control an indoor mister as well as the fan for evaporative cooling.
>
> I would like to program it in BASIC (the dew point calculation could use
> a logarithm function) and end up with a standalone box with a power supply
> and a 4 character display and a keypad. I don't know much about PICs, but
> I have the impression it could be a 16F77 or 16F877A.
>
>
>>Your a person with a good head . You should be able to do this
>>project in less than a week after you get the parts . RIGHT ?
>
>
> Maybe a month :-) But I'd rather do incidence angle calculations for
> evacuated tube collectors or help people solar heat houses.
>
> Thanks again,
>
> Nick
>