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 05 Feb 2015
Offline Last Active Apr 28 2015 02:28 PM

Topics I've Started

C# help

17 April 2015 - 01:39 PM




I'm stuck with variables format. I know this is a stupid question but I'm on it for 2 hours and I'm losing my mind.


I began in this programing stuff maybe 2 months ago, so I'm really new at it.


The problem is:


I have:

command.Data = new ushort[] { xx, yy, zz };

And I need to do:

ushort zz = System.Math.Tan(c1AngleX);

But the output of System.Math.Tan is "double", so I kinda can't have the "ushort" there.

I tried this

ushort zz = (Convert.ToUInt16 (System.Math.Tan(c1AngleX));

But I can't.




There's any way to convert "double" to "ushort"?




17 March 2015 - 10:57 AM

Just a quick question.



I'm having a small construction problem that consists on don't having enough space to have the reset button accessible in where I need Netduino to be.


The question is, how does the "/reset" pin works? that one between "IOREF" and "3V3". Can I reset my Netduino through there like the same way I do in the button? Or I have to unsold the button and resold another?






(sorry for the english, for me it makes sense, but I don't know if it is correct)




Finding bytes in byte array

12 February 2015 - 03:32 PM

I need some advice, and I think this is the right place, if it isn't, let me know.
I'm very limited on my programming knowledge, so maybe this is an easy question to answer.
I have an array of bytes that contains values like this:
byte [] values {00, 22, 33, 44,  0x55, 55, 66, 77, 88, 99, 10}   
And I need to select a number x of bytes that appear after the 0x55 into another array (I only used hex to differenciate).
byte [x] selec_values { 0x55, 55, 66, 77, 88}
I thought I could search for that byte using "array.find" and I can't. Then I tried to build a list with the array values, and... again, I can't..
Does anyone know how I do that?

CMUcam5 - Pixy. Anyone?

10 February 2015 - 06:23 PM


I'm working in a new project and trying to connect Pixy cam to Netduino. 

Has anyone worked with this camera before?

N+2, I2C, write to register

09 February 2015 - 05:36 PM

Hi . :)

I'm a newbie. And I'm not quite a programmer, I'm starting with Netduino and with some help I managed to blink the Led and with Mario's help it's now communicating using modbus (thanks again Mario).

Now I have a new dilemma, I need to receive some data using I2C and writing it to a register. I've studied the code from 




I haven't tested it yet, but someone have some other example?



And Why do I have to put the resistors?
Some time ago I used an Arduino for a similar aplication and it wasn't an issue 



Thanks in advance.





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.