Show Posts
Pages: 1 2 [3]
31  Using Arduino / Interfacing w/ Software on the Computer / Re: starting the Windows media player from the UNO? on: July 22, 2012, 07:49:55 am
Hi again,again

What you are writing explains why I had to use "val = !val" to make HIGH == 1 and LOW ==0.

Where can I find info about "Hardware features" like the internal resistor, i guess it is not the only hardware feature on the board?

Now I will use some time "to play" with the "new information" you just have given me.


Once more:

Thank very,very much.
 Regards
LYDFANGER


32  Using Arduino / Interfacing w/ Software on the Computer / Re: starting the Windows media player from the UNO? on: July 22, 2012, 06:44:51 am
Hi again

Thank you very much.

I do understand, and i am able to merge the right way.

You are right, i am using pullup with resistor on the breadboard.

as you know i am a newbie, so when you say internal resistor, I think: Is that a "speciel pin" or how is that working?

33  Using Arduino / Interfacing w/ Software on the Computer / Re: starting the Windows media player from the UNO? on: July 22, 2012, 05:59:36 am
Hi PaulS

That make sense....thank you so far...

But, i am total NewBie...so is it possible that you could "challenge" me with some hints, of what to write in the sketch???  smiley-lol

Regards
LYDFANGER
34  Using Arduino / Interfacing w/ Software on the Computer / Re: starting the Windows media player from the UNO? on: July 21, 2012, 04:21:01 am
Sorry, you are right. So here is translation of the pre posting.

When i am sending Serial.println(XXXXXX) to my PC the "Code" is send many times, I just want the arduino to send it once.
I need something in the sketch to control the how many times Serial.println is send.
The sketch looks like this....

int kon1 = 7;//button1
int kon2 = 8;//button2
int val1 = 0;
int val2 = 0;

void setup()
{
pinMode(kon1, INPUT);
pinMode(kon2, INPUT);
Serial.begin(9600);
}
void loop()
{
 val1 = digitalRead(kon1);
 val2 = digitalRead(kon2);
 
  val1 =!val1;
  val2 =!val2;
 if (val1 == HIGH)
 {
   Serial.println("#S|MUSIK1|[]#");
   delay(val1);
 }
 if (val2 == HIGH)
 {
   Serial.println("#S|BILLED1|[]#");
   delay(val2);
}

35  Using Arduino / Interfacing w/ Software on the Computer / Re: starting the Windows media player from the UNO? on: July 20, 2012, 05:06:56 pm
Hej Mikael

Jeg udnytter at jeg har "fanget" dig, til lige at spørge om en sidste ting. Håber du vil hjælpe mig...igen.

Når jeg sender Serial.println til dit program, får gobetwino koden mange gange, så efter "timeout" gentager programmet visningen af den bestemte fil. Jeg kan se det samme i "Serial overvågningen" så det er helt sikkert mine evner indenfor kode skrivning der halter.
Vil du kigge på Sketch'en, og  give et bud på hvor jeg kan sætte en bremse, så Serial.println... kun bliver sendt en gang?.
På forhånd tak.

int kon1 = 7;//kontakt1
int kon2 = 8;//kontakt2
int val1 = 0;
int val2 = 0;


void setup()
{
pinMode(kon1, INPUT);
pinMode(kon2, INPUT);
Serial.begin(9600);

}

void loop()

{
 val1 = digitalRead(kon1);
 val2 = digitalRead(kon2);
 
  val1 =!val1;
  val2 =!val2;
 if (val1 == HIGH)
 {
   Serial.println("#S|MUSIK1|[]#");
   delay(val1);
 }
 if (val2 == HIGH)
 {
   Serial.println("#S|BILLED1|[]#");
   delay(val2);

 }}
36  Using Arduino / Interfacing w/ Software on the Computer / Re: starting the Windows media player from the UNO? on: July 19, 2012, 05:49:14 pm
Øh..så skifter jeg lige til DK.

Det er mig der har lavet en bommert mht. windows7. ....noget med at vælge de rigtige ikoner at trykke på, måske gik det hele lidt for skærkt da jeg skulle installere på W7. Programmet kører lige nu også på min Windows7, indtil videre uden problemer.
Hvis jeg støder på nogle "bugs" lover jeg at sende dem til dig.

Vh
Brian



37  Using Arduino / Interfacing w/ Software on the Computer / Re: starting the Windows media player from the UNO? on: July 19, 2012, 04:02:13 pm
  Bigger  Smaller  Reset Quote Modify Remove 

--------------------------------------------------------------------------------

I thank you very much for the link.

I had some big trouble to make it work with windows 7. But after changing to XP it is working fine.

By the way, are you danish? (god to now for later comunication)

Brian

 
 
38  Using Arduino / Interfacing w/ Software on the Computer / starting the Windows media player from the UNO? on: July 13, 2012, 07:52:48 am
Is it possible to run the Windows Media Player from the UNO-board, and shut the player down again?

If yes......

How is it done...?

Regards
Brian Hansen
Denmark
Pages: 1 2 [3]