- Netduino Forums
- → Mark H's Content
Mark H's Content
There have been 70 items by Mark H (Search limited from 24-April 23)
#15623 Happy Birthday to Chris Walker
Posted by Mark H on 18 July 2011 - 09:02 AM in General Discussion
#14414 .NET Micro Framework minimun requirements
Posted by Mark H on 17 June 2011 - 04:05 AM in Netduino 2 (and Netduino 1)
#14412 Power Netduino (Linksys WRT-54Gl)
Posted by Mark H on 17 June 2011 - 04:00 AM in Netduino 2 (and Netduino 1)
#14411 Beginner advice netduino vs arduino
Posted by Mark H on 17 June 2011 - 03:57 AM in Netduino 2 (and Netduino 1)
#14269 Servos and batteries
Posted by Mark H on 13 June 2011 - 07:32 AM in Netduino Mini
#14268 Silverlight Client and Server for Netduino Plus
Posted by Mark H on 13 June 2011 - 07:30 AM in Project Showcase
#14267 OK this is not Netduino, but it could be!
Posted by Mark H on 13 June 2011 - 07:26 AM in Project Showcase
#14262 Measuring temperatures
Posted by Mark H on 13 June 2011 - 07:05 AM in Netduino 2 (and Netduino 1)
With 6.25mv/C, and a 424mv offset to 0C... you just need to take the ADC port value in milivolts (3300/ADC value) and subtract 424, then divide by 6.25f to get your reading in celcius.
// gain = 6.25 mV/Deg C int mv = sensor.Read() - 424; // 424mv = 0 return mv / 6.25f;
#14261 LCD works on USB but not wall adapter
Posted by Mark H on 13 June 2011 - 06:00 AM in General Discussion
#14260 PCB design and manufacturing
Posted by Mark H on 13 June 2011 - 05:58 AM in General Discussion
#14259 GPS - with Sirf Star III module
Posted by Mark H on 13 June 2011 - 05:43 AM in General Discussion
#12635 Designing PCBs - what tools are you using?
Posted by Mark H on 29 April 2011 - 10:59 AM in Netduino 2 (and Netduino 1)
Eagle is at http://www.cadsoftusa.com
The nice thing about design spark is there are no limits, like eagle has. Eagle limits board size and layer count like crazy, even on paid versions!
#10183 GPIO speed (MHz)
Posted by Mark H on 25 February 2011 - 12:50 PM in Netduino 2 (and Netduino 1)
#9750 while(true)
Posted by Mark H on 18 February 2011 - 07:18 AM in General Discussion
#9739 while(true)
Posted by Mark H on 18 February 2011 - 01:58 AM in General Discussion
#9303 Quad.Net Quadrocopter for .NETMF
Posted by Mark H on 11 February 2011 - 03:31 AM in Project Showcase
#8868 Quad.Net Quadrocopter for .NETMF
Posted by Mark H on 02 February 2011 - 06:38 AM in Project Showcase
#8865 Quad.Net Quadrocopter for .NETMF
Posted by Mark H on 02 February 2011 - 05:44 AM in Project Showcase
4x TURNIGY Sentry 25amp Speed Controller
4x Turnigy 2217 20turn 860kv 22A Outrunner
2x Woven Carbon Fiber Sheet 300x100 (2.0MM Thick)
2x Carbon Fiber Square Tube 750x10.5mm
to build a quadcopter from.
I only really need one CF sheet, however the second gives me spares lol.
#8649 Class Library
Posted by Mark H on 29 January 2011 - 02:40 AM in General Discussion
#8609 Class Library
Posted by Mark H on 28 January 2011 - 07:47 AM in General Discussion
#8603 OutOfMemoryException [UPDATE]
Posted by Mark H on 28 January 2011 - 04:54 AM in Netduino Plus 2 (and Netduino Plus 1)
#8602 Coding style discussion
Posted by Mark H on 28 January 2011 - 04:51 AM in General Discussion
Brandon, I think you're reading my comments in the wrong tone - i meant them as a general comment, not targeted at anyone specific. I'm an Aussie, we're pretty layed back and chill - if in doubt, just read my post as a layed back view pointMark,
Thank you for your comments, this forum has truly tested my ability to hold my tongue and be professional.
I will try to make a point of not posting questions that expose you to my "amateur / ignorant" coding techniques shared by ms mvps and the ms clr team.
Great community we have here.
Please feel free to take a look at these links:
IDesign have an exceptional coding standard for C#, which a lot of companies I know of base their standards on. These are basically an expansion of Microsoft's:
http://www.idesign.n...ng Standard.zip - zip with PDF.
This is what Microsoft use internally: http://blogs.msdn.co.../26/361363.aspx
The guideline for creating class libraries is a rather informative read: http://msdn.microsof...y/ms229042.aspx
And this is the book I mentioned (which I recommend every developer - professional, amatuer and enthisuast alike read) - http://www.amazon.com/dp/0321545613/ - on on Book Depository if you're not in the USA (free shipping! woo) http://www.bookdepos...sign-Guidelines
#8596 Quad.Net Quadrocopter for .NETMF
Posted by Mark H on 28 January 2011 - 03:55 AM in Project Showcase
Whoa a month, i guess i need to stop procrastinating......
heres my ideas hardware wise, would like some opinions, you mentioned using a better BEC, so I have taken it off the list open for your suggestions, keeping in mind i am trying to be very modular is the reason for the component shield
Motor 6 $6.00 $36.00 http://www.hobbyking.com/hobbycity/store/uh_viewItem.asp?idProduct=5354&aff=104834 ESC 6 $9.23 $55.38 http://www.hobbyking.com/hobbycity/store/uh_viewItem.asp?idProduct=6458&Product_Name=Hobbyking_SS_Series_25-30A_ESC_%28card_programmable%29&aff=104834 Props 8 $4.00 $32.00 https://www.mikrocontroller.com/index.php?main_page=product_info&cPath=75&products_id=256&zenid=43fb24fa5fbee9bca99cea5ee6462e48 Battery 3 $19.00 $57.00 http://hobbycity.com/hobbyking/store/uh_viewItem.asp?idProduct=7634 Battery Charger 1 $25.00 $25.00 http://www.hobbyking.com/hobbyking/store/uh_viewitem.asp?idproduct=2055 Frame 1 $90.00 $90.00 http://quadframe.com/html/quad002.html RC Transmitter 1 $60.00 $60.00 http://hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=8992 ITG3200/ADXL345 1 $65.00 $65.00 http://www.sparkfun.com/products/10321 Component Shield 1 $22.00 $22.00 http://www.robotshop.ca/ghi-component-shield-v2.html JST Sensor Cable 20 $1.76 $35.20 http://www.robotshop.ca/inex-jst3aa-sensor-cable.html
Sorry for the double post - however my other post is so off topic it's not funny, and I worried you wouldn't read to this part.
I'd like to make a few suggestions to you - I've been flying for 15 years, and worked for several years in a hobby shop for fun as a second job. These are of course just suggestions.
For your charger, get one of these: http://www.hobbyking...=7028&aff=19701
This will give you far more options for charging batteries, which is safer - and more versatile. I bought one of these for my father-in-law-to-be for christmas. This will let you charge many different types of battery and also discharge/cycle batteries as well which can be very handy.
For your transmitter, if you don't need 9 channels get one of these: http://www.hobbyking...=9041&aff=19701 with http://www.hobbyking...idProduct=9043. This is the basic 6ch tx and usb cable. The USB cable is just a SiLabs VCP. The controller can then be programmed by software on a PC. The software is rather ugly and not very good, but it works and will save you a bunch of money.
I assume you're getting 2 motors as spares? Those are pretty crappy and you in my experience you may have a dud in the 6, so that's a good idea.
ESC's - I'd suggest http://www.hobbyking...=4312&aff=19701 - I don't trust any ESC's except Turnigy Plush/Sentry honestly. I've had a couple of planes go down in a ball of smoke (or fire) because an ESC failed and caught fire - or the PCB turned to ash from the heat. I have pictures somewhere at home heh. Your motors max draw is only 14.5A, so 30A esc's are just extra weight. A Turnigy 18A plush has Fairchild HEXFET's rated to about 22A.
Battery should be fine, that will allow you 20A/motor in a quad copter. If you're building a Hexcopter you'll need a bigger battery, or higher C rating.
Frame: That looks pretty darn tacky for $90 - i'd want a lot more for my $90 than that. I've seen similar to that for about $40. Chris Seto can probably point you at a couple of basic stick type ones for cheap, i know he did a lot of research into them a couple of months back. Personally, I'd go for something like: http://www.foxtechfp...rame-p-196.html - these are plywood which is easy to repair and it's built extremely strong - they'll take some pretty big crashes
#8595 Coding style discussion
Posted by Mark H on 28 January 2011 - 03:34 AM in General Discussion
#8543 Quad.Net Quadrocopter for .NETMF
Posted by Mark H on 27 January 2011 - 09:16 AM in Project Showcase
Thanks Mark that makes sense, we need to just concentrate on throttle and throttle alone.
Chris thank you for the forum etiquette reminder. The posts were fast given we we had discovered the algo at the exact same time i replied and implemented it in code, i've attached our algo. i think you might be on to something as far as making it a scaling variable that can change as the flight conditions change.
using System; namespace Quad.Net.Commons.Utilities { public class Scale { private readonly double[] _coefficients; private readonly double _offset; public Scale(double offset, params double[] coefficients) { _coefficients = coefficients; _offset = offset; } public double Calculate(double value) { double output = 0; for (int i = 0; i < _coefficients.Length; i++) { output += Math.Pow(value + _offset, i) * _coefficients[_coefficients.Length - i - 1]; } return output; } } } namespace Quad.Net.Tests { [TestFixture] public class ScaleTests { [Test] public void TestQuadratics() { Scale scale = new Scale(-1500, 0.0000008, 0, 0, 0); Assert.AreEqual(scale.Calculate(1000),-100); } } }
Move your _coefficients.Length statement to it's own local variable, before you loop and then reference that. It's much faster in netMF than referencing the property.
Also, underscores are against most best practices for .Net
- Netduino Forums
- → Mark H's Content
- Privacy Policy