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.

Inquisitor's Content

There have been 91 items by Inquisitor (Search limited from 09-May 23)


By content type

See this member's


Sort by                Order  

#16191 Easy multiplexing with the Netduino

Posted by Inquisitor on 02 August 2011 - 03:24 PM in Project Showcase

Thank you for your response...

I guess I need to learn how to wire something up like this...Serial/Analog Mux/Demux - 74HC4052 ...
... or better yet... 16 Channel Multiplexer


... it turns out they even have a wiring example with an Arduino for us hardware challenged individuals :rolleyes:



#16185 Easy multiplexing with the Netduino

Posted by Inquisitor on 02 August 2011 - 02:14 PM in Project Showcase

Stefan,

The more I read, learn, bookmark and… then… note who the teacher is… your avatar seems to come to mind the most. Thank you for sharing your expertise (and learning curve) here, all over the forum and on your personal web site.

I’m a software type with a real fuzzy picture of the hardware world. I currently have a little science project I want to create. I have scoped it out so far, such that I need…

  • (4) PWM Outputs to control servos
  • (15) Analog inputs to receive various sensory input (if it’s significant, I’m currently looking at a mix of IR Optical Detectors and Ultrasonic Range Finders)
  • (~8) Digital outputs to light various LED’s for status and/or warning indicators.

From my simplistic concept of Multiplexing… it allows me to time slice between far more inputs or outputs than I have on the Netduino. In your example above, you have both inputs and outputs. But before I go and make an ass of myself for assuming something… does you example work for analog inputs?

If I understand correctly, could I move the purple wire from Port 12 of the Netduino… to Port 0? And then in the software read from this analog input instead?

Thanks your your help.



#16052 Detecting Water Level

Posted by Inquisitor on 29 July 2011 - 04:52 PM in General Discussion

Ran across this and remembered your request. A little pricy… but… http://www.sparkfun.com/products/10221



#15993 Interfacing with USB device

Posted by Inquisitor on 28 July 2011 - 10:58 AM in General Discussion

Warning: Software type over his head with hardware :blink:

I have a friend that has a product that uses an FTDI chip set http://www.ftdichip....rivers/D2XX.htm. If I understand it/(him) correctly... it exposes two USB ports. 1 is a "Host" port (which I gather works like a PC's USB port). His device uses this port for something else. The second port is only a "slave?/client?" port (which I gather is like a jump drive).

He planned on using this second port to connect to a MiniPC so his product could be managed over the Internet via a web interface (that I would write). The FTDI chip set provides an excellent set of libraries for everything under the Sun... except for a Netduino. :unsure: I see on the link above that they even provide drivers for other architectures like Windows CE 4.2 – 6.0 for ARM, MIP SII, MIP SIV, SH4.

I proposed to him that the Netduino might be a great fit (low power, no heavy OS, no disk, no fan… etc…). Of his shopping list of requirements the only one I couldn’t satisfy immediately was actually interfacing to the product through this second FTDI port. Is this even possible to connect to our MicroUSB port on a Netduino+? If so, how would I go about interfacing through it?

Thanks for your help!



#15939 Measuring Angle of Attack

Posted by Inquisitor on 26 July 2011 - 09:04 PM in General Discussion

And even though BernardG’s comments were derogatory in nature, I will try to use them constructively. I’m quite secure with my aerodynamic understanding, but my electronics knowledge is limited.

Can a potentiometer be configured such that by moving through only 10 degrees, the resulting input into the Netduino’s analog port uses its full 10bits without too much “noise” or resorting to a mechanical gear and be “fairly” linear? Would anyone be willing to suggest a circuit that might accomplish this?

Thanks!



#15937 Measuring Angle of Attack

Posted by Inquisitor on 26 July 2011 - 08:34 PM in General Discussion

Hum, if the object is flying, the AOA has nothing...


FOR MY VERY SPECIFIC SITUATION - Everything I have stated is completely accurate... including AOA and it being “possible” to calculate it using the Earth’s gravity or magnetic fields (thanks JonnyBoats) as a relative datum.



#15899 Installing application over TCP

