tag:blogger.com,1999:blog-7025390077222270096.post6420973539691873338..comments2023-12-19T13:37:03.195+00:00Comments on Code from an English Coffee Drinker: An Arduino Powered (Scale) Speed TrapMarkhttp://www.blogger.com/profile/02418527698793489162noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7025390077222270096.post-33947677261418858022012-08-06T22:17:10.891+01:002012-08-06T22:17:10.891+01:00Glad your enjoying enough to want the next instalm...Glad your enjoying enough to want the next instalment!<br /><br />The code is a weird mixture of C and C++. It's the standard Arduino code though so it follows any of the tutorials you might find. Essentially when the Arduino is powered up it calls the setup method and then it just keeps on calling the loop method until you pull the power.<br /><br />The track not being to scale is, I agree weird, but something we kind of have to live with in the UK. <a href="http://en.wikipedia.org/wiki/OO_gauge" rel="nofollow">According to Wikipedia</a> this happened because <i>OO describes models with a scale of 4mm = 1 foot (1:76) running on HO scale 1:87 (3.5mm = 1 foot) track (16.5mm/0.650"). This combination came about as early clockwork mechanisms and electric motors were difficult to fit within HO scale models of British prototypes which are smaller than equivalent European and US locomotives. A quick and cheap solution was to enlarge the scale of the model to 4mm to the foot but keep the 3.5mm to the foot gauge track. This also allowed more space to model the external valve gear. The resulting HO track gauge of 16.5mm represents 4 feet 1.5 inches at 4mm to the foot scale, this is 7 inches under scale or is approximately 2.33mm too narrow.</i><br /><br />Oh and don't worry I already have a 3D printing post planned :)Markhttps://www.blogger.com/profile/02418527698793489162noreply@blogger.comtag:blogger.com,1999:blog-7025390077222270096.post-71532360749430831912012-08-06T21:41:21.778+01:002012-08-06T21:41:21.778+01:00Mark this is stunning..blows my little brain anywa...Mark this is stunning..blows my little brain anyway!<br />I'll try and learn from you. Stimulating? This reads like a mega suduko.<br />What code is this?<br />Why isn't your track to scale?<br />Barking mad you are. Don't argue cos I'm older and it takes an older barking mad to recognise a kindred spirit.<br />I see that 3D printers can now make a ball race. perchance they could print your track and scenery.<br />I'm hooked.<br />Next instalment ASAP please.ADRIANhttps://www.blogger.com/profile/07113961163396562781noreply@blogger.com