Monday, 8 February 2010

Hacking Keyboard

On managing to select characters in the serial monitor in my most recent code i have now purchased an Argos, Super cheap keyboard. I have taken it apart and removed the spingy rubber parts (used to bounce the buttons back up) on all buttons that will not be used like, Tab, ESC, DEL, Num Lock. This will make it easier to incorporate into a prototype.

An issue i may have with it is that i do not have the right connection, i may need to get a USB convertor or buy a cheap USB keyboard.










Keyboard Entry

I have recently managed to program Arduino to accept characters that are typed in to the serial monitor using the laptop keyboard. From this the next step may be to move to a separate keyboard.

Here is the videos of it working :-






Dropping the Scarf

For various reasons i decided that i would drop the concept of the camoflague scarf. This decision has been backed by Jon and Pete, as they feel there are too many things that could go wrong and to consider. I found myself less and less confident that i would be able to produce a good peice of work. This is due to the fabric element involvement in the making and after this pitiful attempt at knitting i felt it was definately a risky thing to attempt a project including this. I also felt concious of how big a power supply should be when being wore for the length of a match and the heat it would generate.

Folding good/bad/ugly?

I have done some prototypes of a folding, rolling idea and it has highlighted a major issue. I believe that inserting wiring and circuits into a product that rolls up will be very difficult for someone of my ability. I have deicded that i will look else where for the time being for form ideas.

Here are the prototypes:-


Button code work

Just a post to show some pictures of the circuit and other things i have done in getting the Button program to work which will be the first stage in getting user input on the board.






























Soft Crit Feedback

I have had a Soft Crit that was viewed by , Jon, Pete, Sean, Mike and the Class.

Feedback points include,
  • Drop the Scarf - All members backed the vote to leave trhe scarf behind.
  • Keyboard entry - Could a keyboard be used for the letter/number entry sytem? For ease of use.
  • Distance Check - I have been advised that i should take show an interest into the ease of viewing from a distance as i have spent the majority of time looking close up.
  • Materials - Plastic, fabric, metal?
  • Power - Mike raised the issue of how is should consider powering, Batteries, rechargable?
  • Can it fold up? or should it be in plaque form.
This was what i presented



This is the plastic front used to display the program given in the last post.









This is the Strip LEDs being placed in the 7 segment display holes.







Video Won't load, will try again soon.

7 segment display code 1

This is the code i created over a weekend,

The code is programmed in order for the 7 Led's to form a 7 segment display and run through the numbers 0 - 9 and on to a - z. This is an automatic program where the is a 2 second delay on each number/letter. This is not how the final program is going to be but it has helped a lot for me to learn how to work with the program.

int ledPina = 2;// LED connected to digital pin 2

int ledPinb = 3;// LED connected to digital pin 3

int ledPinc = 4;// LED connected to digital pin 4

int ledPind = 5;// LED connected to digital pin 5

int ledPine = 6;// LED connected to digital pin 6

int ledPinf = 7;// LED connected to digital pin 7

int ledPing = 8;// LED connected to digital pin 8

// The setup() method runs once, when the sketch starts

void setup() {

// initialize the digital pin as an output:

pinMode(ledPina, OUTPUT);

pinMode(ledPinb, OUTPUT);

pinMode(ledPinc, OUTPUT);

pinMode(ledPind, OUTPUT);

pinMode(ledPine, OUTPUT);

pinMode(ledPinf, OUTPUT);

pinMode(ledPing, OUTPUT);

}

// the loop() method runs over and over again,

// as long as the Arduino has power

void loop ()

