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

High resolution light measurement


  • Please log in to reply
62 replies to this topic

#61 monewwq1

monewwq1

    Advanced Member

  • Members
  • PipPipPip
  • 104 posts

Posted 20 September 2011 - 02:19 PM

The answer is yes, to both questions.


Thank you.

#62 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 20 September 2011 - 03:32 PM

Is it possible to get this sensor working with native code on Netduino, or not? Can I build my own custom Netduino firmware using the porting kit and make this sensor work?

To echo CW2, yes, absolutely. The microcontroller on Netduino has plenty of horsepower. But this is probably best changed to a "native code hacking on Netduino" thread...where those of us who write some C++ can pitch in on ways to accomplish this.

[One of those ways, which I mentioned a bit earlier, is to make that pin an FIQ-accelerated pin...and then use an FIQ handler in your code to count the number of pulses. Then you can easily create a "startcount" and "StopAndGetCount" managed code method to capture the values. FIQs will activate in less than one microsecond, will supercede the .NET MF runtime and...as long as they're quick...will not interfere with your code. We're using them for software PWM in an future update of the firmware, for instance.

Chris

P.S. This is a really friendly place. I don't think that folks were trying to tell you that you couldn't do what you were trying to do...but rather that it's possible to do what you want to do using native code...but very simple to do in managed code with another really inexpensive component. Hopefully you still feel welcome here; we appreciate a variety of people here! :)

#63 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 20 September 2011 - 03:41 PM

P.S. This is a really friendly place. I don't think that folks were trying to tell you that you couldn't do what you were trying to do...but rather that it's possible to do what you want to do using native code...but very simple to do in managed code with another really inexpensive component. Hopefully you still feel welcome here; we appreciate a variety of people here! :)

...1000% agree...
Biggest fault of Netduino? It runs by electricity.




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.