- #1
FraserI
- 1
- 0
Hey guys,
So I'm working on a project currently being built off of a cheap commercial Quad-copter (Syma X1) as it's base platform. Just as a little background I am trying to make it so that it is not controlled by a remote (that is pushing knobs and levers up and down to control it) but by EMG. I have the EMG stuff all setup and working nicely with an Arduino, but I am having issues sending the data to the quadcopter.
Before I tore the remote apart it used simple potentiometers to alter a voltage (0-3v) which was then sent to a transmitter and sent off to the quadcopter where it was received and you were able to fly the thing. What I've done is removed the potentiometers and replaced them with some wiring that goes to Arduino PWM Out Pins. I then have my input coming into the Arduino via analog in pins, it goes through a mapping filter i wrote to get it to the correct voltage values and then they are sent to the PWM out pins. When I start activating the controller (flexing, causing it to change the voltage) the board sort of freaks out and resets.
I have no idea why this is and need your help! I have a few ideas... The transmitter is unable to send PWM signals? and it simply sees a huge voltage spike from 0 to 5v when i do anything as opposed to averaging based on whatever the duty cycle is OR there is some issue between the Arduino which has its own power supply and the controller which also has a power supply (when i try and ground them together the controller freaks out and tries to reset). Any help would be hugely appreciated!
So I'm working on a project currently being built off of a cheap commercial Quad-copter (Syma X1) as it's base platform. Just as a little background I am trying to make it so that it is not controlled by a remote (that is pushing knobs and levers up and down to control it) but by EMG. I have the EMG stuff all setup and working nicely with an Arduino, but I am having issues sending the data to the quadcopter.
Before I tore the remote apart it used simple potentiometers to alter a voltage (0-3v) which was then sent to a transmitter and sent off to the quadcopter where it was received and you were able to fly the thing. What I've done is removed the potentiometers and replaced them with some wiring that goes to Arduino PWM Out Pins. I then have my input coming into the Arduino via analog in pins, it goes through a mapping filter i wrote to get it to the correct voltage values and then they are sent to the PWM out pins. When I start activating the controller (flexing, causing it to change the voltage) the board sort of freaks out and resets.
I have no idea why this is and need your help! I have a few ideas... The transmitter is unable to send PWM signals? and it simply sees a huge voltage spike from 0 to 5v when i do anything as opposed to averaging based on whatever the duty cycle is OR there is some issue between the Arduino which has its own power supply and the controller which also has a power supply (when i try and ground them together the controller freaks out and tries to reset). Any help would be hugely appreciated!