ThadeusB
member
Reged: 11/14/12
Loc: Somerset, UK
|
Re: How to make an automatic dew controller - Arduino
[Re: ThadeusB]
#5580804 - 12/20/12 02:35 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Paul,
I found this one on fleabay, looks the same device:
http://www.ebay.co.uk/itm/Wireless-CSR-mainstream-Bluetooth-V2-0-RF-Transceiv...
So, New year may seeing me going this routs too. Also found the RTC arduino compatible module, very cheap.
|
Pauls72
sage
   
Reged: 10/28/07
Loc: LaPorte, IN
|
Re: How to make an automatic dew controller - Arduino
[Re: ThadeusB]
#5580844 - 12/20/12 02:51 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Quote:
Paul,
I found this one on fleabay, looks the same device:
http://www.ebay.co.uk/itm/Wireless-CSR-mainstream-Bluetooth-V2-0-RF-Transceiv...
So, New year may seeing me going this routs too. Also found the RTC arduino compatible module, very cheap.
Yup, looks like the exact same one.
On many of these modules the boards may be slightly different, but electrically and software command wise they are the same.
Quote:
Is there an existing program for send commands from a PC? Or is this something else that has to be developed?
In the top of the serial monitor window there is a line where you can input text (or in our case commands) and click on the send button.

By the way, if you look at my dew controller, the RTC and external EEPROM modules are wrapped in electrical tape and placed vertically on edge along the right hand side. Talk about not having room.
|
Pauls72
sage
   
Reged: 10/28/07
Loc: LaPorte, IN
|
Re: How to make an automatic dew controller - Arduino
[Re: Pauls72]
#5581598 - 12/20/12 10:45 PM Attachment (26 downloads)
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Phil,
I found a few variables that I missed when replacing the names out of the code and making them all generic.
Paul
|
ThadeusB
member
Reged: 11/14/12
Loc: Somerset, UK
|
Re: How to make an automatic dew controller - Arduino
[Re: Pauls72]
#5582346 - 12/21/12 11:41 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Paul, Yes, I'm aware of the serial monitor Send line, just haven't used it yet.I'm starting to look at he code required to do this 2 way communication.
Phil
|
ThadeusB
member
Reged: 11/14/12
Loc: Somerset, UK
|
Re: How to make an automatic dew controller - Arduino
[Re: ThadeusB]
#5583908 - 12/22/12 11:27 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Thanks for the new code Paul. I keep that on file for the time being. I'll probably get the RTC in the New Year, and perhaps get the BlueTooth items too.
Phil
|
ThadeusB
member
Reged: 11/14/12
Loc: Somerset, UK
|
Re: How to make an automatic dew controller - Arduino
[Re: ThadeusB]
#5604069 - 01/04/13 04:05 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Paul, I'm now taking a look at the latest code posted: 20121220
It appears now that the hex codes for the Dallas sensors no longer need to be defined. Previous code for my sensors:
DeviceAddress LX200 = { 0x28, 0xEB, 0xF5, 0x4A, 0x04, 0x00, 0x00, 0xDE }; DeviceAddress ED80 = { 0x28, 0x2A, 0xDC, 0x4A, 0x04, 0x00, 0x00, 0x7D }; DeviceAddress EP = { 0x28, 0xC0, 0xDD, 0x4A, 0x04, 0x00, 0x00, 0xD4 }; DeviceAddress Box = { 0x28, 0x4C, 0xF2, 0x4A, 0x04, 0x00, 0x00, 0x56 };
New code:
DeviceAddress Port1In, Port2In, Port3In, Port4In;
Where the device addresses are variables, meaning that if different straps + Dallas sensors are used, the addresses are automatically determined by the code in setup and the main loop.
Am I understanding this correctly Paul?
Phil
|
Pauls72
sage
   
