Wednesday 10 August 2022

Re-purposing Things

Just over three years ago I wrote about a 3.5in TFT colour screen I had bought for use with the Arduino Mega. You can read about it HERE. The last thing I used it for was to try to show the minute changes in the Earth's magnetic field. That worked but the magnetometer (the bit of hardware which detects the changes) needed to be buried at least 3ft deep away from any other influences, like passing traffic as the metal vehicle body is enough to change the magnetic field.

DSCN0731c

I gave up on that idea for now but when I bought the Airfryer I found myself forever looking up recipes, especially temperatures and cooking times, for various foods. I started to write them down and then a flash of inspiration! Re-purpose the display to show a list of the items of food I will be airfryijng. Well it rook a lot longer than I thought to get an Arduino sketch (program) to work as it was the first time I had worked with arrays which contained more than one character in each entry. As always it was my lack of understanding when and where to define static, unchanging, and changeable integers, arrays and character strings. After the best part of three days reading and testing I finally made it work as I wanted.

IMG_0651

Powered by two lithium rechargeable cells. The green and blue buttons on top allow me to scroll up and down through the list.

IMG_0652

Three days of muttering, reading, rewriting code seems a lot for what ended up as less that 100 lines of code but I learned quite a lot and am finding it a useful addition to the kitchen clutter.

4 comments:

  1. That is brilliant. I keep looking at Airfryers. Which one did you get?

    ReplyDelete
  2. My old recipe box with its hand-written cards would sure be out of place in your hi-tech kitchen, John!! :)
    My sister keeps lists like that on her I phone!

    ReplyDelete
    Replies
    1. Ellen D.: As I have been tinkering with computers since I bought a Sinclair ZX81 in 1981 (was that really 41 years ago? how time flies) I tend to think in that direction first. I also find it much easier to read screen text than my own handwriting these days!

      Delete

Thank you for visiting. Hope you enjoyed the pictures. Any comment, or correction to any information or identification I get wrong, is most welcome. John

Related Posts with Thumbnails