Reading multiple PWM sources?

Started by Dan in BasicX11 years ago 1 reply

Thanks in advance for your advice... I'm totally stumped. I would like to read two PWM sources with the BX and output a combined signal,...

Thanks in advance for your advice... I'm totally stumped. I would like to read two PWM sources with the BX and output a combined signal, somewhat like making my own servo mixer. The end result will be a downward-looking stabilized camera mount (already working) that an onboard computer can send an "offset angle." The stabilization offers a level-reference that allows the offset angle to p...


Need some help with Power MOSFET driver

Started by "James R. Parish" in BasicX10 years ago 6 replies

I'm using DACPIN out of the BX24 to drive an opamp. The opamp then drives a MOSFET. This circuit works but the heatsink gets very...

I'm using DACPIN out of the BX24 to drive an opamp. The opamp then drives a MOSFET. This circuit works but the heatsink gets very hot, like 150 degrees F pushing 1.25 amps. I have read that MOSFETs will run cooler using PWM. I'm running the MOSFET in its linear region is why all the unnecessary heat. Does anyone have a quick-n-easy way to change this circuit to a PWM output feeding...


Duty Cycle with PWM output

Started by nathanchronister in BasicX14 years ago 2 replies

Hi. I'm trying to set up the Dual PWM Output as described in the BX24 application notes. Could someone explain the function of the...

Hi. I'm trying to set up the Dual PWM Output as described in the BX24 application notes. Could someone explain the function of the high and low registers? From the example, it looks like the high register is always set to zero, while the low register is given a number from 0 to 2


PWM Driving motors

Started by arhodes19044 in BasicX14 years ago 2 replies

I am driving motors via the hardware PWM. I have the H-bridge and all the electronics all set and it works great. I had heard that ...

I am driving motors via the hardware PWM. I have the H-bridge and all the electronics all set and it works great. I had heard that higher frequency driving is superion to low frequency. Like 7KHz vs 14Hz. I set up a test program to drive the motor ar a variety of frequencies at 5


BX-24 PWM Driver Assistance ?

Started by deltapparo in BasicX12 years ago 2 replies

I have a BX-24P mounted in a mini-ABB carrier board. I would like to use the code in the application notes: Dual PWM (PWMexample.bas) as...

I have a BX-24P mounted in a mini-ABB carrier board. I would like to use the code in the application notes: Dual PWM (PWMexample.bas) as a starting point. I am using a Lynxmotion Dual H-Bridge DC Motor Driver for hardware. My first question is: Do I connect BX-24 pins OC1A and OC1B to the A+ and A- inputs for one side of the dual H-Bridge? I only want to drive one motor. And then it looks li


full color LED - controlled by PWM

Started by larzyharzy in BasicX14 years ago 2 replies

I have a full color LED (consisting of a red, green and blue diode). I want to be able to set the intensity of red, green and blue...

I have a full color LED (consisting of a red, green and blue diode). I want to be able to set the intensity of red, green and blue light, to have full control over which color you see. I found a PWM example that I have modified so I can control two of the leds - but how can


Big Trouble Running Open Source Motor Controller with BasicX

Started by patrickreidus in BasicX8 years ago 1 reply

Hello Guys! How do I run one of Chris Baron's OSMC motor controller with a BasicX microcontroller? I think the OSMC requires 0-100% duty...

Hello Guys! How do I run one of Chris Baron's OSMC motor controller with a BasicX microcontroller? I think the OSMC requires 0-100% duty cycle PWM power signal. The BasicX micro puts out a 1.0 - 2.0 ms PWM pulse train which is a totally different thing. I have been using my BasicX 24 since 2005 and I have never been able to generate a power signal in the form of a pulse; say 0% duty c...


Processor math speed

Started by vtol...@bellsouth.net in BasicX11 years ago 1 reply

I'm am mixing some PWM signals and storing them as global variables (about 50 variables) to be used in different modules. I can store them as...

I'm am mixing some PWM signals and storing them as global variables (about 50 variables) to be used in different modules. I can store them as integers, but would like to do some math operations with variables that are singles (probably 30 math operations). Would it be faster to store the PWM signals as singles, or convert from integers to singles then back to integers when I do the math op...


Re: Kalman Filter Code

Started by sturgessb in BasicX11 years ago 1 reply

I see this code is for PWM generating sensors, have you tried this code with ADC type? Cheers Ben

I see this code is for PWM generating sensors, have you tried this code with ADC type? Cheers Ben


Line Following - Help

Started by Terence Everett in BasicX15 years ago

----------------*************--------------- Can someone help me with a line following routine? I have tried everything and my...

----------------*************--------------- Can someone help me with a line following routine? I have tried everything and my robot runs pathetically around a figure 8. I am using the Hardware PWM for my 12v wheel motors. There is a long pause at the beginning until both wheels


Re: IP Theft. Was (DC motor Questions (was PWM Generation))