Reged: 10/28/07
Loc: LaPorte, IN
|
Re: How to make an automatic dew controller - Arduino
[Re: ThadeusB]
#5604258 - 01/04/13 08:45 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Phil, You are correct.
Here is where basic setup is done:
OneWire oneWire(ONE_WIRE_BUS); DallasTemperature sensors(&oneWire); DeviceAddress Port1In, Port2In, Port3In, Port4In;
Then here is where we search to see how many sensors are present, up yo 4. This is the actual search for the first sensor. !sensors.getAddress(Port1In, 0)
void setup() { Serial.begin(9600); Wire.begin(); sensors.begin(); //Search for devices on the bus and assign based on an index lcd.begin(16,2); resetLCD(); lcd.createChar (0, upSymbol); // load special character to the LCD - an up arrow used to indicate power up time in front of the power uped time on the display. resetLCD(); lcd.print("Sensors Found: "); if(!sensors.getAddress(Port1In, 0)){Serial.println("Unable to find address for Device 0"); lcd.setCursor(0,1); lcd.print("No Sensors ");}else {ts0=1;lcd.setCursor(0,1); lcd.print("#1 ");}; if(!sensors.getAddress(Port2In, 1)) Serial.println("Unable to find address for Device 1"); else {ts0=ts0+1; lcd.print("#2 ");}; if(!sensors.getAddress(Port3In, 2)) Serial.println("Unable to find address for Device 2"); else {ts0=ts0+1; lcd.print("#3 ");}; if(!sensors.getAddress(Port4In, 3)) Serial.println("Unable to find address for Device 3"); else {ts0=ts0+1; lcd.print("#4 ");}; delay(displayDelay2); sensors.setResolution(Port1In, 10); sensors.setResolution(Port2In, 10); sensors.setResolution(Port3In, 10); sensors.setResolution(Port4In, 10);
This should give you an idea of how the sensors/library can be used. http://milesburton.com/Dallas_Temperature_Control_Library
Paul
|
ThadeusB
member
Reged: 11/14/12
Loc: Somerset, UK
|
Re: How to make an automatic dew controller - Arduino
[Re: ThadeusB]
#5604442 - 01/04/13 10:10 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Paul,
I Have now run the sketch after tweaking for my naming. It does exactly what I thought. This is a really useful feature Paul, when using the unit on different scopes with different straps.
I have tried putting in the few lines of code - just 7 -for the IR keypad. However, It won't compile as the sketch is now to big; 33,268 bytes. So, it looks like something will have to go in order to implement the keypad; I may remove all RTC stuff, as I don't think I really need that.
More later.
Phil
|
ThadeusB
member
Reged: 11/14/12
Loc: Somerset, UK
|
Re: How to make an automatic dew controller - Arduino
[Re: ThadeusB]
#5611327 - 01/08/13 02:41 AM Attachment (22 downloads)
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Hi Paul, I have made a few very small changes to make things ordered and logical. I had been thrown slightly, by the port order not matching pinMode:-
in the last version, pinMode order is 4,5,6,13 (logical) In the void setup and void loop, the port order was 5, 6, 4, 13. I have changed them all so that they match the pinMode order.
It is now easy to determine which sensor and strap relates to the outputs.
My file with new comments is attached.
Phil
|
AstroShomy
member
Reged: 11/30/12
|
Re: How to make an automatic dew controller - Arduino
[Re: ThadeusB]
#5636958 - 01/22/13 01:54 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
I am so glad I have found this topic. I read all the posts once, and will read them a couple of more times, just to make sure I understand all that I need to do to make this controller. I hope I will get your help if needed. For start, I have ordered the Uno. It will arrive in two weeks. In the meantime, I will try to order other components, and then join the team 
Thanks!
|
AstroShomy
member
Reged: 11/30/12
|
Re: How to make an automatic dew controller - Arduino
[Re: AstroShomy]
#5637301 - 01/22/13 04:36 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Could you please tell me if I will be able to use this shield http://postimage.org/gallery/22fqzgo2/
Thanks!
|
ThadeusB
member
Reged: 11/14/12
Loc: Somerset, UK
|
Re: How to make an automatic dew controller - Arduino
[Re: AstroShomy]
#5638773 - 01/23/13 11:52 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Hi AStroShomy, You would be best getting one without the breadboard on top, such as this one:-
http://www.ebay.co.uk/itm/190694443142?ssPageName=STRK:MEWAX:IT&_trksid=p...
On this type you make a solder job of fitting the components.
|
Pauls72
sage
   
Reged: 10/28/07
Loc: LaPorte, IN
|
Re: How to make an automatic dew controller - Arduino
[Re: AstroShomy]
#5638774 - 01/23/13 11:52 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Quote:
Could you please tell me if I will be able to use this shield http://postimage.org/gallery/22fqzgo2/
Thanks!
That will work for prototyping, testing or temporary setup. However, if you are making a permanent configuration, I would suggest a shield that you can solder the wires/components into. Just my own personal preference.
|
ThadeusB
member
Reged: 11/14/12
Loc: Somerset, UK
|
Re: How to make an automatic dew controller - Arduino
[Re: Pauls72]
#5638788 - 01/23/13 12:00 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Snap!
|
AstroShomy
member
Reged: 11/30/12
|
Re: How to make an automatic dew controller - Arduino
[Re: ThadeusB]
#5639178 - 01/23/13 04:15 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
The breadboard is actually optional... I can use this shield without it...
|
Ptb
newbie
Reged: 02/19/13
|
Re: How to make an automatic dew controller - Arduino
[Re: AstroShomy]
#5688465 - 02/19/13 08:36 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Hi guys,
I have been thinking of doing something like this for awhile, but this has taken it to the next level and beyond.
Great thread. Do you have a complete circuit diagram for your latest version ?
I found many individual sketches in here but I couldnt see a latest and greatest all in one circuit diagram.
Thanks in advance
PTB
|
drbyyz
sage

Reged: 11/04/12
Loc: Summerville, SC
|
Re: How to make an automatic dew controller - Arduino
[Re: Ptb]
#5688580 - 02/19/13 09:52 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Quote:
Hi guys,
I have been thinking of doing something like this for awhile, but this has taken it to the next level and beyond.
Great thread. Do you have a complete circuit diagram for your latest version ?
I found many individual sketches in here but I couldnt see a latest and greatest all in one circuit diagram.
Thanks in advance
PTB
+1 for that request. I've finished my homemade heating strip that fits nicely around my corrector plate and is powered by a 12V ON/OFF power supply. Next part of this project is to incorporate my Arduino and some temp/humidity sensors to regulate the power supply.
|
Pauls72
sage
   
Reged: 10/28/07
Loc: LaPorte, IN
|
Re: How to make an automatic dew controller - Arduino
[Re: drbyyz]
#5700380 - 02/25/13 06:37 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
OK, I made one consolidated diagram of everything. Hopefully this will work you you guy's. http://michiana-astro.org/Projects/DewCtrl/Dew-All-In-One.pdf
Should you need it, here is the Arduino Uno R3 schematic. http://michiana-astro.org/Projects/DewCtrl/Arduino_Uno_Rev3-schematic.pdf
|
Ptb
newbie
Reged: 02/19/13
|
Re: How to make an automatic dew controller - Arduino
[Re: Pauls72]
#5703825 - 02/27/13 04:43 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Paul,
Exactly what I was hoping for. I'll get cracking on it.
Thanks very much.
Cheers
PTB
|
AstroShomy
member
Reged: 11/30/12
|
Re: How to make an automatic dew controller - Arduino
[Re: Ptb]
#5770593 - 04/01/13 11:43 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Hi guys,
After some time, I managed to get all that I needed and I managed to connect the Arduino, Sparkfun's Protoshield, DHT22 and one wire sensor (I have also bought the real time module with EEPROM, bit I will include that later). Now, could somebody tell me what the next step is? Is it possible to use any of your sketches posted here or I need to start over? If so, could I get some help regarding the basic sketch which would include LCD, 4 onewire sensors, and DHT22? I would like to have temperatures shown in Celsius, regardless of the method.
|