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

Timer/Delay


  • Please log in to reply
5 replies to this topic

#1 Adge

Adge

    New Member

  • Members
  • Pip
  • 3 posts

Posted 10 March 2012 - 03:29 PM

Hi I'm new to Netduino, C# and hardware. I'm trying to do the following Analog port reads input if input is higher than x start delay for period z if input drops below x during delay period z cancel delay do nothing, carry on monitoring inputs if input remains above x once delay period has expired do something (turn on relay) if input drops below x and whilst doing something stop doing something immediately (stop relay) I want the analog port and any others to be constantly monitored whilst the timer is running so that I can process other instructions at the same time. I also want to stop the relay chattering whilst my input signal hovers around my set point

#2 emg

emg

    Advanced Member

  • Members
  • PipPipPip
  • 129 posts

Posted 11 March 2012 - 01:04 AM

Have a look at the samples that you can download from the codeplex site. Buy Chris's book (you can find a link under this sites download section). If you don't have any programming experience, I fear you may find it tough going as you are jumping right into the deep end with threading, application design and still not even started with the hardware. Start with the basics (the wiki has a good series of tutorials as well) and build up your understanding until you can create bits of the functionality you need (read an analog port, spawn threads, have threads interact, timers, decision loops, etc) until you can piece them together. Good luck!

#3 Adge

Adge

    New Member

  • Members
  • Pip
  • 3 posts

Posted 11 March 2012 - 08:45 AM

Thanks for responding I forgot to mention. I've programmed before in Delphi, but only for Windows and web applications (with threads). I can read the input from the analog and get it to do what I want. I guess it's just the threading side I've got to get my head around in C# Micro.

#4 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 11 March 2012 - 09:09 AM

Wiki on NETMF Threading http://wiki.microfra...dex.php/Threads

#5 Adge

Adge

    New Member

  • Members
  • Pip
  • 3 posts

Posted 15 March 2012 - 07:14 PM

Have a look at the samples that you can download from the codeplex site. Buy Chris's book (you can find a link under this sites download section). If you don't have any programming experience, I fear you may find it tough going as you are jumping right into the deep end with threading, application design and still not even started with the hardware. Start with the basics (the wiki has a good series of tutorials as well) and build up your understanding until you can create bits of the functionality you need (read an analog port, spawn threads, have threads interact, timers, decision loops, etc) until you can piece them together.

Good luck!



Chris's book purchased from Amazon and is on it's way...

#6 georgejh

georgejh

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts
  • LocationGlasgow, UK

Posted 16 March 2012 - 12:32 PM

... I guess it's just the threading side I've got to get my head around in C# Micro....


Here some series of posts on threading with .NETMF.




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.