Started by Tom Becker in BasicX13 years ago

> ... I spent a lot of time thinking and writing... > ... someone else is likely to do the same. That's not stealing; that's legitimate...

> ... I spent a lot of time thinking and writing... > ... someone else is likely to do the same. That's not stealing; that's legitimate independent discovery. And, as you describe it, what you developed might be _the_ optimum solution, ultimately obvious in that strict environment. In that case, perhaps it should be expected that every competent att


Wish list

Started by Matthew Daughtrey in BasicX15 years ago 9 replies

Have the PWM outputs go to 40KHz and let them be gated by the PulseOut command. This way you could oscillate and modulate an IR LED...

Have the PWM outputs go to 40KHz and let them be gated by the PulseOut command. This way you could oscillate and modulate an IR LED with no external components. Since this can't be done right now, can anyone recommend a simple solution for 40KHz generation?


DAC code needed

Started by "James R. Parish" in BasicX10 years ago 3 replies

I have been away from my beloved BX-24 chores (other than buying a Kubota BX-24J) and now find I have a project that needs a BX-24. I need to...

I have been away from my beloved BX-24 chores (other than buying a Kubota BX-24J) and now find I have a project that needs a BX-24. I need to get a DAC going with 0-5V from 00000000b-11111111b. I assume we can use PWM out of the BX-24 with a filter on the pin correct? Anyone have a sniplet of code ready to do this? Thanks, Jim


Reversable speed ctlr...

Started by Francisco Lobo in BasicX13 years ago 2 replies

Looking for a good schematic of a reversable 10AMP, speed controller to be controlled with my BASICX using PWM.. Do someone know of a...

Looking for a good schematic of a reversable 10AMP, speed controller to be controlled with my BASICX using PWM.. Do someone know of a good one i can use to learn about this subject? THANKS!


PWM motor control - newbie question

Started by lwtcdougm in BasicX12 years ago 2 replies

so I'm using the sample code associated with Dual_PWM_App_Note_BX24.pdf and works great, but when I try to use any pins other than the...

so I'm using the sample code associated with Dual_PWM_App_Note_BX24.pdf and works great, but when I try to use any pins other than the pins used in the code (26 & 27) it doesn't work. I think this means there's a magic number somewhere, and I think it is the Masks, Mask0C1A and Mask0C1b but I'm just guessing. Anyway, does anyone have any samp


Re: IP Theft. Was (DC motor Questions (was PWM Generation))

Started by arhodes19044 in BasicX13 years ago

And sometimes the similarity is due to the fact that there is ONE good way to do the job. I once wrote some ASM code to use the PC...

And sometimes the similarity is due to the fact that there is ONE good way to do the job. I once wrote some ASM code to use the PC FPU for some intense 80 bit repetetive math operations. Not many variables, but a TON or recursive calculations. It was possible to do nearly all the calculations in the FPU stack. It was as streamlined as I knew ho


Controlling a large DC load

Started by Sloan Thrasher in BasicX13 years ago 2 replies

Hi all! I'm working on a project where I need to control a large 24 volt DC motor with a BX-24. The draw at full load would be around 150...

Hi all! I'm working on a project where I need to control a large 24 volt DC motor with a BX-24. The draw at full load would be around 150 amps. (not including back EMF) What would be the most cost effective route to go? MosFETs? How can I reduce EMI if I use PWM? I'm also hoping to use electronic braking to help recharge the batteries.


Replacing a BS2

Started by psouvereyns in BasicX14 years ago 2 replies

I have a dimboard with a bs2 on it (from the shop). Because i want to send the signal though rs232 and by pushbuttons to dim some...

I have a dimboard with a bs2 on it (from the shop). Because i want to send the signal though rs232 and by pushbuttons to dim some channels. The chip must do 3 things, look at the rs232, pushbuttons and repeat the pwm value. Thats something a bx24 does better. Though a r


handling multiple interrupt sources?

Started by arhodes19044 in BasicX13 years ago 50 replies

I have gotten the basics done on the rally computer. I would like to have the timer generate an interrupt. I COULD do this the...

I have gotten the basics done on the rally computer. I would like to have the timer generate an interrupt. I COULD do this the crude way and have the PWM generator make something that ticks at about one Hz, or a simple multiple thereof. I could route the output of that to Pin 11 and trigger an interrupt. However, I am already using Pin 1


Re: Kalman Filter Code

Started by sturgessb in BasicX11 years ago 3 replies

Im really struggling to get this to work with ADC accel unit (im using 5dof board from sparkfun). Anyone sucessfully got this working using...

Im really struggling to get this to work with ADC accel unit (im using 5dof board from sparkfun). Anyone sucessfully got this working using ADC gyros and accellerometers rather that PWM? fancy sharing your code? :) Also, it seems it only calculated angle for 1 axis, would it be possible to extend this to both pitch and roll attitude estimation? Cheers Ben