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.

EndlessHunt

Member Since 05 Sep 2013
Offline Last Active Feb 12 2014 07:52 AM
-----

Posts I've Made

In Topic: Need to monitor RC channels

12 February 2014 - 07:57 AM

Hi Wendo

 

Thanx for the reply. This is exactly what I was looking for.

 

I will be reading one channel per cable, 3 prime channels and maybe up to 5 channels 

 

Cheers

 

Deon


In Topic: My Netduino CNC Machine

09 September 2013 - 08:51 AM

 

I took a screenshot

http://imageshack.us...s/196/ec8j.png/

exception is thrown on the Limitswitch.OnInterrupt line its highlighted

Hi twinnaz

 

I do not think the problem is in your code

 

I'm writing in VB and I'm getting the same error on interrupts in my project on the OnBoardButton.Oninterrupt. I'm using the on board button for some testing of my stepper code. Basically my code starts the stepper for 1000 steps when the button is pressed. On the next press in reverses direction and steps a 1000 steps again.

 

Looks like there is some errors/bugs in the dll

 

Regards

 

Deon


In Topic: Servo control in VB.NET

07 September 2013 - 08:23 AM

Hi

 

Although I just started playing with the NEtDuino Plus 2 I do have a few years of .NET VB under the belt.

 

I'm trying to get the Servo-API code to work on a ND+2

 

I'm[font="arial, helvetica, sans-serif;"] using VS[/font] 2010 Premium SP1

Microsoft .NET Micro Framework SDK v4.2 Version 4.2.0.0 and

Netduino SDK v4.2.2.0 (64-bit)

 

On the line: servo = New PWM(DirectCast(pin, Cpu.Pin))

[font="arial, helvetica, sans-serif;"]I get the message: "[/font][font="arial, helvetica, sans-serif;"]Overload resolution failed because no accessible 'New" accepts this number of statements"[/font]

 

[font="arial, helvetica, sans-serif;"]In the first overload it expects: servo = New PWM(Channel,Frequency,DutyCycle,Invert)[/font]

The second Overload expects even more parameters

 

[font="arial, helvetica, sans-serif;"]Then on the line: servo.SetDutyCycle(0)[/font]

[font="arial, helvetica, sans-serif;"][font="arial, helvetica, sans-serif;"]I get the message: "[/font][/font]'SetDutyCycle' is not a member of 'Microsoft.SPOT.Hardware.PWM'"

The intelisense only shows 'DutyCycle' and it have to be use as: servo.DutyCycle = 0

 

[font="arial, helvetica, sans-serif;"] [/font]

[font="arial, helvetica, sans-serif;"]and the same with: servo.SetPulse(20000, CUInt(map(CLng(Math.Truncate(value)), 0, 180, range(0), range(1))))[/font]

[font="arial, helvetica, sans-serif;"][font="arial, helvetica, sans-serif;"]I get the message: "[/font][/font]'SetPulse' is not a member of 'Microsoft.SPOT.Hardware.PWM'"

there is no equivalent shown for 'SetPulse'

 

Did something in the PWM libraries change? How do we implement servo control now? Or am I missing something?

 

[font="arial, helvetica, sans-serif;"]Cheers[/font]

[font="arial, helvetica, sans-serif;"]Deon[/font]


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.