Enjoy these free tutorials and guides!

…Here are some of the things I’m working on and tutorials for some of the programming / hardware I’m working with.

PICAXE for Wearables

I'm looking at an Electro-Fashion sewable PICAXE control board from Kitronik. There are a few wearable systems now that keep getting better and are getting easier to use and help people get started with so this was great to see another system, with a huge advantage of being low cost (just over a fiver) that it's a great way to get a system prototyped. You can get up and running within an hour even with no previous knowledge or experience.

If you get a few basic components such as the main board, LEDs, switch, and maybe some sensors and you'll have enough to get started. You'll need a USB download cable too which will be the biggest initial cost (but still only £11.95) which you will be using with all PICAXE boards to download the program directly to the chip. You also need a power source! To prototype quickly and test out what you can do, you need some form of clips / crock clips / connectors to make the connections to the I/O ports.

Once you have done your prototyping phase, you can then be sure to have some conductive thread and can sew your creation! I always map out my circuit on felt or similar with a marker etc with colours for different connections so you are sure to not cross lines and make the most effective circuit, and sew it to that before sewing the completed work on to my final fabric. (Or integrating the felt version.)

PICAXE electro-fasion

mapping out the connections - lots of I/O ports on this board to play with

My first stop was to look at the resources out there for using this platform, so I went to the getting started guide at PICAXE

If you are getting one of the electro-fashion boards from Kitronik you'll see on the product page details that there are links to accessories that you can use with this system, (which are also usable with other systems so you don't have to keep to just one board type).

Have a look also at the guide from Kitronik about getting started, it's easy to follow and guides you to getting the software / drivers and using the board.  Note that this is for Windows though!

So... this is a board that I have never used before and a new system to me, I have no experience with PICAXE so if you are the same then hopefully I will have made a bit of a mess with it so that you can go through it a little more smoothly.

I'm on a Mac, so I grabbed the Mac version of Blockly which I choose the browser based one, but have a look at the downloads page for your own system.

Once I opened it, you need to select the PICAXE type and COM port, this is how we can communicate with the board, it will let us put the code onto the chip when we are ready.

picaxe and blocky

choosing the PICAXE communication port for your board

You may need to look up your PICAXE type, and there is a handy little menu item that does the checking for you:

picaxe Blocky

Looking for the Check PICAXE type

Mine works with 14M2 selected.

Note at the time of doing this, I am a little unclear if the connector also powers the board at this phase and if I should plug in a power source? I was looking at this board and trying it out and had a friend describe to me what I was doing and they think there is no power so I'll plug in the power as well. The board can now be found with the software so do plug in your power folks!


be sure to also provide power to your board

Using the blocks to generate code is straightforward once you know what to do.

Using the menu on the left, drag on to the main area the things you'd like the board to do. Looking at the board, make a note of the pins (the output or input) on the board, on my board they are noted as B.5 B.4 B.3 the LED is on B.2 C.0 C.1 and C.4 there are also 2 areas to connect power to the board (as well as the LiPo connector).

The programming blocks I selected will be to make the LED integrated on the board flash on and off.

using the LED onboard

using the LED onboard - note that the LED is dimmable too so you can program it to do that!

To program using Blockly, use the menu items on the left and drag the 'blocks' that you want to use and put it directly under the "start" block... match them up (have a look at the accompanying image) Look at the LED blocks there in the blocks required, from the OUTPUT menu, and then run the simulator to be sure it is doing what you want it to.

Note on the board that the LED is marked B.2 which is the output you should select to get this to work. 

Running the simulator using the controls just below the 'chip' you will see which output pin will be active in your program.

simulator Blockly

run the simulator first to see if it is working how you want it to

Using the > play button you can look at how your program is running. When you are happy with it you need to program your board.

flashing the LED

To program the chip when you are happy with what you have written go to the PICAXE menu and select PROGRAM

program the picaxe


So that is just a quick whip through of what I did to have a play with this system, look through the program to see some of the things you can put together. Then it only remains that you map out some ideas and thoughts for what you would like to sew together and what you'd like to make! Have fun with it!

