Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | PulseOut Values from RF-Serial - Problem

Discussion forum for the BasicX family of microcontroller chips.

PulseOut Values from RF-Serial - Problem - freymart - Jul 6 11:27:00 2004

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!)





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: PulseOut Values from RF-Serial - Problem - Thad Larson - Jul 6 16:02:00 2004

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





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )