hello everyone, I want to ask for help from friends in this forum. I'm making a remote from Arduino with input in the form of a potentiometer analog signal. then the arduino is connected to the DFT Receiver Module,
what should i add in that arduino program?
Please read the topic "How to get the best out of this forum". Then update Your post.
Are you trying to control 'something' remotely with the potentiometer on your Arduino? That would require a transmitter. "DFT Receiver Module" doesn't sound like a transmitter.
Yeah right I'm trying to control my drone with a potentio connected to arduino. then dariarduino sends an analog signal to the receiver module that I have. do you know what to do in the program
It sounds like the "DFT Receiver Module" is on the drone and you want the Arduino with the potentiometer to send it a control signal. What transmitter is connected to the Arduino and how is it connected?
that's what we're looking for, how to connect Arduino to the Receiver module.
i mean xjt module
It looks like the connections are marked RX, TX, +5V, and GND. I would pick two pins for SoftwreSerial and connect them to the RX and TX pins (RX to TX and TX to RX). Then you just need to find the protocol documentation to get the right baud rate and the right characters to send.
no I am required to use the pins on the back of the module namely pin, PPM(PXX), GND AND VCC. here I am confused, how to connect arduino to the pxx pin on the XJT
Drone/RC terminology is somewhat confusing on this part - most people call "receiver" the remote controller, and "transmitter" the radio in the drone...
and just when you get used to this, you see a post where these are swapped, then you go "WTF?!"
On what planet? We would laugh anyone doing that straight out of fight club.
Well, no, we wouldn't. What we woukd do is slap them silly with a damp trout, then gently correct them.
a7
OK. I don't know why you didn't mention that before.
I wrote an example of sending PPM just in the last couple of days:
so how do I get the Arduino to send data analog potentiometers to the XJT Receiver module? what do i need to write in the program. hufff I'm having trouble with the program
const byte ChannelCount = 4;
const byte OutputPin = 6;
byte InputPins[ChannelCount] = {A0, A1, A2, A3};
unsigned long LastOutputTime = 0;
void setup()
{
digitalWrite(OutputPin, HIGH);
pinMode(OutputPin, OUTPUT);
}
void loop()
{
// Every 20 milliseconds (50 Hz)
if (millis() - LastOutputTime >= 20)
{
LastOutputTime += 20;
// Send the PPM data
// Start marker:
digitalWrite(OutputPin, LOW);
digitalWrite(OutputPin, HIGH);
for (int channel = 0; channel < ChannelCount; channel++)
{
delayMicroseconds(analogRead(InputPins[channel]) + 1000);
digitalWrite(OutputPin, LOW);
digitalWrite(OutputPin, HIGH);
}
}
}
ok thanks in advance so i have to connect my pin 6 (output) to the pxx pin on the XJT right? okay then I'll try and good luck
and do I have to use opentx for this project too?
It's your funeral.
You've got a blank page, using openTX would just be a different kind of fun.
a7
hello johnwasser, I have tried your program, and sorry it doesn't work. when I turned on the potentiometer the value on the mission planner's calibration radio did not move.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.