"Teensy 3.2 or teensy 4.0" wireless communication with arduino leonardo

Status
Not open for further replies.

marcob

Well-known member
Hello guys.
Is there anyone that could suggest what is the easiest and working way to have a wireless communication between a "Teensy 3.2 or a teensy 4.0" with an arduino leonardo?

The arduino leonardo would be used as base station connected via usb to the pc

Thanks
 
Hi,
It depends on what code you want to run on the Teensy end. If you need a lot of processing power, go for the Teensy 4.0.
If you don't need that, go for the 3.2. It is still is plenty more powerful than a Leonardo. Besides that, the 3.2 has been around for a long time already, so the libraries are more mature and more people can help you on the forum if needed.
What kind of wireless comm are you considering?

Regards,
Paul
 
Hi,
It depends on what code you want to run on the Teensy end. If you need a lot of processing power, go for the Teensy 4.0.
If you don't need that, go for the 3.2. It is still is plenty more powerful than a Leonardo. Besides that, the 3.2 has been around for a long time already, so the libraries are more mature and more people can help you on the forum if needed.
What kind of wireless comm are you considering?

Regards,
Paul

Hi Paul and thanks for the reply. I am sorry that I was not clear with my explanation.
Please see attached sketch

Teensy - Leonardo.jpg


I am looking into a solution to have a dual system based on a "teensy 4.0-teensy 3.2" both connected together via wires, communicating wirelessly to an arduino leonardo.

I must use the leonardo as xinput device because it is compatible with the titan two and the Zen , while instead the teensy 3.2 as xinput is not.

So the question is related to the wireless connecivity.

What would you suggest I could use to have the dual system (teensy 3.2 - teensy 4.0) communicate wirelessly with the arduino leonardo ?
 
Again it depends on datarate, distance, power consumption for the wireless link but perhaps the nRF24 module is a good starting point?
See these links for more info:
Information: [url]https://lastminuteengineers.com/nrf24l01-arduino-wireless-communication/[/URL]
Library: [url]https://github.com/nRF24/RF24[/URL]

Regards,
Paul

Thanks for the suggestion!

Do you have also suggestion for using bluetooth connectivity between teensy and arduino leonardo?


The above idea is to add gamepad functionality to the project by using the arduino leonardo xinput ,rather than teensy 3.2 xinput. Unfortunately titan two and cronus zen, are not supporting the teensy 3.2 xinput via usb wiring/connection

https://github.com/marcob2178/Motion-tracker-on-Teensy

https://hackaday.io/project/176067-microcontroller-locomotion-system-for-gaming
 
Code:
Do you have also suggestion for using bluetooth connectivity between teensy and arduino leonardo?
You could have a look at the HC-05 BT module. Google for "HC-05 arduino", you will find a lot of information.

Regards,
Paul
 
Code:
Do you have also suggestion for using bluetooth connectivity between teensy and arduino leonardo?
You could have a look at the HC-05 BT module. Google for "HC-05 arduino", you will find a lot of information.

Regards,
Paul

My understanding is that the HC-05 can not be used for my case on the leonardo because the leonardo has only 1 set of RX / TX that is used already for USB connection of the leonado to the PC/zen/titan two.

It seems I can't have on a leonardo both at the same time the HC-05 module and the usb connection to the pc of the leonardo
 
leonardo has only 1 set of RX / TX
True. I'm so used to Teensy's with multiple serial ports that I forgot about this.
But you could use the SoftwareSerial library to create an additional serial port for the HC-05 on the Leonardo.
Here is an example.

Regards,
Paul
 
True. I'm so used to Teensy's with multiple serial ports that I forgot about this.
But you could use the SoftwareSerial library to create an additional serial port for the HC-05 on the Leonardo.
Here is an example.

Regards,
Paul

Thank you so much. Talking to the developer of the dual system " locomotion - custom hand controller". we might have an issue with the limitations of the additional serial port created using hte library.

I am hoping I can get the developer of titan two, to add direct support to teensy 3.2 xinput based controllers. It is pretty annoying that a less powerful microcontroller like the arduino hs support while the teensy does not:

https://www.consoletuner.com/forum/viewtopic.php?f=27&t=17485&p=109138#p109138

I wish the developers/owners of the teensy boards, would also ask to both zen and titan two developers , to have the teensy work on their hardware
 
Isn't there an xinput version of Teensy's USB code floating around somewhere?

Maybe it's time to find this and merge it in as one of the permanently supported USB types...
 
Isn't there an xinput version of Teensy's USB code floating around somewhere?

Maybe it's time to find this and merge it in as one of the permanently supported USB types...

I am using this

https://www.partsnotincluded.com/how...rduino-xinput/

https://github.com/dmadison/ArduinoXInput_Teensy

But the problem stands because cronusmax zen and titan two, do not recognize the xinput teensy device when connected via usb to the zen or to the titan two.

If I use instead an arduino leonardo or an arduino micro, the xinput device based on these 2 arduino boards through this library

https://github.com/dmadison/ArduinoXInput_AVR

, gets recognized via usb cable connection by the zen and/or by the titan two.
 
Status
Not open for further replies.
Back
Top