Transmission of PWM signal not working.

AI Thread Summary
The user is attempting to control a Syma X1 quadcopter using EMG signals processed by an Arduino, replacing the original potentiometers with PWM outputs. They are experiencing issues where the quadcopter resets when PWM signals are sent, likely due to voltage spikes from the Arduino's 5V output conflicting with the quadcopter's 0-3V input requirements. Suggestions include using a simple RC filter to convert PWM signals to analog voltages, ensuring a common ground between the Arduino and the quadcopter, and implementing a voltage divider to limit the output to 3V. The importance of understanding the frequency response of the remote's voltage inputs is also highlighted. Proper signal conditioning is essential for successful integration of the EMG control system.
FraserI
Messages
1
Reaction score
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!

jg8eZsm.jpg
 
Engineering news on Phys.org
I bet the Pwm needs to be converted to 0-3V analog.

It sounds like the controller sends analog signals somehow (I don't know your controller/receiver/servo method) not data.

Conversion can be as simple as a single pole rc filter.
 
It seems like you have 4 of the PWM outputs from the Arduino connected to the remote board but no common. You will need to have a return path for current from the remote board to the Arduino. There should be no problem connecting the grounds of these two systems. Scaling could definitely cause problems with the 3V system receiving 5V signals. Also, since you don't know the frequency response of the remote voltage inputs, you should put a filter on the PWM to "convert" it to an analog voltage. A simple RC network on each PWM output should make some improvements. I would suggest a voltage divider that will limit the output voltage to 3V with a capacitor across the 3V output. Size the capacitor by calculating the time constant that will give you reasonable response of the remote (50ms should be decent).
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top