London
Offline
Faraday Member
Karma: 6
Posts: 6226
Have fun!
|
 |
« Reply #195 on: July 27, 2008, 04:38:55 am » |
What is the relationship you want between the input pulses and the output pulses?
|
|
|
|
|
Logged
|
|
|
|
|
Switzerland
Offline
Sr. Member
Karma: 0
Posts: 261
|
 |
« Reply #196 on: July 27, 2008, 04:41:05 am » |
Hmm I thought that my Hitec servos need a Pulse between 900 and 2100.
One thing when i test the "// ServoDecodeTest" it does show me the error Not_Synched. But whne I siwtch the transmitter of it does show "Failsafe".
Why not_snyched?
|
|
|
|
|
Logged
|
|
|
|
|
Switzerland
Offline
Sr. Member
Karma: 0
Posts: 261
|
 |
« Reply #197 on: July 27, 2008, 04:47:28 am » |
sorry the values are right i can use them for controlling the servo without map()....
|
|
|
|
|
Logged
|
|
|
|
|
London
Offline
Faraday Member
Karma: 6
Posts: 6226
Have fun!
|
 |
« Reply #198 on: July 27, 2008, 05:01:13 am » |
One thing when i test the "// ServoDecodeTest" it does show me the error Not_Synched. But whne I siwtch the transmitter of it does show "Failsafe".
Why not_snyched? Not synched means the decoder has never received a valid signal. A valid signal consists of all channel pulses within the minimum and maximum values followed by a valid sync pulse, with the time values defined in the header file. It will only enter the fail-safe state on an invalid signal after has detected at least one complete valid frame. More complex detection of an invalid signal is awaiting some spare coding time. Any volunteers for this are welcome
|
|
|
|
« Last Edit: July 27, 2008, 05:01:25 am by mem »
|
Logged
|
|
|
|
|
Switzerland
Offline
Sr. Member
Karma: 0
Posts: 261
|
 |
« Reply #199 on: July 27, 2008, 05:13:14 am » |
Ah ok thx!
Just one thing the values from the different channels they always jump (like 1201, 1202 , 1203) so the Servo is always vibrating. Do you know a way to get a stable pulse?
PS: Thx for all your help!!!
Andy
|
|
|
|
|
Logged
|
|
|
|
|
London
Offline
Faraday Member
Karma: 6
Posts: 6226
Have fun!
|
 |
« Reply #200 on: July 27, 2008, 05:25:35 am » |
You can filter the pulse data if you need to, but first make sure that the servos are not drawing more power than the arduino regulator can supply . If you need it, I think there is some filter code to do a moving average in the playground.
|
|
|
|
« Last Edit: July 27, 2008, 05:44:32 am by mem »
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 7
Arduino rocks
|
 |
« Reply #201 on: July 27, 2008, 04:49:17 pm » |
Mem,
Thank you, yes, I had put the ServoTimer2 code in the ServoDecode folder... I told you I was new to all this!
Thanks so much for your help. I got it running and doing a simple routine with 3 servos. I can't wait to put this into my robot so that door opens, claw lowers, claw raises, door closes!!! This is great and I never could have done this without your incredible code!
Jamie
|
|
|
|
|
Logged
|
|
|
|
|
Shanghai China
Offline
Newbie
Karma: 0
Posts: 17
Boomii is my robot
|
 |
« Reply #202 on: December 28, 2008, 09:41:21 am » |
Hi,
ServoTimer2 seems very great. Could you please release your librarie ServoTimer2 ? Thanks!
|
|
|
|
|
Logged
|
my robot, my dream.
|
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 27
Arduino rocks
|
 |
« Reply #204 on: March 06, 2009, 12:03:09 pm » |
Anyone have the 3 axis auto stabilized platform working? If yes, it have kalman filtering?
I bought acel. and gyros from sparfun. I'm very interested in this project.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 12
Arduino rocks
|
 |
« Reply #205 on: June 04, 2009, 11:59:15 am » |
Hello,
I'm new to this forum and could use a little help for my Arduino project. I'm trying to get my receiver working with some code I got, but my talents are close to 0, so here I am :-(
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 12
Arduino rocks
|
 |
« Reply #206 on: June 04, 2009, 12:08:37 pm » |
in fact, I have some code for a 4 propellers heli (Quad) but my radio does not want to work with it, the code is only working with Spektrum receivers. I have worked for over two weeks trying to get it work with bits and pieces I found everywhere, but as I am very new to Arduino, and code is not my strength, I have been searching more and found out about this forum and noticed that mem's interventions are very documented and talented. After lurking for a while, I decided to register and try to get help on this board. Could someone help me please, I'm close to the edge :'(
|
|
|
|
|
Logged
|
|
|
|
|
Sweden/Västerås
Offline
Newbie
Karma: 0
Posts: 22
Arduino rocks
|
 |
« Reply #207 on: October 04, 2009, 03:04:09 pm » |
Hi!
I have some trobble getting the code that mem wrote to compile in the arduino 17 enviroment. Has anyone succesfully compiled that code in the 17 version???
If so, I whould like to now how.
|
|
|
|
|
Logged
|
|
|
|
|
Sweden/Västerås
Offline
Newbie
Karma: 0
Posts: 22
Arduino rocks
|
 |
« Reply #208 on: October 05, 2009, 03:01:10 am » |
OK, now I got the arduino 17 to at least start to compile but I get all theese errors: f:/arduino-0017/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected unqualified-id before 'int'
f:/arduino-0017/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'
f:/arduino-0017/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'
I have tested the same code in arduino 11 and it works just fine. But in 17.... Is there a problem in the stdlib for arduino 17??
|
|
|
|
|
Logged
|
|
|
|
|
London
Offline
Faraday Member
Karma: 6
Posts: 6226
Have fun!
|
 |
« Reply #209 on: October 05, 2009, 04:20:07 am » |
Frisken, have you tried the code posted in this thread: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1228137503/0it has the fix for the problem introduced in releases later than 0011.
|
|
|
|
« Last Edit: October 05, 2009, 04:20:59 am by mem »
|
Logged
|
|
|
|
|
|