PWM output question

Started by soso soso in BasicX12 years ago 1 reply

Hi ~ =20=20=20 I have a question about PWM output of BX24. I use BX24's PWM output to control a dc motor with driver LM18200L, and I= set...

Hi ~ =20=20=20 I have a question about PWM output of BX24. I use BX24's PWM output to control a dc motor with driver LM18200L, and I= set the PWM rate-setting as 1 and 8-bit mode so that the freq of PWM is ab= out 14kHz. But, suddenly, the PWM doesn't work, there is a bias voltage, ab= out 2.5V, so that PWM output won=A1=A6t go to 0V, and it is not a square wa= ve. I have checked the P...


Help my PWM

Started by soso soso in BasicX12 years ago

Hi~ =20=20=20=20=20=20=20 Question about PWM output: =20=20=20=20=20=20=20 I am using BX24=A1=A6s PWM (pin26) to control a 24V...

Hi~ =20=20=20=20=20=20=20 Question about PWM output: =20=20=20=20=20=20=20 I am using BX24=A1=A6s PWM (pin26) to control a 24V DC motor with a = driver LMD18200, and it has no problem at all. However, suddenly, the PWM = doesn=A1=A6t work, while other function is fine. Also I have checked by usi= ng the dual PWM problem provided, the following cases can be observed. =20=...


Re: Update on PWM Generation

Started by Mike Perks in BasicX13 years ago

Here is an update on a question I posted a few days ago about alternatives to the builtin PWM generators in BasicX. I wanted IR remote ...

Here is an update on a question I posted a few days ago about alternatives to the builtin PWM generators in BasicX. I wanted IR remote capability via InputCapture and this also uses the same Timer1 required for PWM generation. My solution for now (until I get more experience in AVR programming) is to use some analog circuits to generate the PWM and the


The PWM filter

Started by ricinecwh in BasicX11 years ago 2 replies

Somebody tell me the PWM can be used in the Digital to analog conversion, and it is the best way to convert the digital output of the basicX...

Somebody tell me the PWM can be used in the Digital to analog conversion, and it is the best way to convert the digital output of the basicX microcontroller. do anybody have the knowledge about the PWM code of the basic? Thank you very much


Dithering PWM?

Started by Tom Becker in BasicX13 years ago 8 replies

I'm PWM'ing a DC motor with Timer2, so it's 8-bit PWM, which I'm running at 450Hz. 30:1 gearing brings the output shaft to 1RPS when the...

I'm PWM'ing a DC motor with Timer2, so it's 8-bit PWM, which I'm running at 450Hz. 30:1 gearing brings the output shaft to 1RPS when the motor is at 1800RPM. I'd like the 1RPS to be as accurate and stable as possible. Currently, the motor approaches 1800RPM but, due to the relatively large PWM steps, hunts about the target speed slightly as code alternatel


PWM

Started by clauja81 in BasicX14 years ago 2 replies

I am working on a proyect where I need to generate four PWM's. As you know I can generate two of them with pin 26 and 27, but I...

I am working on a proyect where I need to generate four PWM's. As you know I can generate two of them with pin 26 and 27, but I need two additionals. Does anybody has a program to generate this additional PWM ?


PWM on other pins

Started by Ed in BasicX13 years ago 4 replies

Is it possible to connect the PWM to other pin than 25, 26 or 27? For example pin 7 or 18? Thanks Ed ......

Is it possible to connect the PWM to other pin than 25, 26 or 27? For example pin 7 or 18? Thanks Ed ... No. The BX-24 PWM outputs are restricted to those pins by the 8535 ... Ed, No is the simple answer if you want to make use of the hardware generated...


Measuring PWM

Started by Don Kirby in BasicX11 years ago 1 reply

Hello all, I'm looking for a simple way to measure multiple PWM signals at one time. Can anyone suggest a method to convert PWM to voltage...

Hello all, I'm looking for a simple way to measure multiple PWM signals at one time. Can anyone suggest a method to convert PWM to voltage to avoid the need to actually time the pulses? I was thinking perhaps a simple doide wave shaper, but I haven't been able to get it to work as I would expect it to just yet. -Don


PWM to I2C

Started by sturgessb in BasicX10 years ago 4 replies

