

![]() |
  | |||||||||||||
![]() |
|
![]() |
||||||||||||
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.
dab's ContentThere have been 54 items by dab (Search limited from 11-July 24) #4193 What is the Netduino Mini?
That is pretty cool. Small and cheap enough to install in a dedicated project
![]() ![]() #3384 UART Shield
I use one of the FTDI USB cables that has the FT232R built in.
Works great with the Netduino (make sure to get the 3V3 version). #3292 Serial Comms via USB in the cards?
Pardon my ignorance, but what's CDC (besides the Centers for Disease Control ![]() #3263 SD huh?
Also, it looks like you can just use 128 for the 3rd parameter to FileStream.Read()...if it reads less than 128 bytes, then it should be OK (the method will return the actual number of bytes it read). #3261 How to use the SD card and StreamWriter
Cool - thanks for getting the new firmware out so quickly! This seems to fix the problem I was having with the StreamReader.ReadLine() method yesterday: Current directory: \ dir: \SD file: \SD\FOO.TXT The quick brown fox jumps over the lazy dog. Now I need to figure out what to do with 1.83 GB of storage. ![]() #3237 Console Output??
Oh, cool - I didn't know that. Thanks for the tip! #3236 Power Questions - i.e. Voltage
Well, you could put two of the 6V batteries in series to get 12V. With a regulator, it's fairly easy to *decrease* the voltage. But, in general, it's not easy to increase the voltage of a DC source. Increasing the voltage generally involves converting DC to AC (or a DC square wave), passing it through a step-up transformer, and converting back to DC. But if you do that, then the current will decrease proportionally with the voltage increase (actually, you'll lose even more current due to losses in the transformer, etc.). #3209 Console Output??
And you need to have the debugger attached. In VS2010, go to Debug | Start Debugging, which will run the solution in the debugger. If the debugger isn't attached, the Debug.Print() statements will have no effect. #3184 Stay close to your computer (or come to MakerFaire)...
Sure. Uuhm, depends on what you mean by "team". ![]() #3180 Introducing Netduino Plus -- Notes
I bought this one today, and it seems to work (well, I can read the directories and file names, but there seems to be a problem with reading file contents). SanDisk Mobile microSD Card 2GB $9.99 at Office Depot in the US. #3178 How to use the SD card and StreamWriter
I'm getting exactly the same error as Szymon when I try to read a file from the SD card. I actually wrote my sample before I saw this thread, but my code is almost the same. ![]() Here's the sample code where I use a StreamReader object to get the first line of a text file: using System; using System.IO; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; namespace SDCardSample { public class Program { public static void Main() { string currentDir = Directory.GetCurrentDirectory(); Debug.Print("Current directory: " + currentDir); string[] dirs = Directory.GetDirectories(currentDir); foreach (string d in dirs) { Debug.Print("dir: " + d); string[] files = Directory.GetFiles(d); foreach (string f in files) { Debug.Print("file: " + f); StreamReader reader = new StreamReader(f); Debug.Print(reader.ReadLine()); reader.Close(); } } } } } And the exception that gets thrown: Current directory: \ dir: \SD file: \SD\FOO.TXT Failed allocation for 685 blocks, 8220 bytes Failed allocation for 685 blocks, 8220 bytes #### Exception System.OutOfMemoryException - CLR_E_OUT_OF_MEMORY (1) #### #### Message: #### System.IO.StreamReader::ReadLine [IP: 000a] #### #### SDCardSample.Program::Main [IP: 005e] #### A first chance exception of type 'System.OutOfMemoryException' occurred in System.IO.dll An unhandled exception of type 'System.OutOfMemoryException' occurred in System.IO.dll Note that this happens for both ANSI and UTF-8 encoded files (I created the files on the PC). #3131 Stay close to your computer (or come to MakerFaire)...
As a member of the community, I'd be interested in the project to expand the microSD capacity... #3129 Buying or Acquiring Parts
This is a timely topic
![]() I'll add a couple more:
#2702 Out of memory error
I think we'd need to see the rest of the code in order to find the problem. Can you post the complete source code?
#2653 Stay close to your computer (or come to MakerFaire)...
Removing the rest of the evidence
![]() #2651 What is need to get started with Netduino?
You can also get the eBook version for US $27.99. #2644 What is need to get started with Netduino?
1K is probably too high a resistance if you're driving LEDs from the Netduino output pins (3.3v). Something like 100 ohms is probably more appropriate for Red or Green LEDs. I think Blue LEDs generally have a higher forward voltage, so you may need an even smaller resistor (or maybe no resistor at all). Best bet is to buy a resistor assortment, and save yourself some frustration. Also, you'll probably want a potentiometer to attach that knob to ![]() If you're just getting started in electronics, I'd highly recommend the Make: Electronics book. It's a great hands-on introduction to basic electronics. It doesn't cover Arduino/Netduino specifically, but it's a good learning guide. #2643 Stay close to your computer (or come to MakerFaire)...
Flying rugs are so old world. I vote for flying cars ![]() #2642 Stay close to your computer (or come to MakerFaire)...
Sorry, I'm voluntarily deleting my previous remark, since it was somewhat inappropriate. I don't mean to detract from the Secret Labs announcement.
#2602 Controlling a LED Intensity
And if you have any questions about the PwmSample, please feel free to post them here or in the Project Showcase forum (I posted the sample code).
Let us know when you get the Cylon / Knight Rider circuit working (and share the code if you don't mind).
![]() #2601 PwmSample
Hi FastEddy, Thanks for the kind words - I'm glad you find the sample code helpful ![]() You raise a good point about getting up to speed on the technology. I consider myself pretty much a newbie to C# and the .NET framework (until relatively recently, I was a C++/Win32 API kind of guy). For me, the biggest challenge is the .NET framework itself. It's huge (even .NETMF), and a lot of classes aren't very discoverable. I always find myself thinking "I know there's a class/method to do 'x', but where?". Here are some things I've found helpful:
I hope that helps get you started. #1415 Schematic capture software?
Thanks, Szymon. I'll take a look at Fritzing - it looks interesting. #1404 Electronics Books
+1 on Make: Electronics. Very fun and easy read, with clear explanations and experiments that demonstrate the principles well. Some of the old Radio Shack books by Forest M. Mims are also quite good. I believe you can still get his classic "Getting Started in Electronics", as well as reprints that combine several of the small "Engineer's Mini Notebook" titles in one book. #1403 Soldering Temperature for IC's, etc...
I'd say it also depends a lot on the type of solder you're using.
I learned to solder back when Pb/Sn solder wasn't considered hazardous
![]() ![]() #1401 Schematic capture software?
Hi folks,
Some the little sample projects that I've been sharing over on the Project Showcase are getting large enough that it would be helpful to post a schematic along with the code. I expect the circuits will only get bigger as time goes on. ![]() I've been out of the electronics hobby for a while, so I'm curious what kind of schematic capture software is hobbyist-friendly. Basically, this means free (or cheap), and easy to learn. It looks like Eagle supports schematic capture as well as PCB layout, and has a limited freeware version. I've also heard some recommendations for KiCad (open-source). Are there any others I should look into? I'm on the Windows platform, BTW.
| ||||||||||||||
![]() |
||||||||||||||
![]() |
|
![]() |
||||||||||||
![]() |
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ![]() |
||||||||||||
![]() |