2 pwm outputs?
rwgast_logicdesign
Posts: 1,464
so im just looki g to set up a quick test circuit to control my robot chasis. the plan was to add a bt uart for a bit or remote functionality t
and have that co trol two different pwn lines wired to an hbridge.
from what im reading the pwm command uses all the bs2s resources while its running? is this true the ps2 can not drive two pwm channels at once
and have that co trol two different pwn lines wired to an hbridge.
from what im reading the pwm command uses all the bs2s resources while its running? is this true the ps2 can not drive two pwm channels at once
Comments
im tryin to get some code setup real quick just to test the chasis im worried about the traction of the wheel so i really can only test this by putting some weight on the bot and doing simple motor control.
do u think i could do something like use arduino to generate the 2 pwm and turn it off and on with a bs2 im just lookin for a simple copy and paste soultion. i intend to use a propellers counters or a propeller controlling a dedicated pwm in the end, i just keep getting distracted from learning spin and pasm becuase im to busy building stuff wether it be electronics/battey packs or mechanical items such as chasis.
basically i have a bt ssp module and a prewritten serial bt remot control app on my phone i figured maybe i could plug that into a bs2 and write a few lines for forward reverse left/right then the bs2 could just just start and stop two arduino pins that are generating pwms... i just wanna get the thing rolling so i can make sure it mechanically sound and test its limits i dont even need speed controll i can just reprogram the arduino as needed to change the pwm frequency for tests
x
From http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/hb-25/List/0/SortField/4/ProductID/64/Default.aspx
In the simplest sense the HB-25 allows a DC Motor to be controlled much like a Continuous Rotation Servo. While the signals are compatible, the HB-25 does not require refreshing as a servo does; a single pulse can maintain the output.