Go Down

Topic: Arduino Micro (Read 127 times) previous topic - next topic

sauwe

Hello,

I have bought a arduino micro, and programmed it (on my own computer) as a keyboard. But now i want to use the arduino on another computer, but nothing happens when i push a button. How can i fix this?

Greetings

weedpharma

#1
May 24, 2015, 02:51 am Last Edit: May 24, 2015, 02:52 am by weedpharma
Give more information for a start.

Weedpharma

sauwe

Give more information for a start.

Weedpharma
I will try to set the situation. I have bought a adruino micro. And downloaded the arduino software on computer 1. On this computer i uploaded a sketch so that when i press a button the computer thinks that the button A is pushed on the keyboard. It works on computer 1, so when i push the button the computer writes an 'A'. When i plug the arduino micro in to computer 2 and push the button, then nothing happens.

I hope this is enough information?

Greetings

weedpharma

Have you loaded the Arduino software onto computer 2?

Weedpharma

sauwe

Have you loaded the Arduino software onto computer 2?

Weedpharma
No i havent installed the arduino software on computer 2. I thought that i just could program the arduino board on one computer, and then use it on other computers without installing the arduino software. Or is this not possible?

Greetings

weedpharma

What program are you using on PC1 and PC2 to read the input?




Please supply the code, put it in its own window as seen in other posts. This can be done by placing     [code] and [/code]         around the code. This makes it easier for others to read.

Weedpharma

sauwe

What program are you using on PC1 and PC2 to read the input?




Please supply the code, put it in its own window as seen in other posts. This can be done by placing     
[code] and [/code]
         around the code. This makes it easier for others to read.

Weedpharma

Here is the code i used:

Code: [Select]

int buttonPin = 9;  // Set a button to any pin

void setup()
{
  pinMode(buttonPin, INPUT);  // Set the button as an input
  digitalWrite(buttonPin, HIGH);  // Pull the button high
}

void loop()
{
  if (digitalRead(buttonPin) == 1)  // if the button goes low
  {
    Keyboard.write('a');  // send a 'a' to the computer via Keyboard HID
    delay(50);  // delay so there aren't a kajillion z's
  }
}


But my question is if i can use my arduino micro on a computer that doesn't have the arduino software?

Greetings

weedpharma

How are you connecting to the PCs?

What program are you using to read the input?

Have you confirmed that the correct port is in use on the second PC?

Weedpharma

sauwe

How are you connecting to the PCs?

What program are you using to read the input?

Have you confirmed that the correct port is in use on the second PC?

Weedpharma

I have the board connected through the mini usb. I dont have a program to read the input, because i thought the arduino micro would work as a HID keyboard. And i dont know if the correct port is used on the second pc. I'm sorry i dont have much experience with this, but i thought it is all plug and play.

Greetinggs

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy