04-25-14, 03:28 PM | #41 |
Administrator
Join Date: Aug 2008
Location: Germantown, WI
Posts: 5,525
Thanks: 1,162
Thanked 374 Times in 305 Posts
|
While I will probably do that (I'll try 6 degrees C), I do want to get this figured out so I can use it on future projects. I plan on making a similar controller for the solar hot water setup I am building and I'd like to get it figured out so I don't have issues with it once its up. It is going to have some very long sensor wire runs which will probably make the problem even worse.
__________________
Current project - To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. & To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Last edited by Daox; 04-25-14 at 03:47 PM.. |
04-26-14, 09:07 PM | #42 |
Supreme EcoRenovator
|
Use the ds18b20 sensors. They are dirt cheap, and they don't drift around like the linear sensors can. Long wire runs are no problem either. The main thing I like about them is that they either work or they don't, rather than drifting or giving spiky readings.
|
04-27-14, 09:31 AM | #43 | |
Supreme EcoRenovator
Join Date: Mar 2009
Location: Portland, OR
Posts: 4,004
Thanks: 303
Thanked 724 Times in 534 Posts
|
Quote:
I didn't realize that you had done any projects with 1-wire. What kind of stuff have you done? -AC
__________________
I'm not an HVAC technician. In fact, I'm barely even a hacker... |
|
04-27-14, 08:58 PM | #44 |
Supreme EcoRenovator
|
Well, lately, my youngest son has been in Lego League. The Lego brick controllers are built for a 5th grader, and he's in high school. So we rigged up the uno to do lego stuff. He can make his machines do anything for cheap, unlike the lego brick stuff, which is severely limited and highly expensive.
1-wire sensors are awesome. Depending on the device, they send and receive data just like an industrial plc unit (without all the extra wires). When the system powers up, they announce their presence. When they are told something, they do it. When they have something to tell, they ask permission. The processor is the master and everything else is a slave. The interface has collision prevention and detection built in, so data integrity is not a problem. And there are only 2 wires that go out remotely: power+data and ground. I have prototyped up so much stuff with arduinos and 1-wire sensors, its hard to know where to start. Temperature and level sensors, addressable switches, light/proximity switches, etc. are all easy as pie. Need 12 temp and 2 level sensors (fuel gauge + rain gauge) plus a hysteresis temp control? No problem: use 12 ds18b20 thermometers, a ds2450 quad a/d converter, and a ds28ea00 digital thermometer with control logic. Tell the sensors how to act, monitor what you want to. Done. The 1-wire sensors and bus are not really made for high-speed communications. If you want to exchange significant amounts of data, I2C or rs-232 or usb does that better. The bus and protocol are made for simplicity, so trying to load the 1 data wire with too much data will bog down everything. That being said, a lot of 8 bit data can be moved as readings and control signals, so don't be afraid the thing isn't going to react quickly enough to feedback or control signals. |
04-27-14, 11:24 PM | #45 |
Supreme EcoRenovator
Join Date: Mar 2009
Location: Portland, OR
Posts: 4,004
Thanks: 303
Thanked 724 Times in 534 Posts
|
It's puzzling to me that there's not a wide array of 1-wire devices. I'd think that there would be humidity sensors, and light sensors, etc.
Seems that they got a good idea going and just stopped. -AC
__________________
I'm not an HVAC technician. In fact, I'm barely even a hacker... |
04-28-14, 04:10 AM | #46 |
Supreme EcoRenovator
|
The interface isn't made to handle lots of traffic. Error detection and correction isn't exactly robust. The interface was not made to control elaborate or complex functions. It was made so that micro-controllers could easily identify unique sensors and read their unique serial numbers. Data flow and control are just beneficial side effects, probably built out of headroom in a small instruction set.
That doesn't mean you can't make it do it, though. Dallas alone has a few devices made that can translate data to and from devices on the slave end. To interface with an array of analog sensors, they make a 4 channel a/d converter. The cool thing about this chip is that the analog inputs not used can be used as addressable switch outputs. They also make counters, to grab wind speed, motor rpm, and the like. |
04-28-14, 09:17 AM | #47 | |
Supreme EcoRenovator
Join Date: Mar 2009
Location: Portland, OR
Posts: 4,004
Thanks: 303
Thanked 724 Times in 534 Posts
|
Quote:
And there are 1-wire ready counters? And there are 1-wire wind speed sensors? And there are 1-wire rpm sensors? In what catalogs can these things be found? Reason I'm interested is that as you already know, having already done countless Arduino applications, the 1-wire library only needs to be loaded once in a sketch, and then it could be used for very many devices. At my local geek-lore repository, DorkbotPDX, absolutely nobody knows of any other 1-wire sensors. This is very interesting news. Where can I find these other 1-wire sensors? -AC
__________________
I'm not an HVAC technician. In fact, I'm barely even a hacker... |
|
04-28-14, 09:43 PM | #48 | |
Supreme EcoRenovator
|
Quote:
HTTP://www.hobby-boards.com/store/pa...re-Basics.html Looking at the stuff now, some of these devices have been discontinued. Here's a thread discussing current trends: Weather Toys Discussion Forum • View topic - DIY 1-Wire Slaves Last edited by jeff5may; 04-29-14 at 06:23 PM.. |
|
04-30-14, 04:05 AM | #49 |
Supreme EcoRenovator
|
Here are some current pages:
http://www.atomicrhubarb.com/project/onewireswitch Einfach-Relaisplatine zum Selbstbau a simple counter: http://www.shellypark.co.nz/?q=node/44 1wire controller on new nano tank biuld - Reef Central Online Community |
05-13-14, 03:51 PM | #50 |
Administrator
Join Date: Aug 2008
Location: Germantown, WI
Posts: 5,525
Thanks: 1,162
Thanked 374 Times in 305 Posts
|
I updated the code to add some additional smoothing functionality. Now, the program will compare each of the 10 sensor readings to the average of the last set of sensor readings. If the temperature varies more then 2 degrees Celsius, it sets that reading back to the average. After all the sensor readings have been evaluated, a new average is calculated. Seeing as how this sensor is in the attic, I don't think the temp swings should be that drastic. However, on the off chance that the temperature actually did jump up more than two degrees C, I added code to bypass the smoothing function and calculate the new average. This is also keeping in mind that this programming will be used in the future for other purposes that might have faster temperature swings.
I'll see how this new code works over the next few days.
__________________
Current project - To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. & To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. |
Tags |
arduino, controller, differential, thermal |
|
|