Hi Guys Im having a problem where the need to read 5 channels of PWM is causing my control loop to run very slowly (for obvious...

Hi Guys Im having a problem where the need to read 5 channels of PWM is causing my control loop to run very slowly (for obvious reasons). So I would like to move this job onto a different IC. I was thinking of perhaps 5 small 8pin PICS that solely have the job of continuously reading the PWM signal and storing it in a variable that can be read by my BasicX-24 on via I2C on demand. ...


PWM Hardware problem???!!!

Started by power_overwhelming_4 in BasicX13 years ago 11 replies

I just recently soldered header pins on the pins 25, 26, 27 of the BX-24 chip. Last month I tested the PWM in pin 26 via the...

I just recently soldered header pins on the pins 25, 26, 27 of the BX-24 chip. Last month I tested the PWM in pin 26 via the example program in BasicX "PWM Example" and it worked, including the dimming of the green LED (which is connected to the pin 26). Ho


PWM Controller

Started by Mike Perks in BasicX12 years ago

Here is my latest project which is a circuit to offload PWM generation from the BasicX chip. I needed to do this because I had a conflict...

Here is my latest project which is a circuit to offload PWM generation from the BasicX chip. I needed to do this because I had a conflict with using Timer1 for InputCapture. I have provided a schematic, example board layout and a description of the circuit in the "PWM Controller" project on this page:


PWM & Timer

Started by soso soso in BasicX12 years ago 2 replies

Hi~ I have a question about timer. In my applicaiton, PWM is always used to control a DC motor, but I also want to use the command...

Hi~ I have a question about timer. In my applicaiton, PWM is always used to control a DC motor, but I also want to use the command "timer" to calcuate the time interval of a function. for example: main() CallTask "PWM_Task", PWM_STACK 'a PWM task that always run do A = timer call function() 'just a example function B = t


Is it possible to increase the PWM beyond 14kHz?

Started by Ed in BasicX12 years ago 1 reply

Hi I read the application notes for PWM and I assume that maximum speed would be around 14kHZ. For my project I would need more than...

Hi I read the application notes for PWM and I assume that maximum speed would be around 14kHZ. For my project I would need more than 20kHz, would it be possible to overclock the BasicX? Would it mess the OS? Any solution for this? Thanks Ed


PWM Generation

Started by Mike Perks in BasicX13 years ago 17 replies

Since first getting started with BasicX 5 months ago, I have hit my first real snag. I am generating dual PWM for motor control and now I ...

Since first getting started with BasicX 5 months ago, I have hit my first real snag. I am generating dual PWM for motor control and now I want to add an IR remote that needs InputCapture. There is a conflict because both need to use Timer1 at the same time. This is really more of a problem with the underlying Atmel chip than BasicX. My brief scan of the grou


PWM controllers

Started by larzyharzy in BasicX13 years ago

I want to control the color of four light boxes depending on different sensor input. I want each box to be able to go through...

I want to control the color of four light boxes depending on different sensor input. I want each box to be able to go through the whole color spectrum independently of each other. I imagine having 4 full color LED clusters - so I would need 12 PWM outputs in total. I


can we have more than 2 PWM ports on BX24P?

Started by Yuli in BasicX8 years ago 20 replies

Hi BX24 gurus, The BX24 example code shows that we can configure Pin26 and Pin27 as PWM signal output ports, is it possible to have one more?...

Hi BX24 gurus, The BX24 example code shows that we can configure Pin26 and Pin27 as PWM signal output ports, is it possible to have one more? If so, how can we configure it? Thanks Yuli ------------------------------------


Re: PWM

Started by Mike Perks in BasicX12 years ago 4 replies

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...

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


PutPin(25) and PWM?

Started by Tom Becker in BasicX13 years ago 1 reply

I'm momentarily baffled. Why does PutPin(25) interfere with PWM on 26 and 27? Tom Tom Becker --... ...-- ...

I'm momentarily baffled. Why does PutPin(25) interfere with PWM on 26 and 27? Tom Tom Becker --... ...-- www.RighTime.com The RighTime Clock Company, Inc., Cape Coral, Florida USA +1239 540 5700


Serial input and PWM

Started by George Graham in BasicX14 years ago 9 replies

I am stalled in my autopilot project for my homebuilt airplane. I planned to use the background PWM, however, my servo motors ...

I am stalled in my autopilot project for my homebuilt airplane. I planned to use the background PWM, however, my servo motors go crazy. I am confused by the term "percent duty cycle" used in the documentation. I sometimes read in serial data from a GPS


DC motor control

Started by Tom Becker in BasicX13 years ago 3 replies

I've been using H-bridges conventionally by applying direction and braking to the driver inputs and PWM speed to the enable input. I...

I've been using H-bridges conventionally by applying direction and braking to the driver inputs and PWM speed to the enable input. I see another method in an appnote that intrigues me. If opposing PWM is applied to the H-bridge driver inputs (i.e. one input is inverted), then