PID Hardware Photos

I was (and hope to again) working on a PID loop for the dragon’s main light. The idea is simple- vary the heat lamp using a servo and rheostat. Some of you have expressed interest. Here are the photos of the servo setup. The code however is so bad I don’t even know where to start. If you get something working please let me know!

The servo and linkages work perfectly through the full 180 degree range. The issue is the PID code….

Continue reading “PID Hardware Photos”

PID? What is it?

Wikipedia says that a proportional–integral–derivative controller (PID controller) is a generic control loop feedback mechanism (controller) widely used in industrial control systems – a PID is the most commonly used feedback controller. A PID controller calculates an “error” value as the difference between a measured process variable and a desired setpoint. The controller attempts to minimize the error by adjusting the process control inputs.

So what?

Continue reading “PID? What is it?”

Decade Counter!

I wanted a way to have a “rotatable” counter to indicate that the LCC was still looping properly.  I finally found something! A decade counter (as noted in an earlier post)!

Now instead of pulsing one led I have a “spinner” type of effect. I don’t have to keep track of where the “count” is….I just pulse it. Coding this would have been a nightmare. Of course wiring 10 LEDs is a mess but it’s a cool one.

decade counter mess
decade counter mess

Code Updates

I haven’t worked on the Tri-Temp project in a while. I am going to go through and update the code a bit to lower the memory usage based on what I’ve learned for the LCC projects.

The original LCC code will have an update posted soon too. Mostly memory updates and a few control changes. I wasn’t sure if I wanted to bother but since the original LCC is still running my lizard’s climate I figured why not.

LCC v5 is almost ready

Lots of code changes and some hardware. Here’s some of them:

  • Added ShiftBright RGB LED to pins D2, D12 and D13
  • Added code for ShiftBright
  • Updated DEBUG routines
  • Day overhead handling is updated to wait longer before turning off
  • Added yellow and red LED indications for day overhead conditions
  • Night cold conditions are mirrors of day as appropriate
  • Switch 1 is now only for UV lights
  • Switch 2 is only for heat- in my case the heat rock is on all the time and the heat lamp is switched
  • Cleaned some functions of unneeded statements

Version 5 should be released soon. It’s still not running live yet. If you want an advance copy let me know.