- Netduino Forums
- → Coding Smackdown's Content
Coding Smackdown's Content
There have been 72 items by Coding Smackdown (Search limited from 04-June 23)
#21233 General Listing of Netduino Resources
Posted by Coding Smackdown on 01 December 2011 - 08:48 PM in General Discussion
#21222 General Listing of Netduino Resources
Posted by Coding Smackdown on 01 December 2011 - 03:22 PM in General Discussion
#21199 Web Based Temperature Logger
Posted by Coding Smackdown on 01 December 2011 - 02:23 AM in Project Showcase
#21192 What's the best component for switching AC Power
Posted by Coding Smackdown on 30 November 2011 - 11:35 PM in General Discussion
#21174 NeonMika.Webserver
Posted by Coding Smackdown on 30 November 2011 - 05:29 PM in Project Showcase
#21157 What's the best component for switching AC Power
Posted by Coding Smackdown on 30 November 2011 - 02:02 PM in General Discussion
#21130 Boost Application Memory by 10-15%
Posted by Coding Smackdown on 29 November 2011 - 10:26 PM in Netduino Plus 2 (and Netduino Plus 1)
#21129 What's the best component for switching AC Power
Posted by Coding Smackdown on 29 November 2011 - 10:22 PM in General Discussion
#21110 Lightweight JSON parser
Posted by Coding Smackdown on 29 November 2011 - 03:30 PM in Project Showcase
Thanks Fabien,
I figured system.Net was not the way to go and have been playing with the NetMF WebRequest instead.
The page I need to collect is a simple 4k xhtml - so I could write a very basic XML parser (the tags etc will be consistent)
system.XML is of course too big for the NetduinoPlus too - so I was hoping you had an example where you were using your JSON parser with a simple web request that worked on the Netduiino (I assumed that you already had this code)
Thanks for the reply - it was infact helpful and has pointed me in a new direction (did not consider using the SD for storage)
The clases in KloutKlock definitely open some new options - so I'll see how i get on and post back - thanks for the help
I've gone down the route your suggesting and even with a bare bones XML parser you'll be bouncing up against the memory constraints of the device. If you can get something even simpler to parse you'll be much better off.
Sometimes even though you love a device it may not be the right thing for the job and you may need to pick a device that has the capabilities you need. I originally wanted to use the Netduino Plus for a print agent that would pull XML from a service and dump it out to a receipt printer, but by the time I got web request and xml parsing coded I didn't have enough resources to do the IP based printing.
If you really want to use the device you may have to rethink how you'll get the data and process it in order to keep within the constraints of the device.
Regards,
Jim Lavin
#21105 NeonMika.Webserver
Posted by Coding Smackdown on 29 November 2011 - 01:29 PM in Project Showcase
#21104 NeonMika.Webserver
Posted by Coding Smackdown on 29 November 2011 - 01:22 PM in Project Showcase
#21093 Total Newbie Temperature Project
Posted by Coding Smackdown on 29 November 2011 - 04:40 AM in General Discussion
got my netduino today, but can't look at it until Thursday (homework and a major release at work). Im sorry im such a newbie, but from the tutorials Ive looked at I was going to feed my sensors from the 3.3v output on the netdiuno, is this not what i should be using to power it?
Also if i were to power LED's from the netduino, which size resistor do i need to step down the 3.3v port? 1/2 watt 68Ohm? Anyone know of a good tutorial link for doing basic things with LEDs?
Thanks!
I've got several TMP36 sensors running off of the 3.3V supply. I think if you were going to say multiplex a lot of sensors then you might want to look into a different power source, but you should be OK.
If you want a good tutorial that covers LEDs check out the Netduino for Beginners post in the General Discussion area, its really good.
I'm finishing up a temperature monitoring project for my walk-in fermenter that has a web based interface. Once I have it all complete I'll post it to the forum to give you some ideas.
Cheers
#21049 NeonMika.Webserver
Posted by Coding Smackdown on 28 November 2011 - 01:04 AM in Project Showcase
#21028 NeonMika.Webserver
Posted by Coding Smackdown on 27 November 2011 - 04:52 PM in Project Showcase
#21025 Analog reading accuracy
Posted by Coding Smackdown on 27 November 2011 - 03:38 PM in General Discussion
Did you try the usual methods to stabilize the voltages, like in http://highfieldtale...highfieldtales/ - connect aref to 3v3 via a inductor, use a (fast) capacitor between aref and ground and a "big" one between 3v3 and ground?
Stefan,
That is a really good article, I never realized how much noise was going on. Being pretty rusty with electronics do you have a sample schematic that shows what your final solution was to filter out the noise?
Thanks,
Jim Lavin
#21023 NeonMika.Webserver
Posted by Coding Smackdown on 27 November 2011 - 03:36 PM in Project Showcase
Are you running in debug mode?
There you can check if incoming requests get ignored...
Probably you get a outofmemory-exception?
I sometimes had the problem that it just worked fine for a time and then it stopped receiving requests, i will look into that as soon as i have time
It mustbe something in the Server-class' Listening loop...
Probably you can find an error there (about 20 lines of code)...
Greets
Markus,
It is not throwing an exception of any kind, but I think you are right with it running out of resources. I was playing with the server listening loop and did make some changes and now it runs without issue. Let me spend some time comparing my changes to the original code and I'll post an issue to the codeplex page.
I also made some changes to the Handle Request method and changed from an array list to a hashtable to speed up request processing. I'll also post those changes as well.
Thanks,
Jim Lavin
#21010 NeonMika.Webserver
Posted by Coding Smackdown on 27 November 2011 - 03:51 AM in Project Showcase
#21000 simple put to localhost confusing
Posted by Coding Smackdown on 26 November 2011 - 02:27 PM in Netduino Plus 2 (and Netduino Plus 1)
#20983 Total Newbie Temperature Project
Posted by Coding Smackdown on 25 November 2011 - 10:18 PM in General Discussion
#20975 Digital I/Os during power up
Posted by Coding Smackdown on 25 November 2011 - 04:24 PM in Netduino 2 (and Netduino 1)
#20974 Digital I/Os during power up
Posted by Coding Smackdown on 25 November 2011 - 04:14 PM in Netduino 2 (and Netduino 1)
Later in this tutorial I also will describe how one can use FET/MOSFET, DIOD or Transistor NAND as well as NAND TTL IC to achieve same.
Wouldn't an XOR Gate work better than a NAND Gate? I would think you would only want a high output when the two input are different. So if the Netduino board sets all pins to high at reset you could hook up one input to the Netduino pin you are going to use as a switching signal and the second to positive voltage. This way when the board resets both inputs would be high and the output would stay low. Then once your application starts you could drive the Netduino pin low to get a high output from the XOR Gate thus providing the voltage required to allow current to flow through the transistor.
Or do I have my logic backwards and you need the NAND gate to keep the signal high so there is not enough difference at the base of the transistor to allow current to flow?
Regards,
Jim Lavin
#20973 Netduino for beginners - Gentle introduction with basic electronic project
Posted by Coding Smackdown on 25 November 2011 - 03:52 PM in Project Showcase
Hello,
Thank you for the nice work.
I am a teatcher also, and I would like to know how did you do that nice Netduino Views to how the wiring connections? Do you use any CAD model or image you could share?
Thank you,
Igor.
You can get those nice breadboard images using a tool called Fritzing. Its a free tool that you can down load from http:// www.fritzing.org
It also gives you the ability to view the schematic and a PC Board of the circuit as well.
Cheers
Jim Lavin
- Netduino Forums
- → Coding Smackdown's Content
- Privacy Policy