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.

Mario Vernari's Content

There have been 49 items by Mario Vernari (Search limited from 28-April 23)


By content type

See this member's


Sort by                Order  

#60860 Azure Veneziano

Posted by Mario Vernari on 04 December 2014 - 08:08 AM in Project Showcase

Third part completed...(scroll to top)




#61093 Azure Veneziano

Posted by Mario Vernari on 29 December 2014 - 10:49 AM in Project Showcase

Seeedstudio LinkIt ONE board porting completed...(scroll to top)




#60873 Azure Veneziano

Posted by Mario Vernari on 05 December 2014 - 07:52 AM in Project Showcase

Many thanks everybody, but that's only the beginning!

 

I'd like to create something funnier, so I'd invite anyone is interested to join.

I know that many of you like robots, buggies, Legoes and other evil machines. The idea is to "connect" those toys to the cloud (for a limited time), and leave them to interact by themselves.

 

Feel free to suggest what you think and share your opinions.

Have a nice weekend!

Mario




#61680 Netduino MiniSumo robot

Posted by Mario Vernari on 21 February 2015 - 04:36 AM in Project Showcase

They are a polish team, and I think their bot is C++ based on a homegrown PCB. They have two microcontrollers onboard. One exclusively for sensors, and one for motors.

 

It's just a matter of time: C# will definitely beat C++, and the world will be a nice place to live...(and programming machines will be feasible without brain transplant)
 

In april there'll be a couple hundred robots in Wien for an annual competition. Robotchallenge.org. I haven't been there yet, but can hopefully go next year. 

 

 

April in Wien? Really? Do you mean this year (2015)? At the end of April I should travel very close to Wien: let me know the details...




#61690 Netduino MiniSumo robot

Posted by Mario Vernari on 22 February 2015 - 04:54 AM in Project Showcase

It's on the 11th and 12th of april this year.

See http://www.robotchallenge.org

I won't be able to go this year, but hopefully next year.

 

Oh!...My chance would be near the end of April, not before.

Definitely better the next year, so I'll take the chance to visit the city once again (really worthwhile).

Cheers




#61669 Netduino MiniSumo robot

Posted by Mario Vernari on 20 February 2015 - 05:05 AM in Project Showcase

Amazing! Very nice indeed...

I know it's a dumb question, but...why they run so fast?

Just another question...who's "Enova"? I mean, which kind of "brain" powers it?




#61613 Another custom PCB based on Netduino Plus 2

Posted by Mario Vernari on 15 February 2015 - 06:33 AM in General Discussion

That's very nice, but...some questions:

  • where are the I/O pins (or else) for sensors and related?
  • the Wi-Fi is an option/alternative to Ethernet, or is unavailable?
  • could you post an image of the bottom view?

Congrats so far, and good luck!




#61937 0-5V input, 0-20mA output via NDP2

Posted by Mario Vernari on 24 March 2015 - 01:10 PM in Netduino Plus 2 (and Netduino Plus 1)

Very nice, congrats!

To who's reading, this circuit may be useful for current-loop circuit, that is "sending" an analog signal over a very long cable. The more straightforward and intuitive voltage-way leads to pretty high errors.

 

You should have to post it in the "showcase" category: it seems more appropriate.




#61113 D13 - LED On Screwshield- Issue with SPI?

Posted by Mario Vernari on 01 January 2015 - 10:26 AM in Netduino Plus 2 (and Netduino Plus 1)

Hello Chris, and have a happy new year, as well as your family.

 

The led shouldn't be an issue, because the current flowing is low. I'd recommend to keep the SPI speed relatively low, let's say 1-2 MHz max. Also try to keep the SPI wiring short (6 inches max) and, possibly, of the same length (SCLK, MISO, MOSI, SS).

The general rule is: the slower the signals are, the easier will be everything work fine.

 

Have a nice holidays.

Mario




#62468 Power Questions

Posted by Mario Vernari on 06 May 2015 - 04:06 AM in General Discussion

A diode is a semiconductor component which allows the current flowing only to one direction:

  • when drawn as a symbol, the arrow indicates the direction
  • when a real component, there's a striped which indicates the outgoing lead.

However, when the current is flowing there's a small voltage drop across the leads, roughly 0.6V (it's an exponential formula, though).

 

About what you want to do, consider the internal point where the power is needed: this point is Vin.

 

Suppose to feed the power through the barrel. Let's say exactly 10V, but there's a diode on the board (D_board), so the Vreg is expected to 10-0.6 = 9.4V. Everything's working fine.

There's a 9V battery connected with a diode (D_bat) to the same Vin point. Now, the voltage on the positive lead is 9V MINUS the voltage on the Vin is 9.4V, yields -0.4V which is lesser than the minimum required for the D_bat to allow the current flowing. That is, under these conditions the battery can't feed any energy, and all the power is given by the barrel.

 

Now detach the power barrel.

The voltage on the Vin pin WOULD drop to zero, but AS SOON the point falls below 9-0.6=8.4V, the D_bat begins to allow the current flowing. The battery now is the only one feeding energy.

