Thought i should show the finished project.
Thanks again Paul for your library.
196419651966
#include <PulsePosition.h>
// this would not be possible, for me, with out the pulseposition...
Type: Posts; User: whimsical
Thought i should show the finished project.
Thanks again Paul for your library.
196419651966
#include <PulsePosition.h>
// this would not be possible, for me, with out the pulseposition...
Francois
Nice to see another RC project here.
Do you have your project documented on the web anywhere.
Mike
The pulse position library works well.
Have you initialized the stream you want to read.
Here is a copy of the project I used it for, hope it helps.
it won't return a value for available unless...
Just correcting your comment :p
Its funny how when you have a problem you can't solve it until you ask for help, then you find it quick. I seem to have the same problem ;)
Happy it is not being difficult for you. I'm a total newbie to Arduino, this is my first play.
I couldn't find a way to delete an old lib then re-import the new one. I searched for every instance of...
After much stuffing around trying to get the latest version of the lib to be used i finally deleted Arduino and started from scratch.
IT WORKS. Hope i don't have to do that every time a lib is...
I need to do a lot more learning about arduino and cpp.
Didn't know which editor to use so i tried loading the cpp in a sketch edit it and save the sketch then use that cpp to replace the one in the...
Paul
Thats wonderful.
I have had some feedback from a few people. One is a developer for one of the RC tx manufacturers, seems most things look at the edge but there are some not so good...
2 on the way from OSH to replace the 1 I murdered
Paul
It would be wonderful if you find the time to do a couple of additions to the lib
The option to set inverted signals would be wonderful
A couple of other suggestions
#define...
stevech
hahah sounds like your as old as me. Its a long time since i saw that happen
Can get Teensy for $17, just ordered 2 because i murdered one, how cheap is the mini or are you talking about the cheap Chinese ones.
Post details when u have it done. i will be most interested.
Spread the word about Teensy everywhere you can as i think it is the answer for so many RC projects.
The more doing Teeny code the...
Sorry Paul but i accidentally murdered one of my Teensies.
Accidentally plugged it into the wrong socket and i can testify that Teensy doesn't appreciate 18V for power. Blew one pin off the board...
Here is the finished sketch for my mixer with buttons.
It works very well. I will add a few more buttons on the unused channels when i decide what i want.
Thanks again Paul for all your help.
...
I think the only things i could think of that i would do differently would be to set the default timing to 1500 uS instead of 1000. I have asked the q on a few forums if anyone knows if the 100uS...
Ignore stupid me
Being a newbie with Arduino i keep getting the ; wrong. Started putting them in automatically and the control structures don't use them DUH :rolleyes:
got it right when i did...
changed the loop to a do while and it works :confused:
2 x 8's mixed into 16 channel
#include <PulsePosition.h>
PulsePositionOutput stream; //combined trackers
PulsePositionInput...
Sorry about that here it is
#include <PulsePosition.h>
PulsePositionOutput stream; //combined trackers
PulsePositionInput trackerA;
PulsePositionInput trackerB;
This gets even stranger
if i call write with a fixed channel # and the microseconds in a variable it all works fine
stream.write(1, val);
Serial.print(val);
Serial.print(", ");
val...
a bit more info.
It seems that if there is no input stream the lib returns 255 through Acount = trackerA.available(); , B is the same.
If a signal is present when rebooting the Teensy then it gets...
Read up on serial and got it working, my pc needs a fresh win 7 install i think.
Running this test prog i get a value back from available() of 255 so the old prog is trying to output 255 channels....
Couldn't go to bed without trying a few fixed output values
Works fine
Must not be getting any input values, tomorrow
Does the read (channel) cope with the inverted signal ok?
1701
Have to research RawHID or MIDI a bit, no idea what you are talking about yet :confused:
i think i will start with just setting values to the lib and see if i can get an output then move slowly...
Blinkies both work
I shifted that but no change.
Must be doing something very wrong as i get no serial out either. Need to play more.
Control panel reports com 8 9600 baud set that in serial mon and i get nothing....
thanks for that . will give it a go.
Didn't see the sense in re-reading the available all the time as once set it shouldn't change and just adds more calls to the lib. will test it there and see...
The wait is over, my Teensy arrived today. Roughly hooked it up, powered off usb.
Didn't work. The little prog compiles and the loader seems to complete ok. Ch1 is from a head tracker on pin 6, ch...
Robin
But that's only to two places, could have done a few more :p
You mean the pulse position page. Only too happy if i can. Just getting back into modeling after a long hiatus but happy to do what i can.
That page opens for me when i click on the link in your...
Paul i spent quite a bit of time today getting to know the Arduino environment a little better. Loaded the Teensy extensions and tried to import you lib but it comes back with an error about naming...
Paul
I sure hope the mail system you use doesn't take too long the wait is killing me.
I am sure others will come as what else is suited to the RC projects, the Due but that is too big.
When i...
adeptrc Good to see someone else getting into this library. I hope the RC in your handle means your a modeler.
My poor old CRO is on its death bed so i ordered a new 100meg storage to play with my...
I am amazed so quick. I haven't got my 2 Teensies yet so i can't play :(
Quite taken that you have noticed 1 of the more subtle things about servos, shorter than 20MS frames, but then u have modded...
Have made a post in a couple of forums. Will do some more tomorrow. See what reaction i get to the Teensy.
Teensy has had its first, i think, project in the RC world interfacing what must be the best known and used autopilots telemetry output to what is becoming a hugely popular radio system based on the...
I have already pointed a couple of the diy coders on 1 of the RC forums toward the teensy and I certainly will keep pointing people towards it at every opportunity. I think given the small price...
drjohn
Thanks for that saved it for a later read.
This is what i find everywhere not enough interrupts or timer/counters with work arounds causing jitter in the output or huge amounts of latency...
A few other notable devices that is common in the RC world.
Full auto pilots with route setting by waypoints and control from a ground station much like the drones the military have. These have a...
Paul
A head tracker is used to control a remote gimble that has a camera. The video is transmitted back to the user who has goggles, which are just basically a tiny screen and there is a diy project...
The project seems to be in limbo.
Was lots of activity regarding the next 2 releases but that was 2 years ago. He did make a couple of comments in the discussion area but nothing since last August...
Also, believe me, C is vastly superior to ASM
That depends on what u want to do. For the stuff i built i wouldn't agree. Disassembled the ibm format routine for the floppy because i wanted to find...
Yes, doesn't sound hard at all but the nano only has 1 timer/counter which makes it a bit hard.
If i am going to get more involved with this stuff i want to learn 1 device that fits most of my...
Yes definitely Pulse Position Modulation and not Pulse Width
I am a tech and know the difference. They output very stable streams, at least on my CRO, and they need to remain nice and stable after...
As i said basically i need to strip the values from 2 ppm streams and then mix them into 1 and add a couple of local inputs. The devices are head trackers for control of 2 cameras in an RC model, I...
Very new to arduino and C but i have a need to learn. My project is probably not too ez for a beginner but what the hell, try anything once ;) This project needs to be very small and the nano only...