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.

nakchak's Content

There have been 164 items by nakchak (Search limited from 21-May 23)


By content type

See this member's


Sort by                Order  

#52115 Netduino Plus 2 not responding

Posted by nakchak on 13 August 2013 - 10:12 AM in Netduino Plus 2 (and Netduino Plus 1)

I am not able find how to erase and reflash Netduino plus 2 :-(

 

Follow the instructions in the pinned thread about the netduino 2 firmware

http://forums.netdui...-v422-update-2/

 

Nak.




#52139 Netduino Plus fw 4.2.0 Error reading Tacho from 12v Fan

Posted by nakchak on 14 August 2013 - 08:43 AM in Netduino Plus 2 (and Netduino Plus 1)

I suspect line 48 may be the culprit, as it looks like a memory allocation issue.

 

Try moving it into your if statement, also try declaring as a private class member rather than a variable that gets created each interrupt, im guessing that the GC isnt clearing the memory quickly enough, so make that variable longer lived and just update the reference each interrupt instead.

 

i.e.

private static int Current = 0;static void OnFanRotation(uint data1, uint data2, DateTime time){if(_lastPulse > 0){ Current = Utility.GetMachineTime().Ticks / TImeSpan.TicksPerMillisecond;...}...}

Nak.




#52143 kan anyone help me ?

Posted by nakchak on 14 August 2013 - 10:47 AM in General Discussion

Hi Ruan, welcome to the community

 

First of all please insert code using the code button in the message editor tool bar, makes it much easier to read and refer to as you have line numbers...

 

To fix issue #1 try removing the "500" from your call to Read. (should also fix issue #4)

 

It also looks like your missing a reference to the pachube library as well, try following the instructions on page 18 of the Hello Pachube sample pdf that should solve issue #5

 

Nak.




#52144 Upgrading NP to NP2 problem

Posted by nakchak on 14 August 2013 - 10:53 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi mrsupe

 

I would need a lot more information than you have provided to be able to help in a meaningful manner, i.e. Source Code, Error Messages and possibly build and deployment output.

 

That said open your projects properties and check that your project is targeting the 4.2 framework, and that your NP2 is recognised by visual studio.  Also install the latest versions of both the netmf SDK and the secretlabs/netduino SDK (on the downloads page of this site)




#52145 N+2 communication with WebApi

Posted by nakchak on 14 August 2013 - 11:01 AM in Project Showcase

I would love to see your code including the web api? Are you using signalR to update your page?

Its quite easy into interface ND's to MVC/WebAPI the biggest problem is keeping the data you send and receive very terse to the ND so as to minimise the amount of string operations that need to be done on the ND.  in the past i have done things like hard code the action names as constants on the nd, then using a RESTful API sent the bare minimum of data to and from the ND.

One trick i used to minimise data being sent over the wire was to use the ND's MAC address as its unique identifer so i could target any given ND on the network.

 

I also keep meaning to have another crack at writing a SignalR client for NetMf (there is the start of one in the SignalR repo on GitHub).

 

Nak.




#52147 Using a 7 segment display without a shift register

Posted by nakchak on 14 August 2013 - 01:38 PM in Netduino Plus 2 (and Netduino Plus 1)

Using SPI to control a single shiftreg, wouldn't that require a pretty tight loop for multiplexing a 2-digit 7-segment display?

It would be like driving any shift register not particularly difficult. more info in the wiki

personally i would look at chaining a couple of 74LS47's together then just write a byte array to it last time i checked you could get 5 for under a $ on ebay.

 

Nak.




#52156 Addressing Netduino Flash memory

Posted by nakchak on 14 August 2013 - 04:19 PM in General Discussion

AFAIK you cant from managed code, you would be best off writing to a SD card any data you want persisted between power cycles.

 

Also see: http://forums.netdui...write/?hl=flash

 

Nak.




#52162 Addressing Netduino Flash memory

Posted by nakchak on 14 August 2013 - 06:09 PM in General Discussion

True most of the storage would goto waste, but it would cost more than an sd card to implement an eeprom or similar device as a shield...

 

Nak.




#52173 Migrating project from Arduino to Netduino 2 Plus

Posted by nakchak on 15 August 2013 - 08:29 AM in Visual Basic Support

The setup loop looks like it is configuring registers.

All of that would be taken care of by the pwm classes in netmf i would have thought.

 

Nak.




#52182 DS2482

Posted by nakchak on 15 August 2013 - 02:29 PM in Project Showcase

Codeplex is very easy to use, as is github with the windows client.

For any online source repository you will need to install and use a source control client. 

The popular 2 at the moment are SVN (Subversion) and Git.

If you choose SVN then i recommend that you either install Ankhsvn for visual studio integration, or tortoisesvn for windows shell integration.

 

Between codeplex and github there isnt much in it really, github is better imho as it has a less clunky interface and better wiki tools etc. but the learning curve of GIT is steeper than subversion.

 

Nak.




#52183 Which USB to Serial converter should I use with Netduino

Posted by nakchak on 15 August 2013 - 02:33 PM in Netduino 2 (and Netduino 1)

Any USB to serial adaptor will do if you just want a com port on your PC.

If however you are trying to a program a mini with it there have been reports of some of the cheaper leads not working, so spend as much as you can afford, other wise a cheap FTDI bare tail lead is ideal as it only has a USB plug at one end and bare wires at the other.

 

Nak.




#52198 Roundtrip communication latency

Posted by nakchak on 16 August 2013 - 06:40 PM in General Discussion

If you go for the ethernet option then the latancy will be that of your LAN, so realistically the latency will be that of the ping to your gateway plus the latency of the socket code on your "socket server", of course you could also implement a web based api (i woudlnt use soap though due to its verbosity).

 

Nak




#52207 Roundtrip communication latency

Posted by nakchak on 17 August 2013 - 12:04 PM in General Discussion

As NooM suggested serial is also an option however unless your project is situated next to your desk and you will only ever have a few devices ethernet offers a greater amount of scalability and flexibility, plus the socket interface is event driven so you could drive the sending of data via interupts.

 

Nak.




#52237 Direct STM32F4 ARM (C) support in Visual Studio?

Posted by nakchak on 19 August 2013 - 11:24 PM in General Discussion

No direct support using visual studio, may well find a custom IDE using visual studio shell...

 

Nak.





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.