Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#4307045 - 10/28/16 10:40 AM STM32 Micro Controller Boards ****  
Joined: Sep 2012
Posts: 21
SimHog Offline
Junior Member
SimHog  Offline
Junior Member

Joined: Sep 2012
Posts: 21
Vic, Australia
Hey All,

I'm relatively new to electronics and I have been having a blast experimenting with Arduino boards. My end goal is to build my own HOTAS and right now I have successfully hooked up a screen and mini PS2 joystick to my Arduino MEGA clone board ...



I've been reading through the MMJoy2 thread and I notice that Teensy boards are popular, it was also recommended to me on the Arduino forums that I should use that for my project.

But while I've been researching this project I've stumbled across STM32 boards.

I understand that these boards aren't supported by MMJoy2, but some are compatible with the Arduino IDE, they appear to have much more processing power, pack more features and comparatively speaking much cheaper.

Here's a couple of speed tests ...






There is also a huge community behind these boards ...
http://stm32duino.com/


So I'm wondering if anyone has heard of, or used STM32 boards for flight sims?

Last edited by AirHog71; 10/28/16 10:47 AM.
Inline advert (2nd and 3rd post)

#4307046 - 10/28/16 10:48 AM Re: STM32 Micro Controller Boards [Re: SimHog]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
"MMJoy2" not Arduino sketch, it is firmware for AVR amtega32u4/at90usb64/at90usb128 MCU.
arduino/teensy boards used as "ready to use", no need to build controller from set of MCU+PCB+details.

#4307051 - 10/28/16 11:07 AM Re: STM32 Micro Controller Boards [Re: SimHog]  
Joined: Sep 2012
Posts: 21
SimHog Offline
Junior Member
SimHog  Offline
Junior Member

Joined: Sep 2012
Posts: 21
Vic, Australia
Hi Mega.

Yeah I've learned that from the MMJoy2 thread, well done on MMJoy2 too btw ... I've downloaded it and played around with it, works great! smile

At this time I'm looking to get a Teensy board anyway just so I can use MMJoy2 but have you ever looked at supporting STM32 boards?

#4307058 - 10/28/16 11:30 AM Re: STM32 Micro Controller Boards [Re: SimHog]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Of course I have plans go to STM32, but it will not be soon.

#4311438 - 11/12/16 01:42 PM Re: STM32 Micro Controller Boards [Re: SimHog]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
AirHog71

Look at FoxHoundch EasyJoy 32 One, joystick controller based on STM32F103C8T6. Has LED control function.

https://forums.eagle.ru/showthread.php?t=176776

For now the program interface is in Chinese. smile
And the "Professional Version" firmware cost 15$.

For "flash" firmware in STM32 is need the ST-Link V2 programmer cable.






#4329720 - 01/19/17 06:56 PM Re: STM32 Micro Controller Boards [Re: SimHog]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
New GUI for EasyJoy 32 One configurator:

https://forums.eagle.ru/showthread.php?t=176776&page=2

#4358184 - 05/19/17 09:47 AM Re: STM32 Micro Controller Boards [Re: SimHog]  
Joined: May 2011
Posts: 10
Juris3D Offline
Junior Member
Juris3D  Offline
Junior Member

Joined: May 2011
Posts: 10
Riga, Latvia
Hello all joystick twisters. And, makers, I suppose. Is there maybe any news on eventual MMJOY2 firmware for all beloved STM32F103 "Blue Pill"?
And, another thing, question about chinese "EasyJoy 32". Is there maybe firmware version in .HEX or .BIN format? By provided forum link, there is only .DFU firmware in archive, and I am struggling to get my "Blue Pill" communicating with DeFuseDemo software frown
Thank You in advance, for any information on these topics! smile

#4358783 - 05/22/17 09:07 PM Re: STM32 Micro Controller Boards [Re: SimHog]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
I believed that will be no more freeware versions of MMjoy2 - the author is now working in commercial project (VirPil).

About "EasyJoy 32 One" ask in DCS forum (link above), the author post there.

#4358908 - 05/23/17 12:05 PM Re: STM32 Micro Controller Boards [Re: SimHog]  
Joined: May 2011
Posts: 10
Juris3D Offline
Junior Member
Juris3D  Offline
Junior Member

Joined: May 2011
Posts: 10
Riga, Latvia
Thank You, Sokol1, I registered and asked there now. If I got some positive news about .HEX or .BIN, I can inform about it here too, maybe someone else is looking for that too.

#4359143 - 05/24/17 06:41 AM Re: STM32 Micro Controller Boards [Re: SimHog]  
Joined: May 2011
Posts: 10
Juris3D Offline
Junior Member
Juris3D  Offline
Junior Member

Joined: May 2011
Posts: 10
Riga, Latvia
Hello again. Here is what I got from author of EasyJoy32:

