Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Help with open collector transistor


  • Please log in to reply
4 replies to this topic

#1 netpoint

netpoint

    New Member

  • Members
  • Pip
  • 1 posts

Posted 21 April 2013 - 09:00 PM

Hi,   I have a receiver unit for a wireless PIR.

 

It has 4 logic open collector transistor outputs. How would I connect this to the netduino inputs.

 

The receiver uses a 12v supply

 

Any help would be appreciated.

 

I have attached the wiring diagram from the reciever

 

Thanks

 

Attached Files



#2 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 22 April 2013 - 11:07 AM

I think this would work, the signal would be inverted but that shouldn't really matter since you only need to interpret the signal opposite of how you normally would:

Attached File  circuit.jpg   15.09KB   14 downloads

When the PIR output is a logic high, your Netduino will see a logic low and vice versa. The resistor connected to 5V is the same pullup as seen in the left picture of the image you attached.

 

EDIT: Simplified the circuit. Oh, and have the Netduino input pin configured in pulldown mode.



#3 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 22 April 2013 - 02:41 PM

hm, for my pirs is just use netduinos on-ic pullups.

 

@hanzibal what? on your diagram is a pullup, wich is ok, but you dont want "and have the Netduino input pin configured in pulldown mode."

that doesent even make sense. (it may waste energy and maybe burn something!) -

btw: normal netduino doesent have pulldown mode, only pullup

only gen2 hgave pulldown's.

 

another hint: when using internal pullups dont make a external want. and vice versa.



#4 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 22 April 2013 - 02:54 PM

You are right, internal pull-down should not be there, my bad. It won't burn though since current will be limited by the 2k resistor.

 

Btw NooM, do you know what value the internal pull-up/down resistors are?



#5 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 23 April 2013 - 03:14 AM

no sry i dont know, it should be in the uC's datasheet

 

i guess its around 50kohm






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.