Home | Links | Contact |

Printed from www.nzmeccano.com

Top Home Bottom

Introducing the Arduino Microcontroller

(Author: David Couch)

Introducing the Arduino Microcontroller

by David Couch, Nelson, New Zealand

Version 1.5  28 May 2019

Figure 1 The Arduino Mega, the largest member of the Arduino microcontroller family

The combination of Meccano and computers has many exciting possibilities: remote controlled models, automated models for exhibitions, game-playing and puzzle-solving machines, robots and so on. Unfortunately many Meccano builders have the impression that using computers requires a lot of technical knowledge of electronics and computer programming. That may have been true twenty years ago, but things have changed a lot. In these documents I will explain how you can obtain a computer and use it to control your Meccano models, with no knowledge of electronics and with the programming being much easier than you might have thought.

Complete microcomputer systems are now available in the form of a small board, in size somewhere between a credit card and a playing card (Figure 1). The most suitable kind for use with Meccano are microcontrollers – microcomputers specially designed to connect to motors, switches and many other devices. They have become very inexpensive, with a basic microcontroller costing as little as £3 or $NZ5 - the price of a cup of coffee. There are several microcomputer systems available which could be used to control models. I recommend the one called Arduino because

Getting started with the Arduino

However much experience you have with computers, a good way to get started with the Arduino is to buy a starter kit or experimenter’s kit. The kit contains an Arduino microcontroller and a large collection of devices such as LEDs, light sensors, seven-segment displays, push buttons, and a breadboard for building circuits without soldering. A manual leads you through the construction of simple circuits and the programming of the Arduino to control them. By the time you have finished all the examples you will feel quite confident about installing the Arduino in models and programming it. Although I have a background in information technology, I found that a kit like this was a revelation, as I saw what can be done with the little computer and how easy it is to do it.

In New Zealand, kits can be found on TradeMe, at prices starting from $45. One that looks suitable is the "complete" kit from WMG1 at $75. In the UK, a suitable kit can be found here, costing £27.99 with VAT. Many different kits are also available from AliExpress.com, with prices ranging between $US25 and $US50. One example is here. Although these Chinese kits are of good quality and contain all the components you will need, their instructions tend to be rather poor, and you may have difficulty with them.

There is some advantage in buying a kit with an Arduino Mega, as this version of the Arduino provides much more capability for only a small extra cost. You will be able to use the Arduino and several of the other components in future projects.

Buying and building your Arduino

Whether or not you buy a starter kit, the next step is to buy the other components you need and put them together. My second document, Buying and Building an Arduino System, explains how to do this.


The Arduino is programmed through a software development environment in the form of a program named Arduino, which you can download from the Arduino web site and install on a Windows PC, a Macintosh or a Linux system. It consists of a text editor for creating and modifying programs, a compiler to convert your program into code that the Arduino can execute, and a loader to load the program into the Arduino via a USB cable. It also provides lots of example programs and a place to store your own and imported programs.

I do not intend to write an introduction to Arduino programming as there are many excellent ones already available. A starter kit provides one very gentle way of getting started. Another good way is to load and run some of the example programs provided with the Arduino software, and then read, understand and modify them. My companion document lists several other resources to help you get started.


I have written these documents to share my knowledge and experience of the Arduino microcontroller with other Meccano builders, in the hope that they will be encouraged to start building models incorporating the Arduino. I have taken much care in the writing of the documents, but I cannot take responsibility for errors or misunderstandings. I am publishing them on the New Zealand Meccano web site so that I can make additions and corrections as they are required. I encourage you to send me your comments, corrections and questions. My email address is david.couch46@gmail.com

Peter Vandeweg      (at 4:48pm, Sat 16th Mar, 19)

Hello David,
Some time ago you published articles on Arduino detailing Motor Shields and Stacking Headers to allow Arduino to control several and more DC Motors. I cannot locate these.
Can you provide a link.
Many thanks.
Peter Vandeweg

Frans Dullemeijer      (at 11:18am, Tue 17th Jan, 17)

Hi David
I'm intersted in your articles about Arduino.
You can find me on Facebook under my name Frans Dullemeijer
I make videoos for Arduino for my dutch meccano friends

