Show Posts
Pages: 1 ... 25 26 [27]
391  Development / Other Software Development / USB MIDI driver working for UNO. Turn your UNO into a MIDI device. on: March 25, 2011, 06:50:39 am
I've got a USB MIDI device driver working for the UNO's atmega8u2.  Just flash it onto the atmega8u2 using dfu-programmer or flip and your UNO becomes a USB MIDI device.  I've tested it with GarageBand and it seems to be working well.

Details, firmware hex files, source, and an example sketch are available from http://hunt.net.nz/users/darran/.

Cheers,
Darran.
392  Development / Other Software Development / Mouse HID driver working on UNO on: March 25, 2011, 01:34:11 am
I have a simple Mouse HID driver working on the Arduino UNO which lets it behave like a USB mouse device.

I've posted details, source, firmware hex file, and example sketch here: http://hunt.net.nz/users/darran/blog/

Cheers,
Darran.
393  Using Arduino / Project Guidance / Re: Keyboard emulator on: March 24, 2011, 12:11:11 am
Hi Henry,

if you add the following LUFA_OPTS to your make file you can save 196 bytes:
-D NO_DEVICE_SELF_POWER -D NO_DEVICE_REMOTE_WAKEUP -D NO_INTERNAL_SERIAL

I did search through the LUFA source to see if there were any obvious ways to reduce the code size but I didn't have much luck.  All of the unused code is automatically stripped out so what is left is just the essentials.

Hope that helps.

Cheers,
Darran.
394  Using Arduino / Project Guidance / Re: Smaller bootloader on 8U2 on: March 23, 2011, 06:34:20 pm
Hi Henry,

I've done the same thing to build Keyboard HID firmware for the UNO, and found it was very tight on space.  (See details and source here: http://hunt.net.nz/users/darran/blog/).

I was able to claim some space back from LUFA by adding the following LUFA_OPTs:
 -D NO_DEVICE_SELF_POWER -D NO_DEVICE_REMOTE_WAKEUP -D NO_INTERNAL_SERIAL.

Hope that helps.

Cheers,
Darran.
395  Using Arduino / Project Guidance / Re: Keyboard emulator on: March 23, 2011, 01:02:53 am
If you have an UNO or a new Mega2560 then you can reprogram the atmega8u2 on it to be a USB Keyboard HID device.  This makes the Arduino appear to be a keyboard.  I've put details, source, firmware hex files, and a demo "hello world" sketch here: http://hunt.net.nz/users/darran/

Note that you can't upload sketches while its running the keyboard firmware, you have to flash back the Arduino-usbserial.hex firmware whenever you want to change the sketch.

Cheers,
Darran.
396  Using Arduino / Project Guidance / Re: getting computer to recognize arduino device as HID/keyboard? on: March 23, 2011, 12:48:53 am
I think you should be able to program the mega2560 to be a USB keyboard, I've done it for the UNO without problems.  I've built firmware for the mega2560 that should do the job (i.e. make it appear to be a USB keyboard), please try it out and let me know how it goes.

Details, firmware source, hex files, and demo sketch here: Arduino Hacking Blog

Cheers,
Darran.
397  Development / Other Software Development / Re: Keyboard HID firmware working for UNO on: March 22, 2011, 04:25:17 am
Updated to version 0.2 that removes the need for a delay between key presses.  New firmware, source, and demo sketch available from Arduino Hacking
398  Development / Other Software Development / Keyboard HID firmware working for UNO on: March 21, 2011, 04:21:17 am
I've got a simple Keyboard HID driver working for the UNO's atmega8u2 which lets the UNO behave as a keyboard.  It still needs some work, but seems to work well.

I've posted the details, source, and hex file here http://hunt.net.nz/users/darran for anyone that's interested.  The same approach should work for creating other USB device drivers (e.g. mouse, joystick, etc).

Cheers,
Darran.
399  Using Arduino / Microcontrollers / Re: How to build UNO-dfu_and_usbserial_combined.hex? on: March 19, 2011, 06:40:44 am
Never mind - I've realised that my main problem is that the keyboard HID firmware is bigger than 4K (its currently 4322 bytes), which is why dfu-programmer complains that "Bootloader and code overlap" when I try to flash it to the atmega8u2.  I'll have to try and find some code to throw out of LUFA to reduce the size.

Cheers,
Darran.
400  Using Arduino / Microcontrollers / How to build UNO-dfu_and_usbserial_combined.hex? on: March 19, 2011, 04:09:55 am
Does anyone know how to build the UNO-dfu_and_usbserial_combined.hex file from arduino-usbdfu and arduino-usbserial?  The readme says these are build from the hex files somehow but doesn't specify how.

I've built a keyboard HID driver for the atmega8u2 on the UNO and I want to try it out, but I can't figure out how to combine it with the arduino-usbdfu hex.

Cheers,
Darran.
Pages: 1 ... 25 26 [27]