" Quote:
Originally Posted by ThunderOwl View Post
Hello! Please, maybe Author can provide free version firmware in non-dfu form? .HEX or .BIN? I found only .dfu in archive, maybe I missed something?
Thank You in advance! "

" Sorry,not have Free version for now.but,wait for version 3,The price will be unified. " (FoxHoundcn)

#4359545 - 05/26/17 09:35 AM Re: STM32 Micro Controller Boards [Re: SimHog]  
Joined: May 2011
Posts: 10
Juris3D Offline
Junior Member
Juris3D  Offline
Junior Member

Joined: May 2011
Posts: 10
Riga, Latvia
Update about EasyJoy32 (STM32F103 "Blue Pill") - about .DFU upload problems. There was simply .HEX file missing in downloads, now it is up there.
That .HEX firmware make "Blue Pill" board to be DFU-compatible, and then you can upload joystick firmware (ant that is in .DFU form).
P.S.: for buttons you need logic ICs 74HC165 - registers that have parallel inputs (from buttons) and serial output (for microcontroller). Think of it as a "port count expander".

#4359592 - 05/26/17 01:07 PM Re: STM32 Micro Controller Boards [Re: SimHog]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Juris3D,

You can make a "how to" for use STM32F103? Probable you are the first to use EasyJoy 32One . smile

#4359800 - 05/27/17 07:21 AM Re: STM32 Micro Controller Boards [Re: Sokol1]  
Joined: May 2011
Posts: 10
Juris3D Offline
Junior Member
Juris3D  Offline
Junior Member

Joined: May 2011
Posts: 10
Riga, Latvia
Originally Posted by Sokol1
Juris3D,
You can make a "how to" for use STM32F103? Probable you are the first to use EasyJoy 32One . smile


You know, I was thinking to do that myself, so - yes, I will make some "How to" about EasyJoy32. I still need to add registers (74HC165) for buttons, and temporary potentiometers, to check all properly.
And I have great news for myself - Author provided me unlock for full customizable version smile Because I found that problem with .hex missing in article.
Anyway, short version of procedure is this: Take your standart "Blue Pill" module, upload (via ST-Link, or Serial) firmware "EasyJoy_DFU.hex" from that forum. Then you should get it shown in Windows system as "STM device with DFU", I believe those were drivers from utility "DfuSe Demo" folder. Then, with this "DfuSe" utility upload firmware "EasyJoy32Onev2.1.1.dfu". After that you should see in "joy.cpl" already this joystick with some axis and 32 buttons. This will be free version without customization support. Version is v.2.1.1, Author says he is making v.3

#4360092 - 05/29/17 06:02 PM Re: STM32 Micro Controller Boards [Re: SimHog]  
Joined: May 2011
Posts: 10
Juris3D Offline
Junior Member
Juris3D  Offline
Junior Member

Joined: May 2011
Posts: 10
Riga, Latvia
Since this is discussion about STM32 boards and DIY joysticks, I will post here this:
Xinput (XboX 360 controller for Windows) DIY gamepad/joystick on "Blue Pill" STM32F103:
https://github.com/nesvera/STM32-X360-xinput (Code is free and open, Keil uVision5)

Small history:
There is a project Xinput "FightStick" (now also in a library form) on Teensy: http://www.zlittell.com/2015/07/fightstick/
Then there is Xinput steering wheel, based on above^, but ported to "Blue Pill". This solution contains specific modifications, like encoder control. Code is free and open (Keil uVision5):
https://github.com/nesvera/XINPUT-RacingWheel
https://engenhariaegambiarras.wordpress.com/2017/02/04/racing-wheel-xinput-controller/

I asked very very politely to Author of this Xinput wheel, maybe he can publish "typical" XboX controller layout, made in STM32 "Blue Pill", and so he did! Mega Thanks to Daniel Nesvera!!
Here are discussion in comments: https://www.youtube.com/watch?v=MiF_OVsyubc
Code link one more time: https://github.com/nesvera/STM32-X360-xinput
I tested it, and it is working, mostly smile All is fine, only left/right analog triggers acts weird for now.
EDIT: Author shows video, that for him everything running fine, including analog triggers. Not clear yet, why I have those small issues.

Last edited by Juris3D; 05/30/17 11:13 AM.

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Carnival Cruise Ship Fire....... Again
by F4UDash4. 03/26/24 05:58 PM
Baltimore Bridge Collapse
by F4UDash4. 03/26/24 05:51 PM
The Oldest WWII Veterans
by F4UDash4. 03/24/24 09:21 PM
They got fired after this.
by Wigean. 03/20/24 08:19 PM
Grown ups joke time
by NoFlyBoy. 03/18/24 10:34 PM
Anyone Heard from Nimits?
by F4UDash4. 03/18/24 10:01 PM
RIP Gemini/Apollo astronaut Tom Stafford
by semmern. 03/18/24 02:14 PM
10 years after 3/8/2014
by NoFlyBoy. 03/17/24 10:25 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0