Home/Support/Support Forum/Pulse h bridge with xbee and DeviceCloud

Pulse h bridge with xbee and DeviceCloud

0 votes
I'm really stuck trying to figure out how to pulse an h bridge to control a latching solenoid. I can set the pins for polarity and then I figure I should use a PWMA pin at %100 duty for 500 ms (or thereabout) to activate the solenoid. I know I'm probably making this too complicated. I just can't get my brain around it.

I greatly appreciate any advice.
asked Oct 14, 2014 in Device Cloud-enabled RF Gateways by Avocadodude New to the Community (3 points)

Please log in or register to answer this question.

1 Answer

0 votes
I'll post an answer to my own question since I figured it out... I used do_command and set_setting with the following:
<radio>
<dio2_config>5</dio2_config>
<dio0_config>4</dio0_config>
<dio1_config>5</dio1_config>
<dio3_config>5</dio3_config>
</radio>
Wait 1
<radio>
<dio3_config>4</dio3_config>
<dio2_config>4</dio2_config>
</radio>

I didn't know I could use a wait.

Hopefully this will help someone since I could not find an answer anywhere.
answered Oct 21, 2014 by Avocadodude New to the Community (3 points)
...