Posted by Inquisitor on 25 July 2011 - 11:50 AM in Netduino Plus 2 (and Netduino Plus 1)

I've got my Netduino Plus over this weekend... and I feel like I've worn it out! :rolleyes:

Question
Is it possible to install the application over the network connection (instead of the USB)? I see that the .NET Micro Framework Deployment Tool has TCP/IP under the Device dropdown, but my device won't show up.

My real world case... the Netduino Plus would be connected on the other end of the Internet (say... at my bungalow in Tahiti or my ski chalet in Aspen “work with me here!”) And I know this might shock you… but I’ve been writing code for close to forty years and I still don’t write perfect code! I want to be able to upgrade the code remotely. Is it possible?



#15863 Measuring Angle of Attack

Posted by Inquisitor on 24 July 2011 - 04:38 PM in General Discussion

I agree with Mario, just use a simple pendulum constrained to only swinging in one plane (like the pendulum on a grandfather clock). The pendulum would swing from a simple potentiometer, and like he says there are simple ways to very accurately measure resistance. If you're worried about vibrations you could make it small and encase it in a box filled with nonconducting oil to dampen the vibrations. The viscosity of the oil would dictate how much damping you get.


Auger in!

Well... unfortunately, a pendulum although simple, won't work in my case. Think of this as being a low-flying airplane...

  • It will be accelerating faster and slower - thus the pendulum's inertia will give a false reading and drive the plane into the ground or stall it.
  • It will have some speed say (30 knots) – thus the pendulum’s air resistance will give a false reading and drive the plane into the ground.
  • Every gram counts – Weights at the end of a pendulum, oil bath, etc… and the plane will never get off the ground.

Although complex computationally, if it works as I've been reading the magnetometer sounds like a good bet so far. I’ve got to get one and see. It has the benefits of (1) no inertia, (2) no air resistance and (3) light weight. Just got to see how it works in the real world.



#15857 EasyDriver Class for Stepper Motors

Posted by Inquisitor on 24 July 2011 - 02:13 PM in General Discussion

All you need is a cast:

   int NumberOfSteps=(int)(Degrees/_CurrentResolution);


If you're an anal-retentive Aerospace Engineer (like me :blink: ) you might want to allow for the rounding instead of truncation and use one or the other of these...

    int NumberOfSteps = (int)(System.Math.Round(Degrees / _CurrentResolution));
    int NumberOfSteps = (int)(Degrees / _CurrentResolution + 0.5);



#15856 Future of Netduino

Posted by Inquisitor on 24 July 2011 - 01:54 PM in Netduino 2 (and Netduino 1)

Microsoft continues to drive the core .NET MF platform forward, and the community is pitching in with both enhancements and bug fixes.

The Netduino roadmap is driven by the Secret Labs design team and feedback from the Netduino community. As we roll out new boards and accessories over the next 14 months, you'll instantly recognize the Netduino DNA as well as the community feedback that has been incorporated into their designs.

Chris

I too, being new, am trying to get the lay of the land... Where is it most appropriate to request something added in the .NET area? Last night I was running great guns (with my background of desktop .NET) and ran over a few pot holes and finally hit a wall.

I've seen some forums have the ability to set up voting... Is it desirable and possible for an Admin to create a "pinned" thread that allows forum members to add topics and let all forum members vote? This way… Microsoft, Secret Lab and developers with the interest and ability to add functionality can see what the level of interest for a given functionality. For instance… from just my last night’s work, I would want to request…

  • string.Format()
  • StringBuilder (that I see is coming in 4.2)
  • Reflection being extended – I was ecstatic to see that it was there at all (I didn’t expect to find it). Using the Type.GetMethods() I was going great until I found no support for ParameterInfo and GetParameters.



#15776 Compiled or not...

Posted by Inquisitor on 22 July 2011 - 10:06 AM in Visual Studio

I guess its another case of... "you can't always believe what you read on the Internet". Thanks Chris.



#15744 Compiled or not...

Posted by Inquisitor on 20 July 2011 - 11:43 PM in Visual Studio

I've been reading though this section a little and have read several messages about compiling...

