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

"Open Collector"


  • Please log in to reply
3 replies to this topic

#1 bill.french

bill.french

    Advanced Member

  • Members
  • PipPipPip
  • 260 posts
  • LocationPrinceton, NJ

Posted 19 January 2011 - 12:30 AM

Form the manual for my uLCD-144: (emphasis mine)

Master Reset signal. Internally pulled up to 3.3V via a 4.7K resistor. An
active Low pulse greater than 2 micro-seconds will reset the module. If
the module needs to be reset externally, only use open collector type
circuits
. This pin is not driven low by any internal conditions. The host
should control this pin via one of its port pins using an open
collector/drain arrangement.


From wikipedia, I feel like I have a good handle on what "open collector" means -- but how do I do that with a netduino?

#2 Mark H

Mark H

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • LocationPerth, Western Australia

Posted 19 January 2011 - 02:59 AM

Exactly as the circuit in the wikipedia article shows.

Posted Image

Connect IC Ouput to one of the pins on your netduino, IC ground to the GND pin on the netduino, and "Open" collector to the reset pin on your LCD.




Then to reset, set your Digital output to true for more than 2us (a 1ms Thread.Sleep is heaps of time) and that will pull the reset pin to ground.

#3 Fred

Fred

    Advanced Member

  • Members
  • PipPipPip
  • 302 posts
  • LocationUK

Posted 19 January 2011 - 11:16 AM

You forgot a resistor between the Netduino pin and the base of the transistor in the diagram above. There will also be the issue that the netduino pin will float high as it boots up and will reset the external device. Personally, I'd try connecting the Netduino directly. It does have an internal pull-up resistor to 3.3V, but I suspect this won't make any difference. The warning probably relates to connecting something (maybe an Arduino) that pulls up to another voltage like 5V.

#4 bill.french

bill.french

    Advanced Member

  • Members
  • PipPipPip
  • 260 posts
  • LocationPrinceton, NJ

Posted 19 January 2011 - 12:49 PM

Great, thanks for the feedback. I wasn't sure if with the netduino I could set it to an inputport and get the same open collector effect -- or use some other technique in code that does not require a transistor (and resistor as fred stated!) Right now I have it hooked up directly to the netduino and it works fine. So.... :)




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.