Washing machine setup complete

Now everything is attached and ready to be wired up i took the opportunity to get some photos of how everything looked while it was still in pieces.

As you can see the pipes have been superglued and sealed into there respected holes in the dispenser. The bottle holders have been placed onto the back panel and screwed in along with the 3 pumps.

img here

piezo

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.

WP_20140530_012

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
servoLeft.write(angle);
servoRight.write(angle);
}

void loop() { // Loop through motion tests

forward();
delay (1500); // Example: move forward

reverse();
delay (1500); // Example: move forward

}
// Motion routines for forward, reverse, turns, and stop
void forward() {
servoLeft.write(180);
servoRight.write(0);
}

void reverse() {
servoLeft.write(0);
servoRight.write(180);
}

 

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

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.

Stripboard

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.

Deliveries

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.