Search found 19 matches

by drake250
Tue Jul 01, 2014 12:38 pm
Forum: LeoStick
Topic: Leostick Joystick? Yes, and here's how.
Replies: 45
Views: 67235

Re: Leostick Joystick? Yes, and here's how.

Hey Adifran, Neovin, sorry I haven't been on the forum for a while. I don't see why you can't do what I have done with a Leonardo - they should be fairly similar if not identical in the HID stuff, but I haven't got one to test with so just guessing. The code angus posted should work but I can't reme...
by drake250
Sun Sep 29, 2013 8:20 am
Forum: LeoStick
Topic: LeoStick usb serial and MSComm problem
Replies: 4
Views: 4924

Re: LeoStick usb serial and MSComm problem

Sounds like it could be driver related - does serial work at all on the windows machine running the VB6? Does it work with the Arduino IDE's serial monitor? I have my own set of serial port issues on my main PC - I did something wrong when I first got my leostick and forced it to use a particular dr...
by drake250
Wed Sep 25, 2013 3:44 am
Forum: Module Discussion
Topic: Heisenberg
Replies: 2
Views: 2526

Re: Heisenberg

Well, "moving" depends on your frame of reference - if you were falling from your roof the ground would appear to be moving, and more importantly Accelerating toward you - at 1g too. I could bore you with details, but all you really need to understand is that gravity is pulling the sensor down (the ...
by drake250
Sat Sep 14, 2013 4:35 am
Forum: LeoStick
Topic: Leostick Joystick? Yes, and here's how.
Replies: 45
Views: 67235

Re: Leostick Joystick? Yes, and here's how.

Now, after all that, if you don't want a 3 axis 8 button joystick but would rather a different number of inputs, or 10 bit axes instead of 8 bit, you'll have to create your own descriptor using the HID descriptor tool I linked to earlier (And I'll mention again that it is FAR from user friendly, but...
by drake250
Sat Sep 14, 2013 3:54 am
Forum: LeoStick
Topic: Leostick Joystick? Yes, and here's how.
Replies: 45
Views: 67235

Re: Leostick Joystick? Yes, and here's how.

Righteo, now that I've got coffe and my ADSL modem has crashed and rebooted, on with part 2! The next step, now that we have defined the format of the joystick data, is to add the class that will send the data - Scroll down through HID.cpp until you find this bit: //=================================...
by drake250
Sat Sep 14, 2013 2:48 am
Forum: LeoStick
Topic: Leostick Joystick? Yes, and here's how.
Replies: 45
Views: 67235

Re: Leostick Joystick? Yes, and here's how.

Right, there's a simple change to get it working with the v2 bootloader - the USB code that gets compiled with your sketch isn't in the (sketchbook)/hardware/leostick folder any more (that's only for v1 bootloaders) I'm using Arduino 1.0.5 and the Freetronics Leostick board profile v3.3 The files th...
by drake250
Thu Sep 12, 2013 1:49 pm
Forum: LeoStick
Topic: Leostick Joystick? Yes, and here's how.
Replies: 45
Views: 67235

Re: Leostick Joystick? Yes, and here's how.

I haven't tried to emulate a joystick on the v2 bootloader yet, and the modifications I made to the code caused other issues (tone() still crashed) when I updated the bootloader from v1 - I need to have a go with the newer profile and v2 bootloader from scratch, but alas, I "released the magic smoke...
by drake250
Thu Aug 29, 2013 11:03 am
Forum: EtherMega
Topic: Problems with Ethermega and SD Card
Replies: 13
Views: 11293

Re: Problems with Ethermega and SD Card

I noticed in the example sketch you haven't set pin 53 as an output. The Arduino help mentions that (on a Mega) the SD library needs 53 (Hardware SS pin) to be set as an output, even though it's not connected to the SD card. http://arduino.cc/en/Reference/SD I bought a Mega last weekend and ran into...
by drake250
Tue Aug 06, 2013 12:54 pm
Forum: LeoStick
Topic: tronixstuff IR Receiver tutorial
Replies: 4
Views: 5465

Re: tronixstuff IR Receiver tutorial

Try this modified version - http://tech.cyborg5.com/irlib/ Thanks for the link - worked straight out of the box on my v2 Leostick, receive and transmit! I'm using the default pins - receiver on 11 and IR LED on 9. This could be a really cheap way to network Leosticks - the receiver and LED were sal...
by drake250
Sun Aug 04, 2013 10:13 am
Forum: LeoStick
Topic: [solved] tone() not working on Leostick V2
Replies: 4
Views: 3405

Re: tone() not working on Leostick V2

I had that same issue recently after upgrading both my v1 Leos to v2, but that turned out to be out of date files in my hardware folder - I've since cleaned it up and tone() works as it should. (I tested it with toneMelody too, and it worked once I reinstalled everything and uploaded again) Maybe do...