Your name:
Your message:
Security check: (Please type in the text to prove you're a person!)
Login status:  You have not yet entered your user name and password. You cannot create or edit documents until you do.
Enter your user name and password to log in

Remember me

If you click on the box marked 'remember me next time', you will not have to log in again on this computer for three months.

If you don't have a user name yet, please click here

On this page...

Latest documents:

The Arduino Sketch 
and how to upload a Youtube or Vimeo video to the Gallery 
(Paulo Kroeff de Souza)
"Homemade" Screwed Rods
(Paulo Kroeff de Souza)
The Meccano driving band problem
(Paulo Kroeff de Souza)
Meccano Cord Reproduction
(Paulo Kroeff de Souza)
Substitutes for parts 142 and 155
(Philip Drew & Richard Smith)
Midlands Meccano Guild
105th Model Report 
92nd Model Report 
(Neil Bedford and John Rogers)
Midlands Meccano Guild
104th Model Report 
91st Model Report 
103rd Meeting Model Report 
by Peter Stuart, Meccano Modellers Association Sydney Inc 
(Richard Smith and Neil Bedford)
Midlands Meccano Guild
102nd Meeting Model Report 
(John Rogers & Colin Bull)
Midlands Meccano Guild
101st Meeting Model Report 
Spanner Challenge 
(John Rogers and Neil Bedford)
Midlands Meccano Guild
100th Meeting Model Report 
A G gauge model 
(Colin Bull & Richard Smith)
Midlands Meccano Guild
99th Meeting Model Report 
98th Meeting Model Report 
97th Meeting Model Report 
(David Couch)
The Little Tram
An introductory Arduino project 
(G. Eiermann and M. Schild)
A Short History of MARKLIN Metall
96th Meeting Model Report 
83rd Meeting Model Report 
82nd Meeting Model Report 
Picks up three golf balls 
(Roger Marriott)
Midlands Meccano Guild
95th Meeting Model Report 
The Spanner Challenge 
94th Meeting Report 
(Andre Theberge)
Meccano Segway
(Andre Theberge)
A Meccano Segway
Arduino code 
(Andre Theberge)
A Meccano Segway
Assembly instructions 
(Michael J. Walker)
Meet the new MMG President
Geoff Wright 
The Spanner Challenge 
(Michael Walker)
Midlands Meccano Guild
93rd Model Report 
Report by Michael J. Walker. 
92nd Model Report 
(Stan Knight)
Minimal Meccano
Pocket Meccano Sets of the 1970s 
Little Lever, Bolton 
The Spanner Challenge 
91st Model Report 
(Bob Thompson)
Back to the beginning
Shop Display Model 
90th Meeting Report 
(Old Blue Gold)
Getting Old
A screwy story 
The Spanner Challenge 
Model report written by Michael J. Walker 
76th Meeting Report 
Exhibition in Nelson, New Zealand 
(Barry Gerdes)
Meccano Radio
How to flatten  
(Rod Socket)
Dear Mrs Spanner
Survival techniques for the Meccanoman's wife 
(Stan Knight)
The Top Ten Tools
Indispensable Tools for the Meccanoman 
A call for help 
The Spanner Challenge 
For small brass and nickel parts. Also for stripping paint and rotted zinc plating. 
(Stephen Heafield)
Waterslide Transfers
Refurbishing 0 & 00 Aero Models 
Construction details 
or Put Your Hammer Away 
Mobile Morris Crane from 1968 MM 
Bert Love's Blocksetter in colour 
The dangers of internet auctions 
(Rob Thompson pp Terry Bullingh)
BlockSetter Tower
Built by Terry Bullingham 
(Rob Thompson pp John Reid)
Captain Robert Falcon Scott
1912 Polar Sledging Party 
(Niels Gottlob)
Bucket Wheel Excavator
Transcribed from typed document with photos 
Selected Spanner messages 18th to 24th January 
Selected Spanner messages 11th to 17th January 
Selected Spanner messages 4th to 10th January 
(Norbert Klimmek)
Hulett Ore Unloader
A 1 to 32 Scale Model 
(Joe Attard of Malta)
A model ship
(Arup Dasgupta (ISM 652))
My E15R Motor
A repair story 
About Meccano
What is Meccano? 
Thoughts about modern Meccano 
Not many in this condition I'll bet! 
Some hints and tips 
 View all | Chat | Models | Hints and Tips | Opinion | Reviews | Mine