Discussion forum for the BasicX family of microcontroller chips.
|
Hello. I'm a student and have to finish a project in th enext days. so i would be really happy to get any hints. my problem: I have a small moveable (bx24-)robot with two wheels (driven by two modified servos). the values for the pulseout are sent to this robot by RF-serial communication from an other bx24. the communication works fine as long i do not use these values to drive the servos (pulseout). i tried to major ways: multitasking: if i set up 2 tasks, as soon as the pulseout task is active, the data i recieve by the RF-serial communication is rubbish. i tried evrything (different bauds and so on) one task: if I stop th epulseout for recieving new data input, the hole servo motion is more than sloooow.... is there a way to do it with multitasking without this rubbish data? thanks a lot for every help! greetings, martin (sorry for my bad english!) |
|
|
|
Martin, > the communication works fine as long i do not use > these values to drive the servos (pulseout).???? Are you receiving rubbish when data is sent or at random times? Sounds like the first, but I hope I can address either case... Make sure that you make your queue big enough to receive the data. Same with stack size for multi-tasking. I also had an issue when trying to communicate with another device with its input at high impedance. That also gives interesting results as both sides are "floating". Use the sender BX24 to put the line low except when sending serial data. I hope that may give some direction for you, Thad --- freymart <> wrote: > Hello. > > I'm a student and have to finish a project in the > next days. so i would be really happy to > get any hints. > > my problem: > > I have a small moveable (bx24-)robot with two wheels > (driven by two modified servos). > > the values for the pulseout are sent to this robot > by RF-serial communication from an other bx24. > > the communication works fine as long i do not use > these values to drive the servos > (pulseout). > > i tried to major ways: > > multitasking: > > if i set up 2 tasks, as soon as the pulseout task is > active, the data > i recieve by the RF-serial > communication is rubbish. > i tried evrything (different bauds and so on) > one task: > > if I stop th epulseout for recieving new data input, > the hole servo > motion is more than > sloooow.... > is there a way to do it with multitasking without > this rubbish data? > thanks a lot for every help! > greetings, martin > (sorry for my bad english!) __________________________________________________ ">http://mail.yahoo.com |