Open Source Joystick FFB / DIY FFB Joystick - Page 22 - ED Forums
 


Notices

Reply
 
Thread Tools Display Modes
Old 10-17-2017, 12:25 PM   #211
Slartibartfast
Junior Member
 
Join Date: Apr 2017
Posts: 39
Reputation power: 1
Slartibartfast is on a distinguished road
Default

Quote:
Originally Posted by MetalGear_Honk View Post
@Slartibartfast:
Feel free to grab the code and have alook. Ask if something is unclear.
Yeah, I'll be keen to, though I'm a little unsure of where to start. I am however between jobs at the moment so have plenty of time to devote to the venture.

So, where do I start???
I've read through the entire thread and never came across a guide or even a particularly succinct parts list. While I've been a software engineer for many years now I've never worked with embedded code before so find the initial step a little daunting, though I'm most definitely keen to get into it!

So I take it the first thing I'll need is an Arduino, yeah. But which should I order (DUE?, pro mini?, or even a Teensy?). When I was looking into building my own joystick I was leaning toward the Leo Bodnar boards but I take it the advantages of the Leo boards would never be realised in this project as we are essentially programming the whole thing ourselves, yeah? So what would be a suitable board to start off with? And what else should I order in order to get cracking?

Cheers,
Slarti.
Slartibartfast is offline   Reply With Quote
Old 10-17-2017, 01:31 PM   #212
MetalGear_Honk
Junior Member
 
MetalGear_Honk's Avatar
 
Join Date: Nov 2015
Posts: 91
Reputation power: 3
MetalGear_Honk is on a distinguished road
Default

Hi Slartibartfast

Given that you are Familiar with c++
Get the Atmel Studio 7 and open the code Ihave uploaded.

This Version is for an ATMega32u4 NOT foran Arduino.
You can use the Micro that is onboard aPro Micro but you need to kill the Bootloader to get the Joystick running.
LUFA is running inside the Micro so if yougot it right you can use "Flip" to reprogram the Controller.

@ All
I really thought that I had written asmall tutorial about programming a Controller. But I can't find it.
For short Google "ISPProgramming" there are plenty of tutorials.

MetalGear_Honk
MetalGear_Honk is offline   Reply With Quote
Old 10-17-2017, 11:39 PM   #213
jpdesvals
Junior Member
 
Join Date: Jul 2014
Location: New Caledonia
Posts: 37
Reputation power: 4
jpdesvals is on a distinguished road
Default

Hello again to all FFB freek !

@melalgear honk may i suggest a littlebit crasy idea ...

As i and perhaps many don t have the knownledge about coding , would it be possible to send me a preprogramed arduino nano pre-loaded with the code so we would only have to connect the pin to potentiometers and pwm output to a l298 controler ?

I can pay via paypal for example a reasonable price and you could get more feedback and share our hardware building.

Just a prposition , if you can think about it .

Best regards ,

JP
jpdesvals is offline   Reply With Quote
Old 10-18-2017, 12:00 AM   #214
FragBum
Member
 
Join Date: Jun 2016
Location: Rockhampton QLD, AUS.
Posts: 734
Reputation power: 3
FragBum has a spectacular aura aboutFragBum has a spectacular aura aboutFragBum has a spectacular aura about
Default

@MetalGear

I would be keen to follow this, although I haven't done any C++ for many years I have done fully interrupt driven assembler code for AVR some time ago as well.

Where can I get the source code??

Frag
__________________
Control is an illusion which usually shatters at the least expected moment.
FragBum is offline   Reply With Quote
Old 10-18-2017, 01:14 AM   #215
Slartibartfast
Junior Member
 
Join Date: Apr 2017
Posts: 39
Reputation power: 1
Slartibartfast is on a distinguished road
Default

Quote:
Originally Posted by jpdesvals View Post
...would it be possible to send me a preprogramed arduino nano pre-loaded with the code so...
Once I've worked out how to do it myself I would be willing to do as much for you but I really would suggest you'd be far better of learning how to do so yourself. The problem with sending pre-installed boards out is that you would then be stuck with whatever version was sent to you and I dare say there are likely to be several revisions to the code as this project progresses. Loading a program onto a PCB really isn't that hard and no real programming knowledge is required to do so. It really would be just a process of "following the instructions".

