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 2 months ago

peacemosquitto commented 2 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 2 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 2 months ago
Screenshot 2024-05-09 at 2 35 44 PM
peacemosquitto commented 2 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 2 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 2 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 2 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 2 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 1 month 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 1 month ago

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