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.

perpetualKid

Member Since 15 Apr 2013
Offline Last Active May 11 2015 03:10 PM
-----

Posts I've Made

In Topic: EventHandler vs specific thread

12 November 2014 - 05:15 AM

I think the while loop is not necessary. You will read as many bytes as available to read, and exit the eventhandler. Once there are more bytes available, the event will be raised again and you continue reading. You just need some marker in your data which marks the end of a message, typically crlf or | or so 0x00 etc.
There is no guarantee that all data arrives in a single batch in the eventhandler, at max it may come byte by byte (at least the order is kept). So you need some buffer or stream to hold already received data until the remainder is coming as well.

In Topic: serial comunication between Netduino & PC

08 September 2014 - 04:39 PM

seems your compiler resolves to SecretLabs.NETMF.Hardware.Netduino.SerialPorts, whereas you want System.IO.Ports.SerialPort . Make sure in your new-statement it is SerialPort, not SerialPort*s*

In Topic: Multiple InterruptPorts being fired?

14 July 2014 - 09:34 PM

maybe you can post your code so we can have a look? :)

In Topic: Netduino servo class

14 July 2014 - 09:30 PM

in that code above it should be these lines defining the servo range

 

// Typical settings
range[0] = 1000;
range[1] = 2000;

 

Typically a 1500ns pulse defines the midpoint, and you may try some broader range to turn your servo the full 180 degree. I'm sure there is some spec available where you could read up the lower and upper boundaries, else just try in some steps like 950 and 2050, 900 and 2100 etc to find the full range. Some servos go as braod as 500 for the low bound (range[0]) up to 2500 for the upper bound (range[1]).


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.