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.

Programming

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.

Conclusion

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...

Models:

(Philip Drew & Richard Smith)
Midlands Meccano Guild
105th Model Report 
92nd Model Report 
91st Model Report 
103rd Meeting Model Report 
(John Rogers & Colin Bull)
Midlands Meccano Guild
101st Meeting Model Report 
(John Rogers and Neil Bedford)
Midlands Meccano Guild
100th Meeting Model Report 
98th Meeting Model Report 
97th Meeting Model Report 
(David Couch)
The Little Tram
An introductory Arduino project 
82nd Meeting Model Report 
(Roger Marriott)
Midlands Meccano Guild
95th Meeting Model Report 
 
(Andre Theberge)
Meccano Segway
Instructions 
(Andre Theberge)
A Meccano Segway
Arduino code 
(Andre Theberge)
A Meccano Segway
Assembly instructions 
92nd Model Report 
91st Model Report 
76th Meeting Report 
Construction details 
Bert Love's Blocksetter in colour 
(Rob Thompson pp John Reid)
Captain Robert Falcon Scott
1912 Polar Sledging Party 
(Rob Thompson pp Terry Bullingh)
BlockSetter Tower
Built by Terry Bullingham 
(Niels Gottlob)
Bucket Wheel Excavator
Transcribed from typed document with photos 
(Norbert Klimmek)
Hulett Ore Unloader
A 1 to 32 Scale Model 
 
(Joe Attard of Malta)
A model ship
 
Not many in this condition I'll bet! 
 
 View all | Chat | Models | Hints and Tips | Opinion | Reviews | Mine