Archive for Lifestyle

The Goldylock’s Thermometer

Posted in Music with tags , , , , , , , , , , on 09/04/2021 by Baghead Kelly

The ‘Goldylock’s’ thermometer uses a traffic light system to monitor the temperature. It is a simple program that uses the Jaycar XC4520 module to track the temperature in Celsius. Conditional statements output the three LED’s depending on the sensor reading. The serial monitor prints the data and includes a statement from Goldie. Another aspect of this code is that it doesn’t need a library and believe me that’s a good thing.


1 x Arduino Uno or equivalent

1 x XC4520 temperature module (Keyes K853518)

3 x LED’s (I used 5mm)

3 x 220 ohm resistors (or there abouts)

9 x jumper leads



// Goldylocks Thermometer Jaycar XC4494 temperature module

#define sensorPin  A0

#define greenLED 2

#define yellowLED 3

#define redLED 4

void setup()


  pinMode(greenLED, OUTPUT);

  pinMode(yellowLED, OUTPUT);

  pinMode(redLED, OUTPUT);



void loop()


  int reading = analogRead(sensorPin);

  float voltage = reading * 5.0;

  voltage /= 1023.0;

  float temperatureC = (voltage – 0.5) * 10 ;

  Serial.print(temperatureC); Serial.print(“° C “);

  if (temperatureC >= 26) {

    digitalWrite(greenLED, LOW);

    digitalWrite(yellowLED, LOW);

    digitalWrite(redLED, HIGH);

    Serial.println(” Goldylocks says ‘It’s Too Hot’.”);


  else if (temperatureC >= 20 && temperatureC < 26) {

    digitalWrite(greenLED, LOW);

    digitalWrite(yellowLED, HIGH);

    digitalWrite(redLED, LOW);

    Serial.println(” Goldylocks says ‘It’s Just Right’.”);


  else {

    digitalWrite(greenLED, HIGH);

    digitalWrite(yellowLED, LOW);

    digitalWrite(redLED, LOW);

    Serial.println(” Goldylocks says ‘It’s Too Cold’.”);





The parameters can be changed in the code to anything you want, I just thought that this was ‘just right’.

Have fun….

The Zen Of Laughter

Posted in Humor, Lifestyle with tags , on 01/23/2012 by Baghead Kelly
Q: What do you call a boomerang that doesn’t come back? A: a stick

I don’t have a brother but I do have an uncle less than a year older than me which is a great substitute. In my childhood I would often go around to his house and he and his dad would be watching some old re-run on television and wetting their pants with laughter. I couldn’t see what was so funny about the lame jokes and one liners – to me they were predictable and the laughter canned. The memory and the lesson though have stayed with me after all these years; father and son were receptive to laughter and thus were bonded all the more so from that process. Now before I get myself into trouble here I should explain that my own father and I have our fair share of mirth although we were wired differently and our humor was quite different. I also used to have a high old time with my great grandmother watching midget wrestling although she didn’t speak English and I didn’t speak Latvian.

 Worldwide most people would know of Dr. Hunter Adams from the “Patch Adams”  movie with Robin Williams. The good doctor sure understood the link between wellbeing and laughter, he established the Gesundheit! Institute in 1971 and in 1995 Indian physician Madan Kataria launched the first “Laughter Club” which has become a phenomenon in its own right. The cult of laughter is catching on but for me the revelation could be traced back to my childhood.
Now my own perspective is somewhat rudementary but I do know two important things; (1) that you have to be actively receptive to a good laugh and (2) that you have to nurture it in your relationships. I’ve certainly done that with my wife and I’m sure it’s one of the reasons that our marriage has survived. Its probably the key to any successful relationship. As for our own heir apparent, instilling the joys of laughter into his upbringing as been a wonderful experience. However he did  have to have the lesson that it was a fine line between having a good laugh at school and being the ‘class clown’.
I would really like to finish my little homely with a really fantastic joke but… guessed it, I can’t think of one off the top of my head. Anyway that would be contrived and it has to be more natural than that. Instead I think that I’ll sign off with a plea and a challenge. I would ask that you start your day a little more receptive to a good laugh and run with it. As for the challenge; see if you can bring someone’s mood up a few notches with humor, I’m sure your day will be more enriched for it.