So I would advice that getting your own board and learning how to upload code to it (even if you don't understand how that code actually works yourself) would serve you a lot better. In fact, if you have the know how to build the rest of the FFB system uploading the program to the PCB would be the easy part .

When I get on top of this myself I'll do my best to provide a set of easy to follow instructions for the community such that everyone can install/update their boards, regardless of their level of programming knowledge

Last edited by Slartibartfast; 10-18-2017 at 01:18 AM.
Slartibartfast is offline   Reply With Quote
Old 10-18-2017, 05:19 AM   #216
Deadman
Veteran
 
Deadman's Avatar
 
Join Date: Jul 2005
Posts: 4,004
Reputation power: 57
Deadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to behold
Default

Sounds great thanks much let me know what beer ya like and i will get a round
__________________
https://www.shapeways.com/shops/a-10c-warthog-supplies
CNCs and Laser engravers are great but they can't do squat with out a precise set of plans.
Deadman is offline   Reply With Quote
Old 10-18-2017, 07:34 AM   #217
MetalGear_Honk
Junior Member
 
MetalGear_Honk's Avatar
 
Join Date: Nov 2015
Posts: 91
Reputation power: 3
MetalGear_Honk is on a distinguished road
Default

Hi
To use a Pro Micro:
First we need to get rid of the ArduinoBootloader.
For that we will need an ISP or a JTAGProgrammer.
ISP is cheaper and you can use anotherArduino for that.
The Problem here is that most Programmeruse their own Software.

I will try to get the instructions out ofmy Memory.
Usingan Arduino uno:

1. Load the Arduino IDE.
2. Connect the Uno to your PC (USB)
3. Open the source code"ArduinoISP" from the Examples Folder
4. In the Tools/Board Folder select thecorrect Serial port.
5. Press the upload button
6. Wire the Uno to the Pro micro
UNO Name Micro
Pin 11 MOSI Pin16
Pin10 Reset RST
Pin12 Miso pin14
Pin13 sck pin15
+5V Voltage VCC
GND Ground GND

7. Select sketch/Upload with programmer
8. Select the HEX I uploaded.

That should be it.

No guaranty I haven’t done it this way fora Long time.

MetalGear_Honk

MetalGear_Honk is offline   Reply With Quote
Old 10-18-2017, 08:20 AM   #218
VO101_MMaister
Member
 
Join Date: Mar 2011
Location: Norway
Posts: 118
Reputation power: 0
VO101_MMaister is an unknown quantity at this point
Default

I am not much help when it comes to programming, but I can help with the gimbal design if it is needed. Let me know.
VO101_MMaister is offline   Reply With Quote
Old 10-18-2017, 11:40 AM   #219
Slartibartfast
Junior Member
 
Join Date: Apr 2017
Posts: 39
Reputation power: 1
Slartibartfast is on a distinguished road
Default

Quote:
Originally Posted by VO101_MMaister View Post
I am not much help when it comes to programming, but I can help with the gimbal design if it is needed. Let me know.
I would certainly appreciate some help with gimbal design.

As mentioned before the joystick I've been working on is intended to be used in a glider sim and a curious thing about gliders is that the X and Y axis often pivot at different heights. That is the pitch-axis is literally longer than the roll-axis.

Like this:

(but the other way round, ie. long pitch and shorter roll)

I have done the best I can designing such a gimbal in SketchUp and even made a prototype but I'm afraid I really am at my limit as far as mechanical design goes

Here's an image of what I have designed though:

The bolts in the image are so you can set physical limits on the amount of travel (arc) each axis has available.
The glider I'm modeling has a range of movement of:
10° forward
25° backward
17° side to side

And here is a short video of the prototype I made:


However I have no idea how I'm going to fit the FFB gear to this. Fortunately space isn't too much of a constraint as this is going to be bolted into a pit and the rest of the pit can be literally designed around whatever's needed.

One thought I had was rather than connecting the motors to the axle's of the gimbal itself either notch or attach gears on these parts:


And place the motors themselves on the 'inside' such that when activated they 'crawl' around the stationary gear and turn themselves along with the rest of the stick.

Anyway, if you willing to offer any assistance on this design (or something else that can be modified to accommodate my unique requirements) I'd me most appreciative.

P.S. If their of assistance I'll be more than happy to make my SketchUp models available but like MetalGear_Honk says, these files are far from professional
Slartibartfast is offline   Reply With Quote
Old 10-18-2017, 03:14 PM   #220
Deadman
Veteran
 
Deadman's Avatar
 
Join Date: Jul 2005
Posts: 4,004
Reputation power: 57
Deadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to beholdDeadman is a splendid one to behold
Default

It is the same in the A-10 gimbal. in my cockpit the gimbal is attached to two transfer rods both pitch and roll are transferred down the length of the cockpit in for and aft motion then attache to the DC torque motors
__________________
https://www.shapeways.com/shops/a-10c-warthog-supplies
CNCs and Laser engravers are great but they can't do squat with out a precise set of plans.
Deadman is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 02:55 AM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.