I didn't really write the code for interfacing with FSX. I took a SimConnect SDK example in Delphi, and modify it to take serial data, that's about it... If that's what you want to look at, I'll post it here...
Here's the code, will need to be modified to suit you own setup. Also, if anyone wants it, I've got a program that interfaces with FSX camera control and serial port, all you need to do is send a comma separated string of pitch, roll yaw and so on. Should make it easy for anyone wanting to control FSX camera from arduino.
With respect to the PPM noise, maybe you can try to add a limit for a maximum amount an axis can change between PPM frames. Since it is unlikely for any axis to change say >25% in 20ms (unless you have super fast commands).
Real industrial articulated robots use a counter weight or spring on the arm axis to balance the weigh of the arm and end effector, this reduces the load on the motor. Maybe you can try something like that?
OK, pretty simple stuff, I happened to have this video around. I send servo positions (as strings not bytes) from the PC program to the arduino, which runs a PMW to drive the motor controller. I wrote the program originally to test servos. I'm thinking about adding a RPM sensor and eventually measure battery voltage and current and all that, eventually...
Since it's pretty simple to do, and has probably been done hundreds of times before, I'm not going to explain too much here, unless anyone is interested.
Thanks for your help! I tried both commenting out wiring.c and cli(), made no difference. I tried your first code in this thread, commented out the code in wiring.c, and I get a fairly clear image but with noise bands rolling over. Maybe we have different PAL standards? I'm guessing my TV tuner was trying to automatically detect what the input format is, and the improper formating of the signal is making it choose the wrong format. Because if I try to watch TV after I'm done messing with it, I have to reset the signal to PAL-GB, otherwise the picture would be messed up. I'll see if I can test it on someone else's TV.
I'm about to give up, maybe get a dedicated chip or board for this. I love how the German guy's high res test picture says: "Hello World, I'm super good, and test image generator is easy"
I figured it out, I needed to change the number of the time wasting portb = black lines to get timing just right. Would this be different on different boards? Anyway, now the image is better but still not very good:
Full Hi-res can be done, but I don't think this for loop based method is fast enough, and it doesn't scale properly. Some clever math is needed.
I'm in the UK so I've got PAL as well. I hooked up my TV tuner, and got a black screen. I thought it wasn't working, but I didn't know that's what I was supposed to get! Now it's kind of working, but I get a lot of scan line looking noise:
The actual pictures looks slightly better than the still image. I disabled and enable interrupts, doesn't seem to make any difference.