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

See Also

DSPFPGAElectronics

Discussion forum for the BasicX family of microcontroller chips.

Re: PWM - Mike Perks - May 31 11:31:00 2005

matias domin matte izquierdo wrote:

> I want to drive two 6VDC motors. I'm using the L293D to control the
> direction and speed, but I need a permanent PWM output from BX-24. Is it
> posible? I think that with multitasking this is posible, but I havent'
> done
> it.
>
> Otherway, how can I drive these motors withut adding more hardware?

There is a PWM example for the BX-24 in the documentation package. The
name of the application note is Dual_PWM_App_Note_BX24.pdf and there is
example code too. > And the las question. How can I communicate the BX-24 to a Basic Stamp 2?

I think it all depends on what you are trying to do. There are three
decisions to make:
- the hardware protocol i.e. SPI, I2C, RS232, RS485 etc which depends on
chip and physical requirements
- the software protocol i.e. What do the commands look like
- the management protocol i.e. master/slave, multiple master
b
I suggest you post another append with the details of hat you are trying
to do (and even why you need a separate Stamp) and that will help guide
our answers.

Mike





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


PWM - matias domin matte izquierdo - May 31 16:21:00 2005

I want to drive two 6VDC motors. I'm using the L293D to control the
direction and speed, but I need a permanent PWM output from BX-24. Is it
posible? I think that with multitasking this is posible, but I havent' done
it.

Otherway, how can I drive these motors withut adding more hardware?

And the las question. How can I communicate the BX-24 to a Basic Stamp 2?

Thank you very much!





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

Re: Re: PWM - matias domin matte izquierdo - Jun 1 18:38:00 2005

Thanks Mike, I don't understand something. If I use PWM like says the app
note simultaneously with other tasks, will be the PWM signal interferred?

About the comunication between bx24 and bs2, I'm just asking in case I want
to send, for example, 2 bytes between them by RS232 (maybe for having more
outputs). I really don't understand the theory, so probably I'm trying to do
something strange.

Thanks again

Bye




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