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.


Member Since 27 Dec 2010
Offline Last Active May 31 2021 02:37 PM

#66129 SPI on VB?

Posted by Nevyn on 19 December 2016 - 09:44 PM

I'm not aware of any SPI examples in VB.  However, have you tried taking one of the C# examples and using one of the online convertors to translate the C# to VB?  I believe Telerik have a free online service.




#65304 Netduino Plus 2 Firmware v4.3.1

Posted by Nevyn on 05 July 2016 - 06:28 PM

In my experience, upgrading the firmware on the board tends to be the same for each board family and does not change between firmware versions.




#65192 ND3 cannot seem to create an interrupt handler

Posted by Nevyn on 14 June 2016 - 06:15 AM

I think you need you application to look something like this:

public static InterruptPort button = new InterruptPort(Pins.GPIO_PIN_D0, false, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeLevelHigh);

public static void Main()
    button.OnInterrupt += Button_OnInterrupt;

private static void Button_OnInterrupt(uint data1, uint data2, DateTime time)
    throw new NotImplementedException();

The IDE generated the code for the interrupt and the attachment when I pressed the tab key following the +=.




#64813 Wi-Fi Shield for Netduino Plus 2

Posted by Nevyn on 27 January 2016 - 01:25 PM

Wouldn't that just be called a wireless router ?


A WiFi shield without the mod you are suggesting costs 78 in the UK but I can get a router for less than 20.


Sorry, but given the price of routers I can't see the point of this solution.




#64682 Deploy with custom software (without VS)

Posted by Nevyn on 28 December 2015 - 07:29 AM

After sleeping on this overnight I remembered that the Mono work is old and probably applies to the Atmel processors in the original Netduino boards and not the latest STM32 boards.


#64676 Forum was away from home for a while-- what happened?

Posted by Nevyn on 27 December 2015 - 05:38 AM

As far as source code for Netduino, the code is here: yeah it would be cool if there was a github project that we could contribute to. Maybe there is one, but I did a quick search and did not find it.

Some of the code is available on GitHubbut I don't think (I'm not 100% sure) that all of the code for all platforms is is there.




#64531 I2C strange behavior

Posted by Nevyn on 18 November 2015 - 06:51 AM

If the data sheet says the peripheral address is 0x40 then shouldn't you be using this in the .NET code: 

0x40 << 1

The top 7 bits are used to hold the address of the peripheral, the bottom bit indicates if it is a read or write transaction.




#64513 I2C strange behavior

Posted by Nevyn on 15 November 2015 - 08:39 AM

Usual question with I2C - have you installed pull-up resistors if the board you are using does not already have them installed.




#64488 General support from Secret labs

Posted by Nevyn on 11 November 2015 - 09:37 PM

I have gotten help from Nevyn and ShVerni.  They have been very helpful.

Thank you.




#64476 Minimum Vin Power

Posted by Nevyn on 10 November 2015 - 03:16 PM

I think you can power with 5V.


The barrel jack input is a minimum of 7.5V but the 5V header pin can take 5V.  You just need to make sure you get the regulation right.




#64377 More Digital I/O

Posted by Nevyn on 27 October 2015 - 06:56 AM

I am programming in  Is it possible to use your driver without converting it?


I know you can do this with standard C# and VB.  I'd normally do something like:

  1. Create a new project in your VB solution with the C# code in it and compile the code to a DLL.
  2. Next make sure the C# code is CLS compliant.  I think there is an attribute for this.  Yes there is - add [assembly:CLSCompliant(true)] under your using statements.   You will get errors if the code is not compliant.
  3. Reference the DLL in your VB project.

BTW - if you really need to convert the code then Telerik have a free online converter.




#64171 Interrupts

Posted by Nevyn on 21 September 2015 - 05:25 PM

It would be less processor intensive to use a timer to do this along with an interrupt which triggers on either a rising or falling edge.


So set up a timer which triggers every 100ms.  This would just toggle the LED.


In your interrupt handler for J1pin4 you would check the edge of the interrupt.  If it was a falling edge then you would enable the timer and return from the interrupt handler.  If the interrupt was generated on a rising edge then you would turn the timer off.


Hope that makes sense,


#63967 I2C Bus Problem - Debugging

Posted by Nevyn on 24 August 2015 - 03:48 PM

The original Netduino did used to use the analog pins for I2C.




#63767 PWM

Posted by Nevyn on 04 August 2015 - 06:39 PM

Not really.


To be honest if I wanted a single pulse I'd probably look at a simple timer like the NE555 and see if I could trigger the start event from the Netduino.


Not sure if you could but that would be a starting point for me.




#63028 Converting libraries built for Ardiuno

Posted by Nevyn on 03 June 2015 - 03:10 AM

Nothing automated, just have to plough through the algorithm by hand.




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.