go_away

Author Topic: Turning off an output port ?  (Read 680 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,665
  • Helpful? 84
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.

 

Related Topics

  Subject / Started by Replies Last post
8 Replies
2729 Views
Last post November 26, 2007, 08:04:26 AM
by jsmoker
8 Replies
2321 Views
Last post August 18, 2008, 07:41:07 PM
by Gertlex
8 Replies
1965 Views
Last post December 02, 2009, 09:56:35 AM
by taba93
4 Replies
1444 Views
Last post September 05, 2010, 06:25:54 PM
by moltrex84


Get Your Ad Here

data_list