- Netduino Forums
- → amphibian's Content
amphibian's Content
There have been 16 items by amphibian (Search limited from 03-May 23)
#1733 Serialization
Posted by amphibian on 03 September 2010 - 11:50 AM in Netduino 2 (and Netduino 1)
#1715 SD Card Shield
Posted by amphibian on 03 September 2010 - 03:29 AM in Netduino 2 (and Netduino 1)
#1714 Netduino Firmware v4.1.1 ALPHA 1
Posted by amphibian on 03 September 2010 - 03:20 AM in Beta Firmware and Drivers
Haven't had much chance to try anything beyond the sample code though.
I was unable to debug this firmware on my mac running parallels 5 + windows 7 64bit. When I tried to debug it would just reboot the netduino and stop. I had this issue with the shipped firmware, as well as the beta firmware, so it's not new. I'll just stick to pure windows for now i guess.
#1713 Netduino Firmware v4.1.1 ALPHA 1
Posted by amphibian on 03 September 2010 - 03:07 AM in Beta Firmware and Drivers
I have a microSD card shield from Sparkfun (http://www.sparkfun....roducts_id=9802) and a Sandisk 8GB microSD card and the code shown by Bob doesn't appear to work.
No, it doesn't support SDHC, so nothing over 2gb.
MicroSD is tricky, I've been reading the specs lately. All the other SD standards mandate SPI support, but Micro does not, so it might be hit or miss with getting micro cards working. Probably going to vary by make/model.
#1691 SD Card Shield
Posted by amphibian on 02 September 2010 - 06:37 PM in Netduino 2 (and Netduino 1)
#1531 Where's the source repository?
Posted by amphibian on 30 August 2010 - 08:58 PM in General Discussion
#1529 Where's the source repository?
Posted by amphibian on 30 August 2010 - 08:47 PM in General Discussion
#1388 Serial and VS 2010?
Posted by amphibian on 27 August 2010 - 03:33 AM in General Discussion
Using is quite nice to make sure you don't forget to call Dispose on anything that implements the IDisposable interface, but beyond that it isn't much different.
They're only the same if there's no exceptions and nothing calls "return"
With "using", if an exception occurs or if something inside the "using" calls "return", then the serial port would still be disposed properly.
if you do open.....dispose, and an exception occurs between them, it would leave the port active until it went out of scope and got gc'd (an unknown amount of time).
That's why "using" is considered the best practice instead of calling Dispose manually.
That said, I don't think this difference is what's causing your problem.
#1372 XBee Troubleshooting Ideas?
Posted by amphibian on 26 August 2010 - 11:57 PM in Netduino 2 (and Netduino 1)
Here's the code I was using anyway (even though I got it working)
public static void Main() { SerialPort xbee = new SerialPort(SerialPorts.COM2,9600,Parity.None,8,StopBits.One); xbee.Open(); xbee.DataReceived += new SerialDataReceivedEventHandler(XBeeDataReceived); while (true) { string output = "Hello " + DateTime.Now.Ticks; byte[] bytes = System.Text.Encoding.UTF8.GetBytes(output); xbee.Write(bytes, 0, bytes.Length); xbee.Flush(); Thread.Sleep(5000); } } static void XBeeDataReceived(object sender, SerialDataReceivedEventArgs e) { int bytesReceived = ((SerialPort)sender).BytesToRead; byte[] bytes = new byte[bytesReceived]; ((SerialPort)sender).Read(bytes, 0, bytes.Length); string received = new string(System.Text.Encoding.UTF8.GetChars(bytes)); Debug.Print(received); }
#1353 Best Hobby Oscilloscope
Posted by amphibian on 26 August 2010 - 07:02 PM in General Discussion
http://www.seeedstud...l?cPath=104_108
It looks to me like the one you linked to on ebay is the older version. If it was me I'd probably try to get the newer one when it comes back in stock. If you do end up picking it up I'd be curious to hear feedback, it seems like a steal.
#1350 XBee Troubleshooting Ideas?
Posted by amphibian on 26 August 2010 - 06:35 PM in Netduino 2 (and Netduino 1)
Are you using an XBee shield which "steps down" the voltage from 5V to 3.3V for the XBee module? If so, does it do a true 3.3V conversion--or is it just cutting the voltage? It's possible that the Netduino is getting 5V signals FROM the XBee module but that the accessory board is cutting the voltage on 3.3V signals coming from the Netduino.
If you can let us know which XBee hardware you're using (module and inteface/shield), that would be really helpful. We're making a list of compatible accessories...and it would be great to show which boards are designed to work with 3.3V signals...
Sorry, I meant to include the link on my first post (I even had it in the clipboard).
This is the kit for the xbee I'm using
http://www.sparkfun....roducts_id=9897
If data is getting from the XBee to the Netduino, there's only a very small chance that data is not getting from the Netduino to the XBee because of a hardware problem.
That's kind of what I thought. It seemed weird to me that it was working 1 way but not the other. I was going to give this lib a try thinking maybe I was missing something with the serial port commands, but it sounds like it ought to be working.
I will post my code when I get home tonight, although it's pretty trivial.
#1329 XBee Troubleshooting Ideas?
Posted by amphibian on 26 August 2010 - 02:26 PM in Netduino 2 (and Netduino 1)
#1160 SD Card Shield
Posted by amphibian on 23 August 2010 - 03:58 PM in Netduino 2 (and Netduino 1)
#1155 SD Card Shield
Posted by amphibian on 23 August 2010 - 03:33 PM in Netduino 2 (and Netduino 1)
#1118 SD Card Shield
Posted by amphibian on 23 August 2010 - 04:06 AM in Netduino 2 (and Netduino 1)
It sounds like I'd better just chill out and wait for the experts.
As for if it's 3.3/5v I'm not really sure. Like I said the documentation is somewhat lacking. There is a switch on it which says I can select 3.3 or IO port power, so it sounds like it's 3.3.
#1111 SD Card Shield
Posted by amphibian on 23 August 2010 - 03:17 AM in Netduino 2 (and Netduino 1)
I got the SD Card Shield from MakerShed and I'm just trying to do some simple file IO.
When I try to enumerate volumes and file systems from Microsoft.SPOT.IO it doesn't find anything. I'm assuming this is because Netduino is missing a driver. I started looking at the Arduino Fat code to see about porting it, but I'm really not sure where to start. Honestly I'm not even sure how this shield works, the documentation for it leaves quite a bit to be desired. "You can select 3.3V or IO port power supply with the switch on board in order to work with different library."
Can anyone point me in the direction of some good resources? Am I just making this too hard (hopefully)?
- Netduino Forums
- → amphibian's Content
- Privacy Policy