Netduino home hardware projects downloads community

Jump to content


Nevyn

Member Since 27 Dec 2010
Offline Last Active Yesterday, 02:32 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.

 

Regards,

Mark




#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.

 

Regards,

Mark




#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.

Regards,
Mark


#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: http://www.netduino.com/downloads/But 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.

 

Regards,

Mark




#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.

 

Regards,

Mark




#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.

 

Regards,

Mark




#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.

 

Regards,

Mark




#64377 More Digital I/O

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

I am programming in vb.net.  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.

 

Regards,

Mark




#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,

Mark




#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.

 

Regards,

Mark




#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.

 

Regards,

Mark




#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.

 

Regards,

Mark




#62866 NeonMika.Webserver

Posted by Nevyn on 25 May 2015 - 11:20 AM

Managed to get this working on the Netduino 3 with a little bit of fiddling:

  1. Upgraded all the project to NETMF 4.3
  2. Changed the reference to the NetduinoPlus assemby to Netduino
  3. Some of the SecretLabs assemblies in the WebServer project had to be manually removed and replaced with 4.3 versions
  4. Had to remove the call to interf.EnableDhcp() in Server.cs as this is not implemented.  Also commented out the line below it.  Will investigate later.

But it's up and running...

 

Regards,

Mark




#62841 Hang in CC3100 socket for HttpWebRequest

Posted by Nevyn on 24 May 2015 - 07:23 PM

I've tried the sample and it locks for me too.  Note that I did not use a NetduinoGo button but the on board button.

 

However, if you move the call to SendRequest from inside the interrupt for the button and place it just above the last line of code (I replaced the while with a Thread.Sleep(Timeout.Inifinte)) call then you get a response from Google in a reasonable time.

 

Hope this helps,

Mark




#62815 How to reduce pin usage

Posted by Nevyn on 23 May 2015 - 05:34 PM

There are a few options, the most common one people have used here is to use a single 74HCT595 shift register.  This will allow you to use three pins and have 8 outputs per chip.  You need the HCT version as this will allow you to use 3.3V outputs to communicate with the chip.  There's a fair amount of examples in the forums here for using these chips.

 

There are other chips such as the MCP23S17 which has 16 input/output pins.  This one uses SPI but there are I2C versions out there.

 

Hope this helps,

Mark






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.