Show Posts
Pages: [1]
1  Using Arduino / Installation & Troubleshooting / Re: Arduino IDE Serial Port Gray/Grey on: January 10, 2013, 08:52:11 am
I've now found that my board shipped with dead pins. If there is a defect here, might there also be one in the serial communication portion?
2  Using Arduino / Installation & Troubleshooting / Re: Arduino IDE Serial Port Gray/Grey on: January 09, 2013, 08:52:53 am
I had a leonardo and got a new one.
3  Using Arduino / Installation & Troubleshooting / Re: Arduino IDE Serial Port Gray/Grey on: January 07, 2013, 10:33:33 pm
1) Windows 7

2) The software has previously worked. The only thing is that I've gotten a new Arduino board. Wouldn't the driver be the same?
4  Using Arduino / Installation & Troubleshooting / Arduino IDE Serial Port Gray/Grey on: January 07, 2013, 09:33:52 pm
I'm trying to use a Leonardo, and am trying to use the serial monitor for debugging, to make "trace" messages. When I click "Serial Monitor", it says the port is not found, and to change it in the Tools > Serial Port. Then, sometimes I can click it, sometimes I can't. When I can, nothing shows up (Programming?) When I can't, the menu is grey. Any help?
5  Topics / Device Hacking / Re: ps3 controller input on: November 16, 2012, 12:56:36 pm
Oh, there it is. It was broken before.
6  Topics / Device Hacking / Re: ps3 controller input on: November 15, 2012, 12:53:46 pm
And where would I find a schematic for such a shield?
7  Topics / Device Hacking / ps3 controller input on: November 14, 2012, 08:31:31 pm
I'd like to connect my ps3 controller to my arduino with the USB cable. Is this possible? I assume there's got to be a library out there...
8  Using Arduino / Programming Questions / Re: Odd leonardo keyboard problem on: July 26, 2012, 08:07:31 pm
Same problem persists.
9  Using Arduino / Programming Questions / Re: Odd leonardo keyboard problem on: July 26, 2012, 07:41:58 am
Yes, but why is the shift key pressed at all? I didn't command that.
10  Using Arduino / Programming Questions / Odd leonardo keyboard problem on: July 25, 2012, 10:48:38 pm
Whenever I use my Leonardo as a keyboard, it has issues with the shift key. Mainly, this is my code.

Code:
void setup()
{
  Keyboard.begin();
}
void loop()
{
  Keyboard.press(0x64);
  delay(100);
  Keyboard.release(0x64);
}

It should type a "d" over and over. However, it types "D" over and over. Also, even when I unplug the Arduino, the key is still pressed. Can anyone help me?
11  Using Arduino / Networking, Protocols, and Devices / Re: Ps2 mouse not working on: July 25, 2012, 07:59:45 am
Whoops. I meant to say 12 and 13 for everything. Typo on my part. Sorry.
12  Using Arduino / Networking, Protocols, and Devices / Ps2 mouse not working on: July 24, 2012, 10:35:17 am
I have an old PS2 mouse. I cut the cable, and connected the GND wire to one of the Leonardo's GND pins, the VCC wire to the 5V pin, the CLK wire to pin 11, and the DATA wire to pin 12. I then uploaded this sketch.

Code:
#include <ps2.h>

/*
 * an arduino sketch to interface with a ps/2 mouse.
 * Also uses serial protocol to talk back to the host
 * and report what it finds.
 */

/*
 * Pin 5 is the mouse data pin, pin 6 is the clock pin
 * Feel free to use whatever pins are convenient.
 *Modified to be 12, 13 instead of 6,5
 */
PS2 mouse(12, 13);

/*
 * initialize the mouse. Reset it, and place it into remote
 * mode, so we can get the encoder data on demand.
 */
void mouse_init()
{
  mouse.write(0xff);  // reset
  mouse.read();  // ack byte
  mouse.read();  // blank */
  mouse.read();  // blank */
  mouse.write(0xf0);  // remote mode
  mouse.read();  // ack
  delayMicroseconds(100);
}

void setup()
{
  Serial.begin(9600);
  mouse_init();
}

/*
 * get a reading from the mouse and report it back to the
 * host via the serial line.
 */
void loop()
{
  char mstat;
  char mx;
  char my;

  /* get a reading from the mouse */
  mouse.write(0xeb);  // give me data!
  mouse.read();      // ignore ack
  mstat = mouse.read();
  mx = mouse.read();
  my = mouse.read();

  /* send the data back up */
  Serial.print(mstat, BIN);
  Serial.print("\tX=");
  Serial.print(mx, DEC);
  Serial.print("\tY=");
  Serial.print(my, DEC);
  Serial.println();
//  delay(20);  /* twiddle */
}

When I open the serial monitor and move the mouse, nothing shows up on the serial monitor. Can anybody help me troubleshoot?
Pages: [1]