What is safe?

STC-1000 Temperature Controller
STC-1000 Temperature Controller

Designing and building equipment for aquaculture means I use controllers. Quite a few controllers, dozens upon dozens of them, little boxes meant to keep some parameter in range. Temperature, pH, water level, whatever, a little box with a display, a few buttons, and a relay in the back to turn something on when needed to control the outcome.

Industrial suppliers will sell you a controller for just about anything, there are catalogs full of them, from inexpensive to thousands of dollars you can buy the solution to your needs. Buy one, wire it in, adjust a few setpoints and you have everything under control.

Enter the STC-1000, a little cheap temperature controller found on eBay, Amazon, everywhere. It comes in a bunch of different versions, need readout in Farenheight or Centigrade? No problem. I have no idea who makes it, some asian factory somewhere. It is available in a hundred different brand names from hundreds of different sellers for somewhere between $12 and $25, all absolutely identical as far I as can tell.

The STC-1000 is cheap. Cheap enough that I am somewhat suspect of their reliability. I do not buy them for production line bioreactors and grow tanks, places where I cannot trust a cheap controller with a few thousand dollars worth of product. For critical uses I buy full industrial rated temperature controllers from a reputable supplier for around $100 each.

But for experimental setups? Temporary research hacks built with more limited budgets? There are a couple dozen of these STC-1000 controllers around the place. They are easy to use with simple configurations, seem to be accurate holding calibration, and I have not had one fail yet.

So how do you sell a device like this for about $15?

Time for a little deconstructive analysis…

Continue reading “What is safe?”

Captian Marvel

The Keck domes can be controlled three ways… From a set of manual controls on a panel at the base of the dome, via computer control when observing, and from a radio controller that you can use from anyplace in the dome. This radio controller has long been called Capt. Marvel around Keck, the original versions looked like a prop from a 1930’s sci-fi serial movie.

The dome radio controller, called Capt. Marvel
The dome radio controller, called Capt. Marvel
The radio controller is actually a crane controller, a standard unit you can buy that can safely control large machinery, including enormous factory or dockyard cranes. Being a standard unit it has a number of safety and security features built-in… Fail-safe operation, coded communications, and more insure reliable operation.

The unit is standard, the panel is custom. When buying the transmitter you need to specify the front panel layout including the switches and labels for your application. Thus our transmitter has a panel arranged to our specification with switches for dome rotation and opening the shutters. In the middle is a bright red-emergency stop switch to insure you can immediately stop everything if something goes wrong.

Continue reading “Captian Marvel”

Bang-Bang

I took a break from working with a “big” microcontroller to work with a little one. The PIC12C671 is definitely little when compared with the PIC18F66K80 I am using in the GenPIC utility PCB. With less than 2k of program space and a mere 128 bytes of RAM it is definitely limited. Consider that the chip only has eight pins, two of which are power and ground, leaving six I/O pins to get the job done. No problem, I only need two I/O pins for this task and that few bytes of RAM is more than enough!

A simple heater using a bang-bang controller.
A simple heater using a bang-bang controller.
This project is pretty basic… A bang-bang heater controller. This simple form of controller simply turns on and off as the temperature (or some other controlled parameter) goes up and down, there is no attempt to vary the output, all or nothing. Bang on, bang off, or simply a bang-bang controller as it is known in the trade.

A bang-bang controller is inherently reliable and stable because it uses two different control setpoints, a high and a low. Because these control points are separated by a large margin, called hysteresis, the controller will not oscillate or rapidly turn on and off. In this case the heater will not turn on until the temperature falls below 10°C and will not turn back off until the temperature rises above 15°C. That five degree margin is called hysteresis, and ensures a good period of time between on and off.

Continue reading “Bang-Bang”