- Netduino Forums
- → Magpie's Content
Magpie's Content
There have been 156 items by Magpie (Search limited from 03-May 23)
#30421 RC5 I/O problems
Posted by Magpie on 08 June 2012 - 11:28 AM in Beta Firmware and Drivers
#30419 RC5 I/O problems
Posted by Magpie on 08 June 2012 - 10:31 AM in Beta Firmware and Drivers
AnalogInput analogInput1 = new AnalogInput(Cpu.AnalogChannel.ANALOG_0); AnalogInput analogInput2 = new AnalogInput(Cpu.AnalogChannel.ANALOG_0, 8);
I keep getting the following exception.
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll
A first chance exception of type 'System.ArgumentException' occurred in Microsoft.SPOT.Hardware.dll
An unhandled exception of type 'System.ArgumentException' occurred in Microsoft.SPOT.Hardware.dll
Any ideas?
Also does somebody have an RC5 pwm example? I am not sure of the mapping between the Netduino Pin numbers and the SPOT pins.
#26068 How to draw 220V motor
Posted by Magpie on 29 March 2012 - 12:43 AM in General Discussion
#25331 Anyone is interested on a high-end acquisition shield?
Posted by Magpie on 10 March 2012 - 01:40 PM in General Discussion
#46632 Netduino Solar Monitor
Posted by Magpie on 04 March 2013 - 09:30 PM in Project Showcase
Looks great, nice to know what's going on.
I think I would rescale your battery display from 20 -30 volts or similar. otherwise it wont move much.
#25535 How much current can you draw from the 5v pin?
Posted by Magpie on 15 March 2012 - 06:00 AM in Netduino Plus 2 (and Netduino Plus 1)
#25599 Detecting Sensor Type
Posted by Magpie on 16 March 2012 - 08:32 AM in Netduino Plus 2 (and Netduino Plus 1)
#42542 n00b VB vs C# for dev of a basic sensor monitoring app w networking?
Posted by Magpie on 01 January 2013 - 01:51 PM in General Discussion
Really for the language differences, it comes down to in C# things need to be explicit and VB things are implicit.
I strongly prefer C# because it is explicit, most decisions are ones that you instigated, whereas in VB you get a more stuff that happens when you didn't actually want stuff to happen.Therefore lots of weird errors.
Also in VB you have to write Dim too many times.
One advantage of VB is the For Next loop operators seem to work more easily with the iterators.
That's my 2c.
#25763 Sharing code between projects
Posted by Magpie on 20 March 2012 - 10:49 AM in Visual Studio
So some of your source code is identical, in both types of projects, so you only want to maintain one copy of it. Is that what you want?
You definitely can't share the compiled code, but I don't think there is any reason that you can't share the source code, if you can get it to compile in both types of projects. You might have to use a lot of ifdefs or whatever C# has for conditional compilation.
I think you would be better off having two solutions and cutting and pasting any similar code.
That way you can have two instances of visual studio and can debug both at the same time.
#25332 CT Sensor help please!
Posted by Magpie on 10 March 2012 - 02:01 PM in General Discussion
#28616 .net micro framework windows form
Posted by Magpie on 07 May 2012 - 06:31 AM in Netduino Plus 2 (and Netduino Plus 1)
I think Eppetiano is asking about the first one, a pc client.
You just use visual studio to make a Windows Form application, that runs on your PC.
So you need to make two solutions
Your netduino solution which captures the data and communicates.
And your windows form solution with runs as an exe on your pc, displays data and communicates.
You have to have some sort of communication protocol common to both solutions to transfer the data between the Netduino Plus and the Form application.
You could use XML over http.
I think Neon.Mika webserver would have an example of this.
#25928 [UK] Electrical Supply help
Posted by Magpie on 24 March 2012 - 12:21 PM in General Discussion
#25924 [UK] Electrical Supply help
Posted by Magpie on 24 March 2012 - 11:38 AM in General Discussion
#31141 Multithreaded Webserver and DataLogger
Posted by Magpie on 23 June 2012 - 01:01 PM in Project Showcase
I'm really glad you managed to find some use for the code, hope you make something really good with your project.
I know how hard it is to use somebody elses code, so that fact that you can use code from an unfinished, poorly documented project, mean that at least my attempt to write reusable code must be partially working.
Here is my liability waiver, It was a work in progress that got stalled because I couldn't get it right, then ran out of program memory.
I didn't mean to put it out to general view until I had fixed the bugs, done the binary upload and rearranged it neatly.
4.2 RC5 should give that extra space. But I was a bit disappointed that I still have a memory leak, so maybe it is my code.
My logger is still actually running but I have to cycle power as it crashes every 10 days or so due to the memory leak. I am fairly sure it is to do with being on the Internet because it used to run for over a month before I opened my gateway for it.
I still cant finish the Webserver/Logger due to my limited amount of time, but if you want to mention any bug fixes you see in the code then go ahead.
Biggest challenge so far was getting the multithreaded hardware calls synchonised to the hardware implementations, making sure the same relays doesnt get triggered by 2 requests at the same time.
Just use a lock for Thread synchronisation. I view any hardware as a resource and therefore because you can have multiple callers on different threads one has to wait for the other to complete.
I do love the challenges of multithreaded apps, fun to debug.
You seem to be making a real webserver.For handeling the webrequest that have no mimetype and are skipped by the webservice ive created a factory(mapper) that has all the availeble implementation for the hardware in the form of handlers stored in an hashtable.
All i have now are a relay handler and a logginghandler loaded in the hashtable.
I use a switch statement to find the correct handler based on the url fragments and then invoke doWork on the handler. I provide the doWork method with a string array of urlfragments. So all the implementation logic like calls to the hardware resides in the handlers. Ive created an interface for the handlers and a baseclass for the general work.
I know I should use JSON in projects but I tend to use XML due to my familiarity.
I don't quite follow, I haven't really tried 4.1. I have tried 4.2 RC3,4 and 5 no joy for me here.psps: fixing the n+ crash when using too much requests is easy by upgrading the firmware.. theres a bug crashing the n+ with an outofmemory exception in the 4.1 firware when theres plenty of memory left
I love the language C# I just wish one day in the future we could have a Jit compiler on the Netduino.
#26123 AnalogInput Repeatability
Posted by Magpie on 30 March 2012 - 05:43 AM in Netduino 2 (and Netduino 1)
#25598 Multithreaded Webserver and DataLogger
Posted by Magpie on 16 March 2012 - 08:11 AM in Project Showcase
#26288 analog to digital conversion
Posted by Magpie on 03 April 2012 - 12:12 AM in General Discussion
#25643 Minimum AnalogInput Read value
Posted by Magpie on 17 March 2012 - 01:28 AM in Netduino Plus 2 (and Netduino Plus 1)
#25649 Minimum AnalogInput Read value
Posted by Magpie on 17 March 2012 - 10:04 AM in Netduino Plus 2 (and Netduino Plus 1)
#25606 Minimum AnalogInput Read value
Posted by Magpie on 16 March 2012 - 11:13 AM in Netduino Plus 2 (and Netduino Plus 1)
#25448 Delay or getting stuck at deployment "Preparing to deploy assemblies to t...
Posted by Magpie on 13 March 2012 - 11:09 AM in Visual Studio
#28636 CAD Software and Board Manufacturer Recommendations
Posted by Magpie on 07 May 2012 - 02:05 PM in General Discussion
Occasionally I get a error from the converted libraries, but It gives a line number and all you need to do is delete the offending part of the library.
Remember there are two types of Library, Schematic components (libs) and footprints(mods).
There is a step in KIcad where you have to manually map your components to your footprints, I like the way they do it but others don't.
This link should have most of what you need
Kicad links
There is also a Yahoo groups Kicad usergroup if you need to ask questions, or try
EEVblog a good electronics resource, they have a small kicad section in their forum.
#29315 CAD Software and Board Manufacturer Recommendations
Posted by Magpie on 17 May 2012 - 04:42 AM in General Discussion
That is so not true. You just have to follow the one of the video tutorials.I tried Kicad and found it pretty much unusable. It's probably good for very basic stuff, but found it to be lacking functionality.
It has quite a few of the advanced features such as real time Design Rules Check, 3d modelling with 3d components.
I guess on your board Dave, you haven't put in the actual 3d models, that is why it is unpopulated.
Kicad has 2 autorouters, one is built in and not very good, the second one goes to a web based 3rd party auto router and I am sure it would be better than any of the other autorouters in the other packages.
But really once you get used to doing the routing it is actually better and quicker to do it yourself.
The best thing about Kicad is that it is open source.
I know I don't need to explain this but I will anyway.
If you are a programmer and you don't like something, you can change it and rebuild it in Windows. ( I must admit I haven't built it myself but have communications with people who do).
To reiterate the good things about open source are:
- It's free.
- No licence activation stuff to do.
- No false limitations.
- You can make your own changes.
- You can understand how it works through the source.
- You can find tricky bugs by going through the source.
- You can access the actual coders without going through a whole series of hoops designed to protect IP and a companies legal rights.
- The warm feeling that any help you give the project will go back to other people trying to make there own boards.
#28596 CAD Software and Board Manufacturer Recommendations
Posted by Magpie on 06 May 2012 - 08:30 AM in General Discussion
#46635 Home Automation
Posted by Magpie on 04 March 2013 - 10:30 PM in General Discussion
- Netduino Forums
- → Magpie's Content
- Privacy Policy