Help with recreating an Arduino project into Netduino - Netduino 2 (and Netduino 1) - Netduino Forums
   
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 recreating an Arduino project into Netduino


  • Please log in to reply
1 reply to this topic

#1 Tinymacrocosm

Tinymacrocosm

    New Member

  • Members
  • Pip
  • 4 posts

Posted 10 October 2014 - 08:08 PM

I am working on a project as an independent study with a professor. Part of it involves doing something very similar to what was done on this website: http://www.thebox.my...ED_Sensing.html. the actual instructions start about halfway through the page.

 

I am using a Netduino 1 running the 4.2.0 firmware.

 

I currently have the LED acting as a crude light sensor but the LED does not turn glow. His first instruction is:

 

First of all in the setup() you must globally disable the internal pull up resistors with:-

    _SFR_IO8(0x35) |= 0x10;   // global disable pull up resistors

If you don’t do this, then it won’t work at all.

 

I'm uncertain as to how can i disable the pull up resistor on the entire board. If not, I would settle for disabling it from the IO pin. But i dont see any way of doing so on either an OutputPort or an AnalogInput.

 

The rest of the instructions i am a little uncertain as to what exactly he means, though I will likely try to analyze his Arduino code and convert it to .NET.



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 02 November 2014 - 04:11 PM

Hi Tinymacrocosm,

 

Pullups are disabled on OutputPorts and AnalogPorts automatically.  Although OutputPorts do automatically drive their signal voltage high/low--so if you don't mean to do that then open everything as an InputPort (or TristatePort) with pullups disabled to start with.

 

Welcome to the Netduino community,

 

Chris






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.