Why 9-0.6=8.4? Because 9V is the battery voltage (on the positive lead) and 0.6V is the drop of the D_bat diode.

 

NOTE: I used 10V as the barrel voltage to emphasize the circuit's behavior. However, 10V is not a standard voltage for an adapter. If you have a common 9V adapter, you'll experience kinda "challenge" between the adapter and the battery: the one having the highest voltage will actually feed the board. Bear in mind that a new battery has typically a voltage slightly higher than the nominal, but decreases also easily.

I suggest to make some experiment, but if you want to be super-guaranteed there's no "challenges" anytime, just use TWO diodes in series for the battery. At this point the drop is 0.6+0.6=1.2 and the barrel should "win" all the times!

FW3RYJJGA0O8T9C.LARGE.jpg




#62444 Power Questions

Posted by Mario Vernari on 05 May 2015 - 04:21 PM in General Discussion

The short answer to the first question is: yes, but...

The long answer is: there is the "Vin" pin on the header which is basically the same as the power barrel pin. However, you can't wire a battery directly to the Vin pin, but you must add a diode in series to the positive lead. The ground of the Netduino should be connected to the negative lead.

 

The second question leads to a simpler answer.

The current required by a Netduino may span from 50mA to 200mA: it depends on the model, on the state, on the hardware connected.

Then, check the nominal capacity for a 9V battery here: http://en.wikipedia....ne-volt_battery

Finally, divide the capacity by the current flowing.

Let's say you have a Zinc-Carbon battery (400mAh) and the average current for the Netduino is 100mA. You'll have 400mAh / 100mA = 4 hours.

Bear in mind that a more practical result would lead to the time halved or a bit more.

 

Good luck.




#61115 D13 - LED On Screwshield- Issue with SPI?

Posted by Mario Vernari on 01 January 2015 - 04:03 PM in Netduino Plus 2 (and Netduino Plus 1)

Very appreciated, thanks.

 

Just a small note more, although maybe you won't face this case.

You know, the SPI must be "opened" (enabled), and of course can be "closed". When it's closed, the D13 pin (as well as the others involved) can be used as a normal I/O. That is, whenever you set that pin as "input-with-pullup", the led+res act instead as a pull-down. Thus, you should "avoid" this (let's call) collision, because the resulting (floating) voltage may be at an intermediate level, which results in an unstable read.

 

Again, just an alert than a concrete issue. However, if the led+res were connected to the I2C pin that would have been a very annoying trouble, because I2C leverage the pull-up resistors.

 

Hope it's clear.

Cheers




#61635 Finding bytes in byte array

Posted by Mario Vernari on 17 February 2015 - 05:16 AM in Visual Studio

Hmm...but what do you mean as "the first one"? That is, what's the expect "end of block"?

Looks like you have to deal with a kind of pattern, and you have to extract all its occurrences...

 

Anyway, before knowing what's you answer, you may also consider another way to deal with such a situations. It may sound as an overkill, but when you have to deal with data extraction (in general), composition, and others function to/from a byte array, the below one is maybe very neat.

http://cetdevelop.co...eArrayReader.cs

(and related classes)

 

It's basically a bunch of classes for byte-array manipulation: reader, writer, data extraction and insertion, etc.

Please, note that the library is a bit "aged" (about two years), but should be working fine with the latest firmwares.

Cheers




#61557 set brightness for Room light

Posted by Mario Vernari on 07 February 2015 - 03:15 PM in Netduino Plus 2 (and Netduino Plus 1)

 

Please be careful - mains voltages can and do kill people!

...

 

Have (safe) fun - Paul

 

Hence the famous words: "make love, don't make war, and play with mains responsibly"...




#61606 Finding bytes in byte array

Posted by Mario Vernari on 13 February 2015 - 11:31 AM in Visual Studio

Aveiro, Portugal! My wife was there once, and told me it's an awesome city!

 

As far I know, there's no any immediate way to achieve kinda "Array.find", but of course you can create it. If you were using the regular (i.e. desktop) .Net Framework, you could use Linq, which allows to "compose" whatever function you want with ease.

For the Netduino, you can use something like that:

 

                var source = new byte[] { 00, 22, 33, 44, 0x55, 55, 66, 77, 88, 99, 10 };
                var index = Array.IndexOf(source, 0x55);
                var targetLength = source.Length - index - 1;
                var target = new byte[targetLength];
                source.CopyTo(target, index + 1);

Hope it helps.

 

 

 




#63724 Gameduino 2 For Netduino

Posted by Mario Vernari on 31 July 2015 - 05:47 AM in Project Showcase

Were you able to display images?

I stopped my porting because of that...




#61757 3V3 to 5V SPI link

Posted by Mario Vernari on 02 March 2015 - 04:49 AM in General Discussion

1)  What's a good way (following GEP of course) to deal with the 5V / 3V3 difference? 

 

What is "GEP"?

As for what is supplied by the HC11, the Netduino (by means the MCU) is 5V tolerant so there's no problem.

As for what is supplied by the Netduino (3.3V), the "HC" voltage levels (68HC11) are able to recognize the logic high at 3V: again, no problem.

 

2)  Is it true that the nd+2 can't operate as an SPI slave? 

 

