I’m using the +5V pin on the right hand side to connect power to the mbed.
The other 3.3V pin is connected to the breadboard bus but not connected to
anything else.
The circuit was connected as described and depicted in the handbook
picture.
Doesn’t truly matter as it still doesn’t work.
http://mbed.org/handbook/USBDevice
It’s a driver issue…i reckon. The Os is not seeing the mbed as a generic
device.
Alex
Annoyingly, neither gmail nor the Google Groups interface give you a link
to a larger version. The pictures can be viewed clearly if you right-click
and pick ‘Open Image in new tab’.
The diagrams and code look OK, but in your photo you’ve got wires connected
to VU and VOUT and nothing on VIN. I don’t think you want anything
connected to VU or VOUT.On 12 January 2014 21:57, Alexander Lang alexanderlang1980@gmail.comwrote:
Has anyone managed to get an mbed to behave as a USB device? I have
connected the mbed up as shown:
[image: Inline images 1]
Here is the schematic for the purists!
[image: Inline images 2]
The circuit wiring and information was taken from the USBDevice tutorials
from the mbed handbook:
http://mbed.org/handbook/USBDevice
Here is the code for the main.cpp that I have uploaded to the online
compiler:
#include “mbed.h”
#include “USBMouse.h”
DigitalOut led(LED1);
USBMouse mouse;
int main() {
while(1) {
mouse.move(10, 5);
led = !led;
wait(4);
}
}
The program has the mbed.h and USBMouse.h and USBMouse.cpp included. I am
always presented with the following when I connect up to any PC. I have
tried three different computers with different operating systems just to be
sure:
Here is what always happens:
[image: Inline images 3]
Anyone got any ideas…I’m kind of getting frustrated! I think I’m doing
something daft - I am not the best C++ coder in the world, in any language
for that matter 
Hope someone can help,
Cheers
Alex
–
You received this message because you are subscribed to the Google Groups
“Hackspace Manchester” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to hacman+unsubscribe@googlegroups.com.
To post to this group, send an email to hacman@googlegroups.com.
Visit this group at http://groups.google.com/group/hacman.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups
“Hackspace Manchester” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to hacman+unsubscribe@googlegroups.com.
To post to this group, send an email to hacman@googlegroups.com.
Visit this group at http://groups.google.com/group/hacman.
For more options, visit https://groups.google.com/groups/opt_out.