Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APD ESC and Jeti telemetry #71

Closed
gamingthemarket opened this issue Mar 5, 2022 · 12 comments
Closed

APD ESC and Jeti telemetry #71

gamingthemarket opened this issue Mar 5, 2022 · 12 comments

Comments

@gamingthemarket
Copy link

gamingthemarket commented Mar 5, 2022

I have an APD F120X ESC and Jeti radio and ATmega328. I want to decode the telem using PWM over a single wire. Can you help me with this diagram? I'm not sure about 5V and ground lines. Thanks kindly!

APD ATmega2

@dgatf
Copy link
Owner

dgatf commented Mar 5, 2022

  • telemetry does not need ground
  • 5v is ok
  • pwm? You meant serial telemetry, don't you?
  • jeti goes to pins 7&12 if using ESC with serial telemetry
  • esc serial telemetry goes to rx1

@gamingthemarket
Copy link
Author

You are defining the ESC T output (telemetry) signal as serial? Just to clarify, APD F series only use UART as input for firmware. I'll try the other pins. Thanks for a fast response
F Series Wiring
!

@gamingthemarket
Copy link
Author

Also, I have read some people use an opto isolator, but I'm not sure if it's necessary on the APD F120X. My max load to the ESC is 150 amps and 35V.

@dgatf
Copy link
Owner

dgatf commented Mar 5, 2022

With Beta firmware it is feasible to send also full serial telemetry.

Depending on telemetry type, pins varies:

  • RPM output (PWM signal). Jeti to pins Rx and Tx. PWM signal to pin 8
  • Serial telemetry. Jeti to pins 7 and 12. Serial telemetry to pin Rx

@gamingthemarket
Copy link
Author

gamingthemarket commented Mar 5, 2022

I'm not using DShot. I set the Telemetry to PWM in the APD config. Does Rx1 need a resistor?

APD ATmega2

@dgatf
Copy link
Owner

dgatf commented Mar 5, 2022

RPM output (PWM signal). Jeti to pins Rx and Tx. PWM signal to pin 8

It is highly recommended 1k resistor at Tx. Though it will work without it
srxl_ibus_sb

@dgatf
Copy link
Owner

dgatf commented Mar 5, 2022 via email

@gamingthemarket
Copy link
Author

gamingthemarket commented Mar 6, 2022

Still no signal but I flashed the card wrong by only uploading the config.h. Will report back!

APD ATmega2

My config.h:
#ifndef CONFIG_H
#define CONFIG_H
#include "constants.h"
#define RX_PROTOCOL RX_JETIEX
#define CONFIG_ESC_PROTOCOL PROTOCOL_PWM
#define CONFIG_GPS false
#define GPS_BAUD_RATE 9600
#define CONFIG_VOLTAGE1 true
#define CONFIG_VOLTAGE2 false
#define CONFIG_NTC1 true
#define CONFIG_NTC2 false
#define CONFIG_CURRENT true
#define CONFIG_AIRSPEED false
#define CONFIG_REFRESH_RPM 1
#define CONFIG_REFRESH_VOLT 1
#define CONFIG_REFRESH_CURR 1
#define CONFIG_REFRESH_TEMP 1
#define CONFIG_REFRESH_DEF 1
#define CONFIG_AVERAGING_ELEMENTS_RPM 1
#define CONFIG_AVERAGING_ELEMENTS_VOLT 1
#define CONFIG_AVERAGING_ELEMENTS_CURR 1
#define CONFIG_AVERAGING_ELEMENTS_TEMP 1
#define CONFIG_AVERAGING_ELEMENTS_DEF 1
#define VOLTAGE1_MULTIPLIER 1
#define CURRENT_MULTIPLIER 1

#define CONFIG_PWMOUT false
#define PWMOUT_DUTY 0.5 // 0.5 = 50%

#define SENSOR_ID 10 // Sensor Id
#define DATA_ID 0x5000 // DataId (sensor type)
#define CURRENT_THRESHOLD 25

@gamingthemarket
Copy link
Author

APD F telemetry is PWM -> pin 8. Jeti Ex Bus output -> Tx. Wiring is the same as my prior post. I got the IDE upload working w/ the full library and config.h.

I tried this version:
RX_PROTOCOL RX_JETIEX
CONFIG_ESC_PROTOCOL PROTOCOL_APD_F

Also tried:
RX_PROTOCOL RX_JETIEX
CONFIG_ESC_PROTOCOL PROTOCOL_PWM

Jeti radio -> Apps -> Jetibox Emulator = no connection to MX for telemetry. Am I missing something?

@dgatf
Copy link
Owner

dgatf commented Mar 7, 2022

CONFIG_ESC_PROTOCOL PROTOCOL_PWM

This is the correct protocol for telemetry as RPM signal. Moreover, if you select PROTOCOL_APD_F, then Jeti would go other pins

You'll need to enter in debug mode

Change line 77 in constants.h to:

#define DEBUG_SERIAL softSerial

Connect arduino GND to programmer GND and arduino pin 12 to programmer Rx

Enable DEBUG_PWM in config.h and post output with serial monitor at 115200

Disable DEBUG_PWM and enable DEBUG_PACKET and post output

@gamingthemarket
Copy link
Author

The ESC is faulty has to be replaced. I am going to table this project. Thanks for working with me amigo, and helping to push the hobby in a good direction.

@dgatf
Copy link
Owner

dgatf commented Mar 9, 2022

You're welcome

@dgatf dgatf closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants