Author Topic: Turning off an output port ?  (Read 1230 times)

0 Members and 1 Guest are viewing this topic.

Offline Aydin_duTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Turning off an output port ?
« 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?

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: Turning off an output port ?
« Reply #1 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.


Get Your Ad Here