Closed Erdeigyilkos closed 1 year ago
hello, interesting problem.
you could try to change the timer used in sbus2 library. any chance that you could switch to esp32? or you could switch to OXS RP4020
the atmega is more or less not supported any more, because it has not so much features
Hi, I thought the Atmega was no longer supported, unfortunately I don't have an ESP32 available, but thanks for the oXs, tried it and it's exactly what I need.
Hello first of all thank you for your work in creating this library. I wanted to ask about the problem. I have T16SZ, Atmega328P with GPS neo-6m and BMP180 pressure / temperature sensors connected according to your scheme with BC547 transistors.
Regarding the problem, based on the attached SUBS example, if I create a variable that I increment 1 to in each pass (or even sending const numbers) and send it to the appropriate slots, everything works fine for an infinite time. But if I start processing data from the GPS sensor, some slots values (e.g. 7 out of 12) get stuck after about 30-60 seconds and stop updating on the radio. If I'm processing data from the BMP180, the hang will only show up after 2+ minutes. The only thing that helps is restarting the arduino.
As a walkaround, I found a way connecting second arduino, which has a GPS and BMP180 sensor connected and communicates with the SBUS arduino using I2C. The jam didn't happen here, I had the build running like this for a few days without any issues.
Even though you state that Softserial can be used, I found that it also uses TIMER 2, it would also correspond to me that as soon as the data starts going over the Softserial, there will be a jam. It also seems to me that the jamming during IC2 communication is only when the SBUS arduino is in the role of I2C Master, as I write above, if it is in the role of 2C slave, then the jam occurs.
Is this a lack of the library or should I look for flaws in my codes / wiring?