{

digitalWrite(ledPina, HIGH); // set the LED on 0

digitalWrite(ledPinb, HIGH); // set the LED on

digitalWrite(ledPinc, HIGH); // set the LED on

digitalWrite(ledPind, HIGH); // set the LED on

digitalWrite(ledPine, HIGH); // set the LED on

digitalWrite(ledPinf, HIGH); // set the LED on

digitalWrite(ledPing, LOW); // set the LED off

delay(2000);

digitalWrite(ledPina, LOW); // set the LED off 1

digitalWrite(ledPind, LOW); // set the LED off

digitalWrite(ledPine, LOW); // set the LED off

digitalWrite(ledPinf, LOW); // set the LED off

delay(2000);

digitalWrite(ledPina, HIGH); // set the LED on 2

digitalWrite(ledPinc, LOW); // set the LED off

digitalWrite(ledPind, HIGH); // set the LED on

digitalWrite(ledPine, HIGH); // set the LED on

digitalWrite(ledPing, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPinc, HIGH); // set the LED on 3

digitalWrite(ledPine, LOW); // set the LED off

delay(2000);

digitalWrite(ledPina, LOW); // set the LED off 4

digitalWrite(ledPind, LOW); // set the LED off

digitalWrite(ledPine, LOW); // set the LED off

digitalWrite(ledPinf, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPina, HIGH); // set the LED on 5

digitalWrite(ledPinb, LOW); // set the LED off

digitalWrite(ledPind, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPine, HIGH); // set the LED on 6

delay(2000);

digitalWrite(ledPinb, HIGH); // set the LED on7

digitalWrite(ledPind, LOW); // set the LED off

digitalWrite(ledPine, LOW); // set the LED off

digitalWrite(ledPinf, LOW); // set the LED off

digitalWrite(ledPing, LOW); // set the LED off

delay(2000);

digitalWrite(ledPind, HIGH); // set the LED on 8

digitalWrite(ledPine, HIGH); // set the LED on

digitalWrite(ledPinf, HIGH); // set the LED on

digitalWrite(ledPing, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPind, LOW); // set the LED off 9

digitalWrite(ledPine, LOW); // set the LED off

delay(2000);

digitalWrite(ledPine, HIGH); // set the LED on a

delay(2000);

digitalWrite(ledPina, LOW); // set the LED on b

digitalWrite(ledPinb, LOW); // set the LED on

digitalWrite(ledPind, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPina, HIGH); // set the LED on c

digitalWrite(ledPinc, LOW); // set the LED on

digitalWrite(ledPing, LOW); // set the LED on

delay(2000);

digitalWrite(ledPina, LOW); // set the LED on d

digitalWrite(ledPinb, HIGH); // set the LED on

digitalWrite(ledPinc, HIGH); // set the LED on

digitalWrite(ledPinf, LOW); // set the LED on

digitalWrite(ledPing, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPina, HIGH); // set the LED on e

digitalWrite(ledPinb, LOW); // set the LED on

digitalWrite(ledPinc, LOW); // set the LED on

digitalWrite(ledPinf, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPind, LOW); // set the LED on f

delay(2000);

digitalWrite(ledPinb, HIGH); // set the LED on g

digitalWrite(ledPinc, HIGH); // set the LED on

digitalWrite(ledPind, HIGH); // set the LED on

digitalWrite(ledPine, LOW); // set the LED on

delay(2000);

digitalWrite(ledPina, LOW); // set the LED on h

digitalWrite(ledPind, LOW); // set the LED on

digitalWrite(ledPine, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPina, LOW); // set the LED on i

digitalWrite(ledPine, LOW); // set the LED on

digitalWrite(ledPinf, LOW); // set the LED on

digitalWrite(ledPing, LOW); // set the LED on

delay(2000);

digitalWrite(ledPind, HIGH); // set the LED on j

digitalWrite(ledPine, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPina, HIGH); // set the LED on k

digitalWrite(ledPinb, LOW); // set the LED on

digitalWrite(ledPind, LOW); // set the LED on

digitalWrite(ledPinf, HIGH); // set the LED on

digitalWrite(ledPing, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPina, LOW); // set the LED on l

digitalWrite(ledPinc, LOW); // set the LED on

digitalWrite(ledPind, HIGH); // set the LED on

digitalWrite(ledPinf, HIGH); // set the LED on

digitalWrite(ledPing, LOW); // set the LED on

delay(2000);

digitalWrite(ledPina, HIGH); // set the LED on m

digitalWrite(ledPing, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPina, LOW); // set the LED on n

digitalWrite(ledPinc, HIGH); // set the LED on

digitalWrite(ledPind, LOW); // set the LED on

digitalWrite(ledPinf, LOW); // set the LED on

delay(2000);

digitalWrite(ledPind, HIGH); // set the LED on o

delay(2000);

digitalWrite(ledPina, HIGH); // set the LED on p

digitalWrite(ledPinb, HIGH); // set the LED on

digitalWrite(ledPinc, LOW); // set the LED on

digitalWrite(ledPind, LOW); // set the LED on

digitalWrite(ledPinf, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPinc, HIGH); // set the LED on q

digitalWrite(ledPine, LOW); // set the LED on

delay(2000);

digitalWrite(ledPina, LOW); // set the LED on r

digitalWrite(ledPinb, LOW); // set the LED on

digitalWrite(ledPinc, LOW); // set the LED on

digitalWrite(ledPine, HIGH); // set the LED on

digitalWrite(ledPinf, LOW); // set the LED on

delay(2000);

digitalWrite(ledPina, HIGH); // set the LED on s

digitalWrite(ledPinc, HIGH); // set the LED on

digitalWrite(ledPind, HIGH); // set the LED on

digitalWrite(ledPine, LOW); // set the LED on

digitalWrite(ledPinf, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPina, LOW); // set the LED on t

digitalWrite(ledPinc, LOW); // set the LED on

digitalWrite(ledPine, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPinb, HIGH); // set the LED on u

digitalWrite(ledPinc, HIGH); // set the LED on

digitalWrite(ledPing, LOW); // set the LED on

delay(2000);

digitalWrite(ledPinb, LOW); // set the LED on v

digitalWrite(ledPinf, LOW); // set the LED on

delay(2000);

digitalWrite(ledPina, HIGH); // set the LED on w

digitalWrite(ledPinc, LOW); // set the LED on

digitalWrite(ledPinf, HIGH); // set the LED on

digitalWrite(ledPing, HIGH); // set the LED on

delay(2000);

digitalWrite(ledPina, LOW); // set the LED on x

digitalWrite(ledPinb, HIGH); // set the LED on

digitalWrite(ledPinc, HIGH); // set the LED on

digitalWrite(ledPind, LOW); // set the LED on

delay(2000);

digitalWrite(ledPind, HIGH); // set the LED on y

digitalWrite(ledPine, LOW); // set the LED on

delay(2000);

digitalWrite(ledPina, HIGH); // set the LED on z

digitalWrite(ledPinc, LOW); // set the LED on

digitalWrite(ledPine, HIGH); // set the LED on

digitalWrite(ledPinf, LOW); // set the LED on

delay(2000);

}