dgatf / msrc

Multi Sensor for RC with RP2040 - FrSky D, SmartPort, XBUS, SRXL, IBUS, SBUS, Multiplex Sensor Bus, Jeti Ex Bus, Hitec, CRSF
GNU General Public License v3.0
173 stars 43 forks source link

(Feature Request) Add SoftSerial to add a second serial port to the Arduino Pro Mini #13

Closed stefaanbolle closed 3 years ago

stefaanbolle commented 3 years ago

I have a feature request which might be useful when considering creation of an all-in-one sensor board. SoftSerial library is available for the Arduino Pro Mini, so maybe it might be possible to integrate softserial to unused pins to allow both GPS and ESC via a serial connection? Any thoughts?

dgatf commented 3 years ago

Softwareserial is already in use because Smartport uses an inverted serial signal. This avoids the use of external inverter circuit as is not possible to invert the hardware serial logic in the Atmega328. It would be feasible to have multiple serial ports with softwareserial but you can listen to one at the time. This won't work in this project as serial ports are constantly communicating and some information will be lost. A port for STM32F103 with multiple serial ports is on the way

stefaanbolle commented 3 years ago

Thanks!

stefaanbolle commented 3 years ago

Can you elaborate a little more on "A port for STM32F103 with multiple serial ports is on the way"? What board should I already purchase and when is the code expected? Glad to help to test.

dgatf commented 3 years ago

I'm adding support for ATMega2560 and STM32F103C8. Code is in this branch but untested. I won't be able to test it until few weeks ahead. If you want to try and test the new boards, choose the ATMega2560. I'll support

Advantages of the new boards:

If you don't need any of the previous better stay with the Pro Mini. It is still supported and it's cheaper, lighter and smaller

stefaanbolle commented 3 years ago

Thanks! I have a Mega2560 Pro Mini board on order. Want to test it out :-)

dgatf commented 3 years ago

ATMega2560 and ATMega328PB implemented and merged STM32 has been discarded