Category Archives: Arduino


While experimenting the the Arduino beginners book, one of their tasks involves using a Piezo (a small toned instrument).

The task uses a photo resistor to control the pitch of the piezo so the lighter the light the quieter it is the darker the louder.


two servos

Remember the way we connected a servo to the Arduino, there is a super quick way to turn that into two servo’s and have them run together.

The way to do this is to set up the servo’s as you would and upload this code:

#include <Servo.h>

Servo servoLeft; // Define left servo
Servo servoRight; // Define right servo

int angle = 0; // servo position in degrees
void setup() {
servoLeft.attach(10); // Set left servo to digital pin 10
servoRight.attach(9); // Set right servo to digital pin 9

void loop() { // Loop through motion tests

delay (1500); // Example: move forward

delay (1500); // Example: move forward

// Motion routines for forward, reverse, turns, and stop
void forward() {

void reverse() {


Whats good with this setup is you can insert a push button into the circuit and control the servo’s whenever you push the button.  When setting this up you have to have the power go through the push button into one servo and then into the other.


Soldering is a technique which creates permanent fixings for connections and components.

To solder you use whats called a soldering iron,  which heats up enough to melt solder onto the ends of wires to connect them together or connect components to circuits.


Looking into strip boards to make my circuit more permanent, i have done a bit of research into how they work and what there limits are.

1) With copper strips travelling across the board these are what carries the current along the board to the components.

2) With the copper strips being only 35µm means it can realistically take 1amp safely. 

3) By taking a drill piece and drilling out the copper will break the circuit allowing you to have multiple components on the same lines.


So this morning we had deliveries for all the pieces we now need to complete the project.

The other 2 pumps and bike bottle holders came which meant i could connect them up to the machine and just wait for the engineer to come a wire up the 3 components inside the washing machine and we should be complete.

3 versions of the code

Because of the diverse nature of the project I have come up with two versions of the code.

1) the main version and the one which gives the user the most control over the machine is the code that has an on/off button for each separate  task in the pipeline.

2) the other type of code i have written gives less control over the board but means you only have to press one button per task

3) Using twitter hashtags you will tweet the necessary hashtag and  it will begin the process.


So just to remember what goes with what:   5novcode.ino goes with test slider.html

twitter.ino goes with twitttter.html

atimesversion.ino goes with alltimes.html.



wireless pump

So we bought a pump and a 12v power supply with 1 amp output and connected the pump up to my relay circuit and pin 8 of the Arduino.

Note* solder header pins onto the wires of the pump for easier connections.

Using my wireless board and code from pervious tests I created a wireless pump that turns on when you press the button on the website and turns off when you press the off button on the site.