*snap* thought i find an excuse not to work on hunting and fixing bugsOz Flyer wrote: Ps. All I will need is a 3D printer to make the panels and NO will not ask for SPAD to driver the printer.
Current SPAD.neXt Release: 0.9.12.123
This forum has closed. Please join our Discord Community.
SPAD.neXt online services are no longer available for SPAD.neXt Versions < 0.9.11.5
Arduino controler
- c0nnex
- Site Admin
- Posts: 5469
- Joined: 10 Mar 2015, 21:52
- Location: Munich, Germany
- Contact:
- Status: Offline
Re: Arduino controler
Re: Arduino controler
Thanks Connex
Good to hear SPAD.next will support Arduino~
I will prepare to setup a control panel via Arduino receive/send command to my prepare3D.
Good to hear SPAD.next will support Arduino~
I will prepare to setup a control panel via Arduino receive/send command to my prepare3D.
Re: Arduino controler
Just a month ago I found that Fs2link page and decided to try to build a radio panel, altough I have a saitek one, but just for discovering the Arduino world. Now I'm still waiting for the delivery of the Arduino Uno R3 board and the 7 segment display.
But now with the great spad.next potentiality I'd like to change my project and I'd like to build an A320 Overhead. What isn't clear to me is the differences between the many arduino boards on the market.
Considering that I'm going to use about 32 buttons/switches (I'll not build the whole overhead) and thinking to place the 7 segments displays for battery voltage, do you think my Arduino Uno R3 is the right board to do that?
So excited about it!
But now with the great spad.next potentiality I'd like to change my project and I'd like to build an A320 Overhead. What isn't clear to me is the differences between the many arduino boards on the market.
Considering that I'm going to use about 32 buttons/switches (I'll not build the whole overhead) and thinking to place the 7 segments displays for battery voltage, do you think my Arduino Uno R3 is the right board to do that?
So excited about it!
- OldAirmail
- Donator
- Posts: 172
- Joined: 10 Mar 2015, 22:00
- Status: Offline
Re: Arduino controler
Hi, klisura.
As with anything that is "new" to you, there is a lot to learn. Fortunately, it's relatively easy to start working with many simple things. Like the project below.
For example I started with a Arduino controlled GPS. This will give you an idea how easy it is to use - Arduino controller - Building a GPS
This is the one (unfinished) that I built.
And here's a better one by Daz.
Another good way to get an idea about Arduinos would be to read the first page or two of this post that we're in - Page 1.
One very good thing about Arduinos is that many of them will (once programed) be seen, AND USED, by SPAD.neXt just as any joystick buttons that you have now.
This is how SPAD.neXt "sees" an Arduino Teensy 3.2 after loading in a basic code sample.
And there are the 32 buttons that you wanted.
And I did NOTHING more than load the Teensy with a sample code from their website!
The fact that you find this very interesting suggests that you'll do well. There's a little bit to learn, but afterwards you can do a great deal with SPAD.neXt and Arduinos. And believe me, I'm no programmer at all
The big breakthrough will come when we can use SPAD.neXt to output the flight sim data to 7 segment displays
Ulrich did a "proof of concept" with a 7 segment display.
Working off that, but with sample code from elsewhere I tested a similar display with many other types of Arduino. Only 1 failed and that was probably due to my error.
What else may be possible? How about analog displays using servo motors?
An analog flaps indicator.
The thing to remember is that RIGHT NOW, you can setup certain Arduinos for buttons and rotary encoders, AND they will be useable in SPAD.neXt.
Although Ulrich may have SPAD working with the Arduino UNO & MEGA, there are other Arduinos that have the USB/HID interface built in to them right now.
Check out this post - Arduino boards to use as USB/HID controllers
If all of this is too new to anyone, you can do similar things with various Leo Bodnar boards. Unless I'm wrong, each board only does certain things, such as Buttons & Encoders. You may need different Leo B. boards for LED, and so on.
They're easier to use, but more expensive than the, almost, universal Arduino. Especially if you need to buy 2 boards to get Buttons & LEDs.
There is ONE important tip that I can give to everyone - WORK A FEW OF THE SIMPLE PROJECTS BEFORE TRYING MORE COMPLEX PROJECTS. Mistakes will be made and in the making of those mistakes you'll learn something about problem solving.
Good luck.
As with anything that is "new" to you, there is a lot to learn. Fortunately, it's relatively easy to start working with many simple things. Like the project below.
For example I started with a Arduino controlled GPS. This will give you an idea how easy it is to use - Arduino controller - Building a GPS
This is the one (unfinished) that I built.
And here's a better one by Daz.
Another good way to get an idea about Arduinos would be to read the first page or two of this post that we're in - Page 1.
One very good thing about Arduinos is that many of them will (once programed) be seen, AND USED, by SPAD.neXt just as any joystick buttons that you have now.
This is how SPAD.neXt "sees" an Arduino Teensy 3.2 after loading in a basic code sample.
And there are the 32 buttons that you wanted.
And I did NOTHING more than load the Teensy with a sample code from their website!
The fact that you find this very interesting suggests that you'll do well. There's a little bit to learn, but afterwards you can do a great deal with SPAD.neXt and Arduinos. And believe me, I'm no programmer at all
The big breakthrough will come when we can use SPAD.neXt to output the flight sim data to 7 segment displays
Ulrich did a "proof of concept" with a 7 segment display.
Working off that, but with sample code from elsewhere I tested a similar display with many other types of Arduino. Only 1 failed and that was probably due to my error.
What else may be possible? How about analog displays using servo motors?
An analog flaps indicator.
The thing to remember is that RIGHT NOW, you can setup certain Arduinos for buttons and rotary encoders, AND they will be useable in SPAD.neXt.
Although Ulrich may have SPAD working with the Arduino UNO & MEGA, there are other Arduinos that have the USB/HID interface built in to them right now.
Check out this post - Arduino boards to use as USB/HID controllers
If all of this is too new to anyone, you can do similar things with various Leo Bodnar boards. Unless I'm wrong, each board only does certain things, such as Buttons & Encoders. You may need different Leo B. boards for LED, and so on.
They're easier to use, but more expensive than the, almost, universal Arduino. Especially if you need to buy 2 boards to get Buttons & LEDs.
There is ONE important tip that I can give to everyone - WORK A FEW OF THE SIMPLE PROJECTS BEFORE TRYING MORE COMPLEX PROJECTS. Mistakes will be made and in the making of those mistakes you'll learn something about problem solving.
Good luck.
1 Saitek Switch Panel, 1 Radio Panel, 1 Multi Panel, 1 BIP, 1 FIP,
1 Saitek Rudder Pedal, 1 Saitek Throttle, 1 Saitek TPM, 1 Desktop Aviator GPS, 1 CH Yoke
Registered
1 Saitek Rudder Pedal, 1 Saitek Throttle, 1 Saitek TPM, 1 Desktop Aviator GPS, 1 CH Yoke
Registered
Re: Arduino controler
Thank you OldAirmail, I'm very excited about the great job that Arduino & Spad.Next can do.
Your Gps is a great stuff! On my side, with a simple chinese joystick board (9,99 euros on Amazon) I built a generic Airbus pedestal featuring highlighted Saitek throttles and 12 switch/buttons.
Spad.Next is an incredible software and with Arduino building something like a pro cockpit will be finally affordable
Your Gps is a great stuff! On my side, with a simple chinese joystick board (9,99 euros on Amazon) I built a generic Airbus pedestal featuring highlighted Saitek throttles and 12 switch/buttons.
Spad.Next is an incredible software and with Arduino building something like a pro cockpit will be finally affordable
You do not have the required permissions to view the files attached to this post.
- OldAirmail
- Donator
- Posts: 172
- Joined: 10 Mar 2015, 22:00
- Status: Offline
Re: Arduino controler
Beautiful! It looks great.
It used to be very difficult to build your own flight sim peripherals. Now it's so much easier.
Personally, I find that even making just a few button boxes to cover those things that matter most to "you", flight simming is more enjoyable.
And even for those who don't want to "build it themselves" there are a variety of button box options out there. Tie that in with SPAD.neXt and you'll be able to forget about the keyboard, a device that I HATE for "flying".
It used to be very difficult to build your own flight sim peripherals. Now it's so much easier.
Personally, I find that even making just a few button boxes to cover those things that matter most to "you", flight simming is more enjoyable.
And even for those who don't want to "build it themselves" there are a variety of button box options out there. Tie that in with SPAD.neXt and you'll be able to forget about the keyboard, a device that I HATE for "flying".
1 Saitek Switch Panel, 1 Radio Panel, 1 Multi Panel, 1 BIP, 1 FIP,
1 Saitek Rudder Pedal, 1 Saitek Throttle, 1 Saitek TPM, 1 Desktop Aviator GPS, 1 CH Yoke
Registered
1 Saitek Rudder Pedal, 1 Saitek Throttle, 1 Saitek TPM, 1 Desktop Aviator GPS, 1 CH Yoke
Registered
- Oz Flyer
- Betatester
- Posts: 741
- Joined: 23 Sep 2015, 10:10
- Location: YMMB, Melbourne, Australia
- Contact:
- Status: Offline
Re: Arduino controler
I have got to a point that I have deleted all aircraft controls from the keyboard and only have some sim controls left which I never use.OldAirmail wrote:Tie that in with SPAD.neXt and you'll be able to forget about the keyboard, a device that I HATE for "flying".
The keyboard is only used to give saved flights there file name and enter codes into flight plans.
David
OZ Flyer
Near YMMB
40+ year of Flight Siming.
Sim: subLOGIC/Microsoft Flight Sim's/DTG FSX, Microsoft Flight, DTG Filght School/FSW/Train Sim/TSW, ETS2 & ATS.
Hardware: Logitech, Saitek, Arduino 2560's & Leo's, BBI-32, PAC LED.
OZ Flyer
Near YMMB
40+ year of Flight Siming.
Sim: subLOGIC/Microsoft Flight Sim's/DTG FSX, Microsoft Flight, DTG Filght School/FSW/Train Sim/TSW, ETS2 & ATS.
Hardware: Logitech, Saitek, Arduino 2560's & Leo's, BBI-32, PAC LED.
- Oz Flyer
- Betatester
- Posts: 741
- Joined: 23 Sep 2015, 10:10
- Location: YMMB, Melbourne, Australia
- Contact:
- Status: Offline
Re: Arduino controler
Hi OldAirmail,
Just a quick update, Went to a Arduino talk at my local Amateur Radio Club today and as part of the presentation we where given Arduino Leonardo Pro Micro boards.
All ready have done some tests with it and have it running as a 25 button input which SPAD.neXt detects and reads.
At this time the only problem is the inputs are offset by 1, so SPAD buttons start at 2 and go to 26 (not my code) still looking into that.
Just a quick update, Went to a Arduino talk at my local Amateur Radio Club today and as part of the presentation we where given Arduino Leonardo Pro Micro boards.
All ready have done some tests with it and have it running as a 25 button input which SPAD.neXt detects and reads.
At this time the only problem is the inputs are offset by 1, so SPAD buttons start at 2 and go to 26 (not my code) still looking into that.
David
OZ Flyer
Near YMMB
40+ year of Flight Siming.
Sim: subLOGIC/Microsoft Flight Sim's/DTG FSX, Microsoft Flight, DTG Filght School/FSW/Train Sim/TSW, ETS2 & ATS.
Hardware: Logitech, Saitek, Arduino 2560's & Leo's, BBI-32, PAC LED.
OZ Flyer
Near YMMB
40+ year of Flight Siming.
Sim: subLOGIC/Microsoft Flight Sim's/DTG FSX, Microsoft Flight, DTG Filght School/FSW/Train Sim/TSW, ETS2 & ATS.
Hardware: Logitech, Saitek, Arduino 2560's & Leo's, BBI-32, PAC LED.
- OldAirmail
- Donator
- Posts: 172
- Joined: 10 Mar 2015, 22:00
- Status: Offline
Re: Arduino controler
Give this attachment a try. It's not mine, but the originators location is in the text.
Without a doubt this is the best encoder code that I've found. It works perfectly with the 3 different brands of encoders that I have and is very forgiving.
This will give you 4 encoders and 25 buttons. The number of buttons, or encoders, can be increased with a little careful modification.
What I like best about the Pro Micro and Teensy boards is the small size, easy to program as HID, and the perfect size to put in a small home made panel.
Without a doubt this is the best encoder code that I've found. It works perfectly with the 3 different brands of encoders that I have and is very forgiving.
This will give you 4 encoders and 25 buttons. The number of buttons, or encoders, can be increased with a little careful modification.
What I like best about the Pro Micro and Teensy boards is the small size, easy to program as HID, and the perfect size to put in a small home made panel.
You do not have the required permissions to view the files attached to this post.
1 Saitek Switch Panel, 1 Radio Panel, 1 Multi Panel, 1 BIP, 1 FIP,
1 Saitek Rudder Pedal, 1 Saitek Throttle, 1 Saitek TPM, 1 Desktop Aviator GPS, 1 CH Yoke
Registered
1 Saitek Rudder Pedal, 1 Saitek Throttle, 1 Saitek TPM, 1 Desktop Aviator GPS, 1 CH Yoke
Registered
- OldAirmail
- Donator
- Posts: 172
- Joined: 10 Mar 2015, 22:00
- Status: Offline
Re: Arduino controler
My mistake.
This is the image that I meant to post -
This is the image that I meant to post -
1 Saitek Switch Panel, 1 Radio Panel, 1 Multi Panel, 1 BIP, 1 FIP,
1 Saitek Rudder Pedal, 1 Saitek Throttle, 1 Saitek TPM, 1 Desktop Aviator GPS, 1 CH Yoke
Registered
1 Saitek Rudder Pedal, 1 Saitek Throttle, 1 Saitek TPM, 1 Desktop Aviator GPS, 1 CH Yoke
Registered