Yes, that's true. You can only try using the Netduino as master and the HC11 as slave.

 

3)  Anyone know of a similar project that I can reference?

 

 

I'm not aware about similar projects, but (under the 2' answer context) should be pretty similar as you connect an Arduino.

 

Question: why don't you use the UART? It's much more convenient if you want exchange data between MCUs...




#61772 3V3 to 5V SPI link

Posted by Mario Vernari on 04 March 2015 - 04:27 AM in General Discussion

Fine.

Just forgot:

  • connect the ground between the two boards (EVB and Netduino) before any other wire.
  • keep the wires as shortest as possible.

Have fun.




#61910 External switch

Posted by Mario Vernari on 20 March 2015 - 04:53 AM in Netduino Plus 2 (and Netduino Plus 1)

I just tried for you...

 

explosion-of-fire.jpg

 

 

In theory, your circuit should work, but the problem is that the Netduino does not offer a "pull down" feature.

Simply invert the logic, and wire the button from the input to the ground, then set the "pull up". This is also the preferred way to connect a pushbutton/switch because the ground is everywhere but the +3.3V not.

 

Remember, if you try to register the button activity via interrupt or so, you may easily experience "bounces". That is, when you press the button, you'll see several unexpected "on/off" events, which are undesired. Those bounces are due to the mechanical structure of the button.

There are two ways to solve this problem:

  • add an external capacitor (e.g. 100nF or more, not critical) across the button. This is an "hardware filter".
  • do NOT use the interrupt, and implement a "digital filter" by sampling the state of the input periodically, then detect the stable state. In this case you won't need a capacitor.

Bear in mind, for a quick test on a breadboard, there's no problems at all. Once you'd create a reliable definitive circuit, I'd use both the filter ways: capacitor and sampling. Bullet-proof!

 

Good luck!




#62172 C# help

Posted by Mario Vernari on 17 April 2015 - 04:22 PM in Visual Studio

Uhmmm...

The conversion is rather trivial:

ushort zz = (ushort)System.Math.Tan(c1AngleX);

However, I don't think the "ushort" is a convenient way to store the tangent values, unless they fall with a restrict angle interval.

Moreover, the "ushort" isn't a nice (nor common) type: the "unsigned" types lead to mistakes, unless you check for under/overflow.

Why don't you use "float" instead of "ushort"?

 

On the regular .Net (desktop) framework I'd use "double" instead of "float", but here you have a tiny board and the resources (CPU and RAM) are precious. Double takes 8 bytes and Single (float) takes 4. Furthermore, the float math should be natively supported, but the "double" not.

 

Cheers




#62169 Keypad Wiki Article Mentioned on Hackaday

Posted by Mario Vernari on 17 April 2015 - 11:40 AM in General Discussion

First off, thanks Mark for pointing the article: I missed it although I check Hackaday daily.

Secondly, I'm happy twice, because it is rare to see something about on Netduino (NETMF in general) on Hackaday.

Will be that kinda "divine-sign" that something is gonna changing?

 

Have a nice weekend everybody!




#62067 Will this power supply work?

Posted by Mario Vernari on 09 April 2015 - 05:46 AM in Netduino Plus 2 (and Netduino Plus 1)

Let's say that 6V is borderline: it's barely above the ability of the Netduino regulator. By the way, +12V isn't too much, unless you pull too much current from the Netduino regulator.

I personally suggest any good (linear) regulator which outputs from 7.5 to 12V. However, 9V is perfect.




#61143 Issues Reading Stream from HttpWebResponse

Posted by Mario Vernari on 04 January 2015 - 01:35 PM in Netduino Plus 2 (and Netduino Plus 1)

The Thread.Sleep(500) at the beginning looks useless. Rather, add a Thread.Sleep(100) inside the while.

 

Moreover, inside the same "while" you're creating a new byte-array object on every cycle: that's causes an unnecessary yet expensive memory management. Create it once outside the "while": there's no need to create a new one all the times.

 

Finally, instead of reading always a lot of useless bytes (256), consider asking the stream how many are still to pull off, and use that value in the "Read" method.

Another way is the following:

https://github.com/h...erviceClient.cs

 

Good luck.




#61397 Microsoft Azure IoT Contest

Posted by Mario Vernari on 28 January 2015 - 04:55 AM in General Discussion

Create a Microsoft Azure application that unlocks the true power behind embedded and connected devices: the web services and applications that actually connect those devices.

Sponsored By
MicrosoftLogo_60x74_.jpg

You could use Azure and the CodeProject API to create a mobile web app to keep track of your CodeProject rep points from your phone, or build a webservice that allows a LED on your Netduino board to blink when you get a new message. What about constructing an IoT-powered robotautomating your home or creating a dashboard that connects to your Fitbit to track your fitness? The sky's the limit - suprise and impress us!

Submit an article outlining how you built your Azure IoT app (with code snippets and screenshots) and complete tasks and missions for your chance at loads of cash prizes.

 

Read here:

http://www.codeproje...oT-Contest.aspx

 

Good luck to everyone!

 

Please Chris, make this post as sticky.

 





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.