BUT

In my reading through topics on the Internet, I found somewhere (I can't put my hands on the article now) that the code on Netduino is ONLY interpreted. There is no compiling to CLR, nor is there any JIT compiling on the CPU. It seemed to indicate that one's C# code is actually in the assembly. I took it as gospel and moved on, because it explained to me why the 48MHz/32bit Netduino is still slower than a 16Mhz/8bit Arduino.

So...
1) is the C# compiled to CLR on the desktop into the assembly?
2) is there a JIT compiler so code isn't "interpreted" every time its RE-run?

Note... I'm not complaining... obviously since I still picked to use the Netduino. Just curious... it won't change my mind either way.



#15743 string to int's

Posted by Inquisitor on 20 July 2011 - 11:27 PM in Visual Studio

Well, I was bored. Here's an alternative ugly way to do this without using Split and Parse. Probably faster though.


Mati,

Have you or anyone else bench marked these two versions? The reason I ask... I'm new and awaiting my N+ and have too much time on my hand waiting. I read that the .NET on Netduino is interpreted and not JIT compiled like larger machines. However, I would assume all the .NET code would be precompiled. If so, I would think the Split/Parse methods would have an advantage over rolling our own substitutes. But, I'd be curious which assumption is correct.

Thanks!



#15740 Measuring Angle of Attack

Posted by Inquisitor on 20 July 2011 - 12:48 PM in General Discussion

I am sorry, but...are you meaning the angle with the Y-axis, being perpendicular to the floor?
If so, why not a simple potentiometer (maybe a precision one), then read the resistance with some (simple) circuit?
Cheers


I appreciate your response... and keeping me honest! :blink:

I neglected to mention... the object is flying and I'm needing an accurate determination of its pitch angle (AOA)... hopefully in the 0.1 degree range.

Thanks



#15738 Measuring Angle of Attack

Posted by Inquisitor on 20 July 2011 - 12:09 PM in General Discussion

Have you considered measuring magnetic field?


You know... I had a mental block... I was thinking liquid filled compass, 2D, in the horizontal plane.

But, you're right... From a high school physics standpoint, I recall... they are just lines of force and in 3D.

THANKS! That's the out-of-the-box thinking I was hoping for!

I'll dig into it tonight.



#15638 Measuring Angle of Attack

Posted by Inquisitor on 18 July 2011 - 02:31 PM in General Discussion

Once I get my Netduino+, I’ll be going through the simple stuff… one tutorial at a time. Eventually, I will get to the projects I really want to tackle. In that vein…

Question – I want to measure the angle of an object relative to the Earth. The Netduino+ and sensors will be on the object in question. I haven’t found a solution that meets all the requirements perfectly. I’m hoping someone has a better idea.

Details
• Object will be somewhere between 1 and 20 feet above a smooth floor.
• The angle relative to the Earth will be at most +/- 10 degrees
• I need the best resolution I can get… certainly less than 1 degree. 0.1 degrees would be great!
• I will need height also, but that can be separate sensors.

What I’ve Considered – I’ve ordered them to my best candidate based on my understanding of their limitations.

1. Using two of the ultrasonic sensors (http://www.sparkfun.com/products/9491) and measuring their relative height above the floor. Con: There resolution is 1 cm, so I’d need to have the two sensors over 18 feet apart to get my desired 0.1 degree resolution. I’d like to keep their distance apart less than 5 feet. Con: Expense… I’ll need about 20 of them… $900 Ouch!

2. Using two of the infrared sensors (http://www.sparkfun.com/products/242). Pro: Resolution is good enough. Con: Distance above the floor is too limited.

3. Using a gyro (http://www.sparkfun.com/products/9059). Con: It measures angular velocity and I’m under the impression that between factors like drift and the integration, I can not rely on it giving me repeatable results.

4. Using a two axis accelerometer (http://www.sparkfun.com/products/844) and calculating angle using a little Trig knowing gravity = 1.0. Con: Unfortunately the object may be accelerating up, down, forward and backward and I can’t see a way of removing those extra acceleration vectors.




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.