Displaying posts categorized under


Arduino Multi-function Shield

I recently got exposed to Arduino programming and hardware design at the 2019 National Garden Railway Convention in Portland, OR. Geoff Bunza (Blog: https://model-railroad-hobbyist.com/blog/geoff-bunza YouTube: https://www.youtube.com/channel/UCKzeYLMEPxWGilqZTNuG0JA) held an Introduction to Arduino in Model Railroading clinic. As the Clinic Chairman, I offered to help during the presentations in any way I could. Because I’ve been programming […]

Hacker’s Delight

and the Arduino (GCC Compiler) I got a new (used, but new to me) book about computer coding: Hacker’s Delight by Henry S. Warren Jr. This is one of those books that I will read most of more than once, because the material covered is very technical and delves deeply into the intricacies of programming […]

Cut Optimization

This past weekend, I was thinking about cut optimization. This is a method for planning cuts to produce the most pieces of given sizes out of a quantity of material of some length with minimum waste. This was brought about by the planning process involved in building a new garden railway trestle. (I’ll cover the […]

One more Javascript function

This function will format a value expressed as feet (with decimals) into feet and inches. // Convert feet (decimal) into feet and inches function toString(value) { var abs = Math.abs(value); // Round to nearest 0.1 inch var rounded = Math.round(120 * abs) / 120; var feet = Math.floor(rounded); var inches = 12*(rounded – feet); return […]