The Board that I used Features:

  • Built in PICAXE 14M2 programmable IC.
  • On-board dimmable white LED.
  • On-board switch.
  • 6 sewable I/O pins.
  • JST connector and sewable '+' and '-' pads.
  • 3.5mm stereo jack for programming.
  • Low profile and compact size.

(Note for schools or if you are buying a few of these boards for your projects you can get 10 for as low as £5.70 each)

Once  downloaded / looked at the software and read up about the board and generally what to do, you can make progress within an hour if you come to it with no previous knowledge at all.

This is a very easy intro into wearables and the connectors are big and sturdy enough to get a good connection for people new to this platform. That alongside the easy 'blocks' for programming might be a really good way to get started with wearables!

Click here for the full post

Uploading a sketch: Arduino

There are only a few steps involved in running a sketch on an Arduino board, and this post will take you through it step-by-step, making it quick and easy!

You'll need an Arduino board, a USB cable and Arduino software on your computer to follow along. Oh - and about 5 minutes of time.

What this post covers

  • How to upload code to an Arduino board (uploading a sketch)

What you need

  • Arduino board
  • Arduino software installed on your computer (I won't be going through that here, but you need to go to https://www.arduino.cc/en/Main/Software to get the correct software for your computer and install it, it's free)
  • USB cable to connect your board to your computer
  • about 3 minutes

Also, using a Lilypad Main board or Lilypad USB have slightly different details and they are covered in a different post.

How to get your code up and working on your board

Once a sketch has been loaded or written you need to upload it to your board. Grab your Arduino  and your USB cable, plug both ends of the cable in – one to your computer and one to the Arduino.

Give your computer a moment to find the device and then in the Arduino Program we need to check we have the right board and port selected.

Tools > Board > Arduino Uno

Selecting the correct board

selecting the correct board for uploading code

selecting the correct board to upload your code to

Port Selection

We then also need to select the correct port for our device. On a mac it is typically a mix of letters and numbers as shown below as cu.usbserial-A702U4NY

Yours will be similar. If in doubt : try one - if it is incorrect you will get an error message that the device can not be found.

tools menu for port selection

tools menu for port selection

or an error message is displayed asking you to choose the correct port when you try to upload the code overtop of the programming window.
error in port selection

error in port selection: Serial port not found


the lower bottom right hand side of the programming window will show you which port you have chosen and what board


Uploading your sketch

All that is left to do is to upload your code to the Arduino.

You can do it by navigating to the menu;

File > Upload

uploading a sketch

navigating to the File menu

or by using the right facing arrow icon on the application window

uploading a sketch using the arrow

using the right facing arrow when uploading a sketch

The sketch will compile and upload to the board if all is well.

When the code is uploading, you will see the RX/TX lights on your arduino board flickering, this happens as it's transmitting data so that's often another good indication that something is happening! So be sure to have a look at your board if you're uncertain.

Code not working?

If there are errors it will list them in the bottom half of the window in red.

  • Some common errors is just making sure the correct board / port is selected, sometimes disconnecting and reconnecting also solves initial issues.

You may have just forgotten to put “;” at the end of a line of code!

I've recently had a friend who couldn't get the code to behave on a Windows system - if it compiles sometimes and sometimes it doesn't then I usually get a previous version of Arduino to make sure it is compatible. If you're having errors and no real reason why, try using Arduino version 1.6.0

Click here for the full post

Breaking up Arduino: how to make your own arduino!

I've been looking at breaking out the ATMEGA328P-PU chip (that is used in many Arduino boards) to be able to reduce the footprint and power consumption of the boards. This post will show you how to make your own arduino.

Click here for the full post

OLED & Arduino Heaven

I had posted some images online of some prototypes that I had been working on, and Marcelo Souza commented about trying an OLED. I had thought about it before but the ones I had looked at (or even ordered to play around with) all were relatively expensive if I wanted to incorporate it - but the display I was using, an LCD, was taking up a lot of space, both in size and in number of ports - so I decided to have a look.

Click here for the full post

Beginning iOS Design & Development

This is a ten week iOS design & development course I run on an evening. It covers the topics below:

Click here for the full post