BrainFPV / tbs-fusion-py

A Python package to control the TBS Fusion analog video receiver module over a serial connection
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Pi4 to ESP32 to TBS Fusion #2

Open peacemosquitto opened 6 months ago

peacemosquitto commented 6 months ago

I'm trying to connect via serial to the TBS fusion using an ESP32 to create a half duplex connection the fusion module and then use the esp32 as a passthrough to my Pi4. Do you have an example hardware laydown of how would be best to achieve this as I keep getting 'No Data Received' or 'Sync bytes invalid'.

peacemosquitto commented 6 months ago

When I hook up the logic analyser I can see my transmitted message, and when setting the frequency this works but I don't get any response from the fusion.

peacemosquitto commented 6 months ago
Screenshot 2024-05-09 at 2 35 44 PM
peacemosquitto commented 6 months ago

Looking at the analogue there's definitely a small signal coming back but not enough to register. Possible hardware fault? I'm currently powering the fusion from a dedicated power supply module so current draw shouldn't be an issue.

Screenshot 2024-05-09 at 3 27 03 PM
mluessi commented 6 months ago

@peacemosquitto please share the schematic that shows how it is connected to the ESP32. If the ESP32 doesn't support half-duplex, it needs a circuit with two FETs as shown in the documentation

peacemosquitto commented 6 months ago

This is just the signal coming from the RXTX pinout when I transmit to it. If the logic analyzer is unable to recongize the return signal then the ESP32 can't either. The ESP32 supports half duplex using SoftwareSerial.

mluessi commented 5 months ago

@peacemosquitto the fusion has a 10k Ohm series resistor on the TXRX pin, so if the ESP32 doesn't switch the pin to input immediately after sending the data, the fusion won't be able to pull the signal low. You may need to use full duplex and the external circuit to make it half duplex.

peacemosquitto commented 5 months ago

Thank you, that's cleared that up. Are you able to recommend hardware that can connect via full duplex to the TBS Fusion?

mluessi commented 5 months ago

@peacemosquitto I'm not sure if I understand the question. The fusion itself is half duplex, so you need a half duplex hardware to connect to it.

peacemosquitto commented 5 months ago

Apologies my mistake, are you able to recommend some half duplex capable hardware?

antoxi4 commented 3 months ago

Apologies my mistake, are you able to recommend some half duplex capable hardware?

Hi @peacemosquitto , did you figure it out with that problem?

peacemosquitto commented 3 months ago

No unfortuantely not. My main requirement was to remotely change the frequency so I just wired the Fusion to the Pi's UART Tx and changed it that way. It would still be good to have a simple example of connecting a Pi to a Fusion that would allow bi directional comms. I tried adapting the wiring diagram on page 3 of the documentation but without success

antoxi4 commented 3 months ago

No unfortuantely not. My main requirement was to remotely change the frequency so I just wired the Fusion to the Pi's UART Tx and changed it that way. It would still be good to have a simple example of connecting a Pi to a Fusion that would allow bi directional comms. I tried adapting the wiring diagram on page 3 of the documentation but without success

Same stuff, i want to get some frequencies analysing data from tbs. but there is no any response.

antoxi4 commented 3 months ago

No unfortuantely not. My main requirement was to remotely change the frequency so I just wired the Fusion to the Pi's UART Tx and changed it that way. It would still be good to have a simple example of connecting a Pi to a Fusion that would allow bi directional comms. I tried adapting the wiring diagram on page 3 of the documentation but without success

Problem solved, i used schema for RS485 instead way on page 2/7. I just bought MAX485E and integrated it as it shows in schema on page 3/7. but i remove from my scheme 120 Ohm resistor. And everything works fine, i can get response from TBS.