3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Wii Nunchuk Controlled Model Train

Step 3Software or Firmware?

Software or Firmware?
The difference between "firmware" or "software" is slight.  Your "sketch", or the program you load on to the Arduino could be considered "firmware", but the program you use to get it loaded is "software".  To make it worse, people start calling the latter a "programming environment".  Confusing, eh?  Let's not start talking about "bootloaders", because I don't know squat.

Setting up an Arduino programming environment could be a whole Instructable by itself (I don't see one, so feel free to write it).  For now, I'll point you to the "horse's mouth", Getting Started at the Arduino site. 

With an Arduino "environment" in place, you are going to need a couple of extra's.  
 - The motor shield comes with a library called "AFMotor ".  You need to down load it from LadyAda's website and place it in the "Arduino/hardware/library " folder.  If you breadboarded your own controller, you know enough to write your own functions for it.
-  My demo software "WiiChuck_Train_Controller " (attached below). My advice is to paste it into the Arduino environment and save it with a really, really clever name.  You'll have to supply that  yourself.
  - The WiiMote adapter also has a library called "nunchuck_funcs.h " available here .  This single file will have to be placed in the same folder as the sketch, something like "Arduino/WiiChuck_Train_Controller " folder.  In the newer Arduino environment (0017), it shows both the sketch and the nunchuck_funcs.h on separate tabs (see image).

« Previous StepDownload PDFView All StepsNext Step »
3 comments
Feb 8, 2011. 3:08 PMmewithaflower says:
Hello, this is a great project but I cant download the code! could you put another link up so I could get the code please? this link gives me a tmp file!? Regards Richard
Feb 9, 2011. 1:43 AMmewithaflower says:
Works great, i've learnt loads already. cheers dude

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
14
Followers
8
Author:aspro648