Netduino home hardware projects downloads community

Jump to content

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

Michael E

Member Since 06 Jun 2013
Offline Last Active Aug 30 2013 01:14 AM

Posts I've Made

In Topic: Pin to pin via Resistor, Safe?

25 August 2013 - 07:30 PM

Hi, Thank you for your help with this problem.  Since last night I had done some research as well before bed where I learned also about the pullup/down resistors you mentioned to use on open pins.  I had no idea how that worked but now I do.  I added a 1K pulldown from D6 to GND this was before reading your post just now about the recommended 10k.  I was unable to get any even trigger afterwards even after disabling glitch filter.  I did some more reading about interrupts on this site and found an experiment that was done with the speed capabilities.  In short I have decided the Interrupt is probably being triggered too quickly by the PWM that this might not be my best option to use for a counter.  I have found an ExtendedTimer class in the NETMF Microsoft.SPOT namespace that might lead me better results.  In addition I have ordered 2 SN74HC4060N 14-STAGE BINARY COUNTER with Oscillator chips that I saw being used in a TLC5940 application elsewhere on this site.  I am still waiting for my hardware and this counter test was in preparation for receiving the TLC5941 chips I ordered.  While the test was unsuccessful I learned about floating pins, pullup/down resistors and interrupts.  And the reasons why I was reading 0mA.  Thank you for helping me better understand.

In Topic: Pin to pin via Resistor, Safe?

25 August 2013 - 03:29 AM

I figured this has to be safe so to be sure I wired it up but with the wire from D6 disconnected.  Then I used my multimeter to connect D6 to the resistor trying to measure its current value.  What I got was a suprise, it was reading 0 but however with the meter disconnected, and thus D6 dangling, I was getting triggers on my OnInterrupt rutine.  My led would randomly flash which means the interrupt while not conected was picking up something so I enabled the glitch filter and it did the same.  If i disconnect the wire completely, it stops.

        public App()        {            count = 0;            Led = new OutputPort(Pins.ONBOARD_LED, false);            BLANK = new OutputPort(Pins.GPIO_PIN_D8, false);            GSCLK = new PWM(Pins.GPIO_PIN_D5);            GSCLK.SetDutyCycle(50);            counter = new InterruptPort(Pins.GPIO_PIN_D6, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeHigh);            counter.OnInterrupt += new NativeEventHandler(counter_OnInterrupt);        }        void counter_OnInterrupt(uint data1, uint data2, DateTime time)        {            // Only reset BLANK when nessisary            if (BLANK.Read() == true) BLANK.Write(false);            if (count == 4096) // Every 4096th pulse, send BLANK            {                count = 0;                BLANK.Write(true);#if DEBUG                Led.Write(true);                Thread.Sleep(1000); // So we can visualy see count 4096 was reached                Led.Write(false);  #endif                          }            count++; // Count pulses        }

In Topic: New: Netduino 4.3 SDK and VS2012 support!

24 August 2013 - 05:49 AM

Hi Chris, I have now gone back to the production build 4.2 but was just using the 4.3 beta firmware, 4.3 sdk and 4.3 netmf sdk.  On the Netduino Plus 2.  Unsure what was causing the issues.  Thank you for your help.

In Topic: Netduino Plus 2 Firmware v4.2.2

24 August 2013 - 05:45 AM

Thanks Chris, this worked

In Topic: New: Netduino 4.3 SDK and VS2012 support!

24 August 2013 - 04:54 AM

I keep getting a message debug device not in a debug state, rebooting, and then Debugger engine could not attach to debugging target.  How can i fix this, I have done the power reset


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.