Society of Robots - Robot Forum

Software => Software => Topic started by: Aydin_du on March 23, 2010, 02:07:08 PM

Title: Turning off an output port ?
Post by: Aydin_du on March 23, 2010, 02:07:08 PM
Is there a way to turn off a port completely?

I have tried   pin_set(H3,FALSE);
and also act_setConnected(&S2,FALSE); which S2 is defined for H3.

But only the voltage on frequency pin (white wire is changing). I was wondering if there is a way to turn off the power pin which is the center pin of the port?
Title: Re: Turning off an output port ?
Post by: waltr on March 23, 2010, 02:51:00 PM
I think you have connect pins and a processor port pin confused.

A processor port pin can be set to a low, high or input (on most microcontroller pins).
The three pins grouped together for a device (servo, sensor, etc) to plug into on the PCB is not a port.
You need to look at the schematic for the board you have to see have the pins on the connector are wired.

Now if you design and build your own PCB you could add a power off control feature.