I want to control my dew heaters for my optics
Hi.
Forgive me if this has been hashed already, but I could spend ages going through all the threads.
Ok, what I want to do is this. I have computerized my telescope using steppers and·a bs2 stamp as the controller. It is great. However I want to control my dew heaters for my optics with the same stamp. Now the problem I am having is using the Pulse Width Modulation subroutine that controls·my heating elements at the same time as the other routines, such as the "goto mode" routine.
Essentialy I would like for say pin 5 to be constantly sending the PWM to the heater while other routines are being called. Is this possible, or do I need to break out the PIC as a didcated temp controller?
Thanks for any help
Post Edited By Moderator (Chris Savage (Parallax)) : 11/15/2006 12:30:35 AM GMT
Forgive me if this has been hashed already, but I could spend ages going through all the threads.
Ok, what I want to do is this. I have computerized my telescope using steppers and·a bs2 stamp as the controller. It is great. However I want to control my dew heaters for my optics with the same stamp. Now the problem I am having is using the Pulse Width Modulation subroutine that controls·my heating elements at the same time as the other routines, such as the "goto mode" routine.
Essentialy I would like for say pin 5 to be constantly sending the PWM to the heater while other routines are being called. Is this possible, or do I need to break out the PIC as a didcated temp controller?
Thanks for any help
Post Edited By Moderator (Chris Savage (Parallax)) : 11/15/2006 12:30:35 AM GMT
Comments
Have you looked at the MoBoStamp-pe? It includes onboard coprocessors that can do the PWM output for you while the Stamp is busy with other tasks. With the factory-installed firmware, setting up an output for PWM is done via the Stamp's OWOUT statement. You can read about it here.
-Phil
http://www.parallax.com/detail.asp?product_id=28020
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I appreciate the new hardware solutions offered, but I was hoping for a slick little trick of the code that would enable this. If I need to add substanial hardware I will probably just create a dedicated driver out of a pic16f84a as I have a few of them floating around and they are cheap, and my money I like to keep.
I have ran into this before. I have a partially autonomous ROV for lakes that also had similar conflicts between routines. I thought I may be just missing somthing simple in the code, as I am a hack at it.
It would be nice to tie all systems into one chip, but I may be asking too much of any controller, to accomplish such a feat.
In any event I am glad to have finally got here. I look forward reading about others who play with big boy toys like PLC's and microcontrollers. Not many of those people in these parts.
That said, is there feedback from the heater, back to the stamp, in order to maintain the correct temperature? If other tasks that the Stamp does do not take up a high percentage of the processing time, then a little time could go to those other tasks and swapped out with the PWM and heater feedback function. 0.05 second here, 0.1 second there. How much does the heater temperature drift in 0.1 second and is it significant? It could even come down to a bang bang algorithm that tests the heater temperature every 0.05 seconds, and either turns it on for the next 0.05 second (if the temperature is low) or turns it off (if the temperature is high). That would amount to PWM, but on a longer time scale.
I know you don't want to buy anything more, but a chip like the DS1620 can act as a bang-bang thermostat independent of the Stamp, but can also be read or controlled from the Stamp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I am lucky to have a wife who is very proficient in her biz of sewing and such, so she has made me really sweet insulated sheaths for the resistor strips wich keeps the perceptable temp drift low for reasonably small amounts of time.
That being said, the actual goto mode and manual tracking mode would actually comprise a small percentage of the overall processor time. For the fifteen or so seconds it may take to slew to new positions or to engage the servo's for the filters, or the servo for shutter control is minimal in the big scheme of things.
As for temp feedback, no not yet. I have just started to inegrate this heating system, but yes in the next few days I will add feedback. I am not sure of the part number, but the temp sensor I will use is "surplus" from my work were they are used to remotely monitor Battery temps for telco UPS pedestals. It is two wire's with some type of component heat shrunk in the end.
They work well as I have used one for an incubator thermostate for petri dishes. The rct output is arbitrary and needs to be corrolated with a standared temp sensor, but hey, that is what I enjoy most about this hobby. Finding cheap solutions. It may be a huge contrubuter to frustrating times but oh well.
By the way, are you the same Tracy Allen I see all around the internet in regards to this type of thing? If so, it a pleasure to meet you, and thank you for your candid discussion on these topics, you have already helped me more then you may be aware of.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The singularity is close at hand, Genetics, Nanotechnology, Robotics...and I get to be alive to see it.
Use one of the stamps output pins to drive a 555 timer at a given frequency. A couple of resistors and a capacitor and you are 2 or 3 dollars down.
Use this link for details on setting it up in Astable mode:
http://home.cogeco.ca/~rpaisley4/LM555.html
page down to the heading:
“Basic Circuits For The LM555 Timer”
4 circuits down you will find the schematic labeled “Independently variable timing for both portions of the output cycle”.
This circuit costs about $1.00 to build unless you use two pots like in this drawing. But you will gain an immense flexibility in tuning your circuit to the right frequency and duty cycle.
Just an option.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
(Frequently heard from other's)
Tommy, I know it wasn't designed to·x, but can you make it·do x·anyway?
·
Maybe now would be the time to try it out. It seems they are the lego of the pre stamp days. Any older circuits and alot of new ones seem to include them.
Chop Chop
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The singularity is close at hand, Genetics, Nanotechnology, Robotics...and I get to be alive to see it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
A book I recently read talked about the antiquated stature of the observatory. Its dome rotating on old car tires, the dome slits rigged up like sails, and old desk with one of Percival's eyepieces still in it, his marble tomb on the foot path.
It also mentioned that one of the RA drive does have a few flat spots that need to be manhandled. It is hard to imagine sitting for hours on end guiding a scope, plate after plate, and comparing them. Goes to show what passion and patience can accomplish when combined in the propor proportions
So you just happened by the place or are you interested in such things?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The singularity is close at hand, Genetics, Nanotechnology, Robotics...and I get to be alive to see it.
I was up there partly on vacation, partly to work with some people doing research on bats. We have integrated a BS2pe into a system that automatically records bat calls. I've always been interested in astronomy too, and know the constellations and individual stars pretty well. But I haven't gotten into making my own telescopes or running out to freeze my buns on winter nights!
I wonder about your RA drive. Do you use a stepper for that? If so, how often do you have to pulse it?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Post Edited (Tracy Allen) : 11/16/2006 5:08:29 PM GMT
Thankyou. I guess the author is very good at articulating. It was a good book by the way. It was "Seeing In the Dark" by Timothy Ferris.
In the pic of the plaqard, could that by chance be guano droppings on it? What is the intended function of recording that bat calls?
My RA drive is a factory unit that indeed is a stepper mated to a gear box to allow the very slow motion without seeing th pulse of the motor steps in the optics. I have not hacked it yet but will soon as even in 8x speed mode it is sooo slow. Unfourtunetly, without a clucth mechanisim I can not disengage it to allow a stepper to slew the scope fast in the RA axis. I have been basically testing the set up by using a stepper on the secondary input shaft while disconneting the factory one.
I am able to manually drive the scope from the warmth of my own house and view realtime images with a web cam and do planatery photos using stacking sofware, but if I want to do exposures or deepspace I have to litterly go out and couple the secondary input shaft to the RA drive, replace the web cam with a better Nikon ccd cam.
My scope is only a six inch newtonian reflector, but its purpos is to act as a testbed for that day I build the 30 incher in the backyard and need to build my own tracking system to avoid remorgaging the hose to buy one. The whole project seemed like a bang bang bang done thing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The singularity is close at hand, Genetics, Nanotechnology, Robotics...and I get to be alive to see it.