- Netduino Forums
- → Bendage's Content
Bendage's Content
There have been 149 items by Bendage (Search limited from 19-May 23)
#23255 Netduino Serial Port Code Review
Posted by Bendage on 24 January 2012 - 10:16 PM in Project Showcase
#23266 Netduino Serial Port Code Review
Posted by Bendage on 25 January 2012 - 03:12 AM in Project Showcase
#23313 Netduino Serial Port Code Review
Posted by Bendage on 25 January 2012 - 06:14 PM in Project Showcase
#23321 What's the latest .NET MF and firmware?
Posted by Bendage on 26 January 2012 - 03:10 AM in Netduino Plus 2 (and Netduino Plus 1)
#23323 Common Libraries
Posted by Bendage on 26 January 2012 - 04:14 AM in General Discussion
#23324 Common Libraries
Posted by Bendage on 26 January 2012 - 04:18 AM in General Discussion
#23329 Common Libraries
Posted by Bendage on 26 January 2012 - 04:53 AM in General Discussion
#23330 Common Libraries
Posted by Bendage on 26 January 2012 - 05:00 AM in General Discussion
#23331 Drilling down to the StackFrame
Posted by Bendage on 26 January 2012 - 05:28 AM in Netduino Plus 2 (and Netduino Plus 1)
#23332 Is that a Netduino Plus reading my mail?
Posted by Bendage on 26 January 2012 - 05:40 AM in Project Showcase
#23351 Netduino-compatible embedded webserver
Posted by Bendage on 27 January 2012 - 06:34 AM in Netduino Plus 2 (and Netduino Plus 1)
#23535 Serial framework Bug?
Posted by Bendage on 30 January 2012 - 10:38 PM in Netduino Plus 2 (and Netduino Plus 1)
#23539 Serial framework Bug?
Posted by Bendage on 30 January 2012 - 11:15 PM in Netduino Plus 2 (and Netduino Plus 1)
#23541 Serial framework Bug?
Posted by Bendage on 30 January 2012 - 11:34 PM in Netduino Plus 2 (and Netduino Plus 1)
#23640 Library for HC_SR04 Ultrasonic Rangefinder
Posted by Bendage on 01 February 2012 - 10:33 PM in Netduino 2 (and Netduino 1)
Someone might find this code useful. I found these HC SR04 ultrasonic rangefinders on amazon for $15 but they had no code. I found some Arduino code, but was pretty useless for Netduino because it used blocking for the timing. So I wrote my own that uses interrupts for the timing.
We used this successfully on a mobile robot for detecting obstacles. Accurate to sub-inch against hard surfaces. It is calibrated for my altitude and climate, you may need to adjust the InchConversionFactor and LatencyTicks for your environment. If you want it to read centimeters, just add your own TicksToCentimeters function.
Enjoy and feel free to improve it.
I did!
Thanks for sharing!
#23662 EasyDriver Class for Stepper Motors
Posted by Bendage on 02 February 2012 - 07:18 AM in General Discussion
#23704 Delay microseconds
Posted by Bendage on 02 February 2012 - 11:03 PM in Netduino 2 (and Netduino 1)
#23705 6 degrees of freedom
Posted by Bendage on 03 February 2012 - 12:01 AM in Netduino 2 (and Netduino 1)
Hi Jacques, unfortunately I don't own one of those, just de ADXL345. I sincerely do hope you get some more useful answers then mine. But if not, from the info at Sparkfun (it is basically an ADXL345 accelerometer + ITG3200 gyro on the same breakout-board), it appears like you could start by using the info on the Loveelectronics site and get at least the accelerometer part working with your Netduino plus. From there hopefully you can extend their code to include the gyro output.
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;
namespace accelerometer
{
public class Program
{
// Define our accelerometer inputs
static AnalogInput accX;
static AnalogInput accY;
static AnalogInput accZ;
public static void Main()
{
// Create the Inputs
accX = new AnalogInput(Pins.GPIO_PIN_A0);
accY = new AnalogInput(Pins.GPIO_PIN_A1);
accZ = new AnalogInput(Pins.GPIO_PIN_A2);
while (true)
{
Debug.Print("accX: " + accX.Read().ToString());
Debug.Print("accY: " + accY.Read().ToString());
Debug.Print("accZ: " + accZ.Read().ToString());
}
}
}
}
#23706 Delay microseconds
Posted by Bendage on 03 February 2012 - 12:11 AM in Netduino 2 (and Netduino 1)
private void DelayMicroseconds(int microseconds) { long delayTime = microseconds * 10; long delayStart = Utility.GetMachineTime().Ticks; while ((Utility.GetMachineTime().Ticks - delayStart) < delayTime) ; }
#24238 How to use COM1 and COM2 together
Posted by Bendage on 14 February 2012 - 07:10 PM in General Discussion
#24280 Infrared library for Netduino
Posted by Bendage on 16 February 2012 - 04:52 AM in Project Showcase
#24360 Speaker class and Netduino Keyboard
Posted by Bendage on 18 February 2012 - 01:48 AM in Project Showcase
#24815 Creating Enum instances using Reflection
Posted by Bendage on 28 February 2012 - 05:28 PM in General Discussion
There is an Enum.Parse under the full framework but it does not exist under MF.
Trying to figure out how to parse an enum myself.
#24829 Convert.ToBoolean
Posted by Bendage on 28 February 2012 - 09:31 PM in Netduino 2 (and Netduino 1)
#24831 Creating Enum instances using Reflection
Posted by Bendage on 28 February 2012 - 09:33 PM in General Discussion
- Netduino Forums
- → Bendage's Content
- Privacy Policy