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.

Terry Massey's Content

There have been 41 items by Terry Massey (Search limited from 29-April 23)


By content type

See this member's


Sort by                Order  

#23923 Netduino Firmware v4.2.0 RC4 (Netduino + Netduino Plus)

Posted by Terry Massey on 07 February 2012 - 08:23 PM in Beta Firmware and Drivers

I am having I2C issues.. I am working on My drivers forthe RFID reader and I am running into issues. I am not sure if it is a codeissue maybe I am doing this all wrong but I have had no problems in the pasttalking to EEProms over i2c but with 4.2 RC3 I had no data going out my I2Cports and on 4.2 RC4 I am getting weird stuff. Here is my code for my commandmaybe I am doing something wrong. And I have attached an image of the Logicanalyzer it doesn't even seem to be sending the right Bits. Any Ideas.

private I2CDevice rfid = new I2CDevice(new I2CDevice.Configuration(0x42, 400));


private byte[] ExecuteReadCommand(ERfidCommands cmd, byte[] data)
        {
            byte[] b;
            if (data == null)
                b = new byte[2];
            else
            {
                b = new byte[data.Length + 2];
            }
            var rb = new byte[12];
            b[0] = (byte) cmd;
            var csum = (int) cmd;
            if (data != null)
            {
                for (int x = 0; x >= data.Length; x++)
                {
                    b[x + 1] = data[x];
                    csum += data[x];
                }
            }
            b[b.Length - 1] = (byte) csum;
            I2CDevice.I2CTransaction[] t = new I2CDevice.I2CTransaction[2]
                                               {
                                                   I2CDevice.CreateWriteTransaction(B),
                                                   I2CDevice.CreateReadTransaction(rb)
                                               };

            rfid.Execute(t, 100);
            while (rb[0] == 0x00)
            {
                rfid.Execute(t, 100);
                Thread.Sleep(10);
            }
          
           
            return rb;
        }



#24040 Netduino Firmware v4.2.0 RC4 (Netduino + Netduino Plus)

Posted by Terry Massey on 10 February 2012 - 05:31 AM in Beta Firmware and Drivers

ok I am quoting my self but can anyone tell me if I am doing something wrong here.

I am having I2C issues.. I am working on My drivers forthe RFID reader and I am running into issues. I am not sure if it is a codeissue maybe I am doing this all wrong but I have had no problems in the pasttalking to EEProms over i2c but with 4.2 RC3 I had no data going out my I2Cports and on 4.2 RC4 I am getting weird stuff. Here is my code for my commandmaybe I am doing something wrong. And I have attached an image of the Logicanalyzer it doesn't even seem to be sending the right Bits. Any Ideas.


private I2CDevice rfid = new I2CDevice(new I2CDevice.Configuration(0x42, 400));


private byte[] ExecuteReadCommand(ERfidCommands cmd, byte[] data)
        {
            byte[] b;
            if (data == null)
                b = new byte[2];
            else
            {
                b = new byte[data.Length + 2];
            }
            var rb = new byte[12];
            b[0] = (byte) cmd;
            var csum = (int) cmd;
            if (data != null)
            {
                for (int x = 0; x >= data.Length; x++)
                {
                    b[x + 1] = data[x];
                    csum += data[x];
                }
            }
            b[b.Length - 1] = (byte) csum;
            I2CDevice.I2CTransaction[] t = new I2CDevice.I2CTransaction[2]
                                           	{
                                               	I2CDevice.CreateWriteTransaction(B),
                                               	I2CDevice.CreateReadTransaction(rb)
                                           	};

            rfid.Execute(t, 100);
            while (rb[0] == 0x00)
            {
                rfid.Execute(t, 100);
                Thread.Sleep(10);
            }
          
       	
            return rb;
        }




#11959 Updated web server

Posted by Terry Massey on 11 April 2011 - 04:38 PM in Netduino Plus 2 (and Netduino Plus 1)

You will need to have a look at the documentation for you router to work out how to do this. You should also review security arrangements and make sure you are fully aware of what you are doing and the security implications. You will usually open a port and then tell the router to send all traffic on that port to a specific IP (the N+ address).

Something else you need to review is you Internet facing IP address - is this static or dynamic? If it is dynamic then you will need to look at a service like dyndns (I think that's the name - it's been a long time since I used them).

Regards,
Mark


Nevyn - DynDNS is correct.

Jony - Linksys has a very nice feature that will allow you to do exactly as Nevyn just said. It is called Port Fowarding. All you need to do is login to your router using your gateway address. Your gateway will be the address of your router. Then depending on the exact model where that is located is different. However also depending on your service provider many ports are blocked to force you to purchase a business account. If you need more detailed help I can but the forum is not the best place to do this. a Chat would be better. You can PM me your Info I can help.
Good Luck,
Terry



#11918 Updated web server

Posted by Terry Massey on 11 April 2011 - 05:09 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi i'm a new user and i'm trying to acces to the Netduino+ via Internet and not only in the local area network, but could someone tell me the settings that i need to do please? Thanks to the community


that is more a routing issue than a netduino issue. as for netduino getting an IP I don't have one yet... but i do know web servers. and the key is in your router.... can you tell me how you connect it to the network/internet and what devices you have I can help with the router config... well depending on the model.....



#23688 RN-XV WiFly Module driver

Posted by Terry Massey on 02 February 2012 - 04:37 PM in Project Showcase

Stefan, I was in the middle of writing drivers myself for this module for work and after chatting with Walker telling me about the drivers. Well I tried them out today. OMG frigging awesome. way less complex than i was making mine and well quite incredible. I have found a few minor bugs but they might be related to some timing issues. Mostly when adding in my own command Mode settings such as Scan and Sleep. I see that there are times your ignoring some of the garbage that comes back. so it might just be an issue with me debugging. but occasionally I expect my code to get a value back and you have ignored something like DHCP=on coming back. Here is a few methods I have implemented you could add to the WiFlyGSX class and an additional class I implemented. public void GoToSleep() { CommandModeStart(); WriteBuffer("sleep\r"); } public WirelessNetwork[] Scan() { CommandModeStart(); WriteBuffer("set sys printlvl 0x4000\r"); CommandModeRead(true); WriteBuffer("scan\r"); Thread.Sleep(3000); CommandModeRead(); string found = CommandModeRead(true); short count = Convert.ToInt16(found.Split("SCAN:Found ".ToCharArray())[11]); var retVal = new WirelessNetwork[count]; for (short x = 0; x < count;x++ ) { string s = CommandModeRead(); string[] cols=s.Split(",".ToCharArray()); var w = new WirelessNetwork { Id = Convert.ToInt16(cols[0]), Channel = Convert.ToInt16(cols[1]), Rssi = Convert.ToInt32(cols[2]), Security = (AuthMode) Convert.ToInt32(cols[3]), Capibilities = cols[4], //This is not documented well at least that I can find and can be more than on comma delimited Field MacAddress = cols[cols.Length-2], Ssid = cols[cols.Length-1] }; retVal[x] = w; } WriteBuffer("set sys printlvl 0\r"); CommandModeRead(true); CommandModeStop(); return retVal; } public class WirelessNetwork { public short Id; public short Channel; public int Rssi; public AuthMode Security; public string Capibilities; public string MacAddress; public string Ssid; }



#12041 Easy multiplexing with the Netduino

Posted by Terry Massey on 12 April 2011 - 09:41 PM in Project Showcase

NIce work stefan



#24366 What's in the magical, mysterious, box of crappy surplus?

Posted by Terry Massey on 18 February 2012 - 03:08 PM in General Discussion

funny Dan I think you just did



#22269 What's in the magical, mysterious, box of crappy surplus?

Posted by Terry Massey on 31 December 2011 - 03:30 AM in General Discussion

It is a little disheartening since he has had it for over a month.


Apologies all I will have it out on Tuesday. I unfortunately have been disconnected for a bit as I have been moving and started a new Full time job. Again I do apologize.



#22295 What's in the magical, mysterious, box of crappy surplus?

Posted by Terry Massey on 01 January 2012 - 12:45 AM in General Discussion

yea I know it expired while I was without Internet and GoDaddy is not being nice about the renewal process since I let it slip.



#12081 uIP Introduction

Posted by Terry Massey on 13 April 2011 - 04:22 PM in General Discussion



I think that's pretty good considering that the driver is operating in interrupt mode and I'm not sure if LAN-connection is 10 or 100 Mbit/s.


hanzibal,
The enc28j60 is only capable of 10Base-T which is 10MBit/s.



#26481 Redacted 00101100

Posted by Terry Massey on 04 April 2012 - 10:13 PM in General Discussion

From the specs page:

"
all 8 sockets: go!bus modules
up to 2 sockets: Gadgeteer S-U-X
"

So it looks like there is some gadgeteer compatibility, right?


Any one else think maybe the S-U-X was on purpose???



#17957 Proto Board or Perf Board

Posted by Terry Massey on 14 September 2011 - 01:16 AM in General Discussion



Without a production facility surface-mounted components would be hard to use, and size might not be a major issue, so I would go for hole-mounted components to start with. That would then also work in production, if I would ever get that far.

Volume production is an area that requires much more logistics and that I haven't had to deal with much (except in terms of test mounts and such), so I would surely consult an expert for that.



I have some experiance in the logistics of it and 99% of them prefer the surface mount design. it can be done primarly automated where a through hole requires manual labor in most cases. yes there is wave soldering however generally that is not an option most facilities have. As for my original question I think the answer is clear no one really would use a protoboard. or if so the cost is not reasonable so other ideas tend to surface. also while through hole is easier it tends to be much more expensive. a 0603 10k resistor is about $0.003 where a through hole equilivlent is well much more. same for other components like capacitors and even chips if there is a surface mount version it is likely that version is cheeper.


I will make an offer any one seeking to have boards made for a design be it you need help with layout or even schematic design I have the team and the tools to not only have the board designed but also to do any level of manufacturing from prototype to full on production. I will offer very reasonable and competative rates. I can even offer some distribution options and the shieldstore is not the only place I can help with that.



#17039 Proto Board or Perf Board

Posted by Terry Massey on 25 August 2011 - 04:46 AM in General Discussion

Yea you did. this is more an oppion type question. just looking for some perspective from the community.



#17222 Proto Board or Perf Board

Posted by Terry Massey on 29 August 2011 - 02:28 AM in General Discussion

All, Before we get off topic too much Which I like where your starting to head Bill because it kinda leads into why I asked the question in the first place. I have designed something I cant give out details yet but we are very close to launching it maybe 6 weeks or less if all goes well. The question is based on the need for me to develop a special ProtoBoard for this lets call it extended platform. or if most will end up jsut using a breadboard/Perfboard own custom PCB to interface with it. I personally am not a big fan of perfboard I find that it is cheeply made and While ProtoBoards are typicaly much nicer for components I usualy go from Breadboard to custom PCB and skip the middle step all together. Now Bill you and I are on a very similar playing field with reguard to PCB's Nothign beats a nicely made Prototype on a nice PCB. However Home etching is ok but I havent made the leap to Photo Etching. I am kinda stuck on the Sharpy and a board. And I dont like how horiable that ends up looking. and no way I can do any kind of Surfacemount two or more layers very nicely going that route. The problem is Proto Boards can get expencive to produce as the more Holes you have the PCB Fab House drill the more they can and do charge. but If i Had to choose I would rather use a nicely designed protoboard anyday. the Boards are typicaly much thicker and the Holes are nicely EING. if you dont know what EING is it is a emersion and plating that gets done to make it preserve the exposed copper from crossion and make it much easier to get a good solder joint. The problem is in the end Proto or Perf still are not a good Final solution. But from a Hobby or getting started testing out a project the perf board or Proto Board seem to be a good choice as I personally would find them a more perminate solution to a breadboard in a box.



#17029 Proto Board or Perf Board

Posted by Terry Massey on 24 August 2011 - 11:30 PM in General Discussion

Hi all,

So I wanted to start a dicussion today what do you use on your projects. Do you use standard perf board from places like radio shack or do you use proto boards like this one from sparkfun.
http://www.sparkfun.com/products/7914



#12816 +5V instead of +3.3V

Posted by Terry Massey on 04 May 2011 - 01:11 PM in Netduino Mini

True, but I needed a small form factor, not ethernet.
Although some day I would love a Plus, there's no need for it now and it costs money! ;)


Stefan,
If you need 3.3v as well on your project. My Netduino Mini Breakout has a 3.3v regulator and provides that supply voltage, and can be used both with the vin and the 5v inputs. As well as powering over USB. A distributor in your neck of the woods will have them in stock in the next few days. The breakout board is ~half the width of the Netduino mini and the same length.

A quick note on my Netduino Mini Breakout boards the current shipping version does not support external power and USB connection at the same time. Doing so can damage your mini.



#13072 +5V instead of +3.3V

Posted by Terry Massey on 10 May 2011 - 12:18 PM in Netduino Mini

LOL! This is the Danger Shield
It can help give me (and others) some understanding of things, but since it's Arduino based, it's 5V. I just want to know in advance if I need to make modifications to correct that. Appairently, it won't be a problem except that the analog interfaces will be a bit more sensitive.

Holland will still be safe, I actually have a fire extinguisher in my room ;)


You cant put 5 volts into a netduino analog port.



#13074 +5V instead of +3.3V

Posted by Terry Massey on 10 May 2011 - 12:31 PM in Netduino Mini

Can't? Now it gets complicated ;)

Don't want to break my netduino offcause, still haven't soldered the boards, so I think I'll wait until there's a conclusive answer to this :)


Sure Stefan don't believe me if not check the tech spec page. analog input is from 0 to 3.3 V at a max of 2mA per pin.

http://www.netduino....duino/specs.htm

analog reference: 2.6 - 3.3 VDC
max current: 8 mA per pin<br class="auto-style25" style="font-family: Tahoma; font-size: small; ">digital pins 2, 3, 7: 16 mA per pin
analog pins 0-3: 2 mA per pin
microcontroller max current: 200 mA total




#13078 +5V instead of +3.3V

Posted by Terry Massey on 10 May 2011 - 12:48 PM in Netduino Mini

From the datasheet: Absolute Maximum Ratings
Voltage on Input Pins with Respect to Ground...........................-0.3V to + 5.5V




CW2: If you look at page 37 of the summary datasheet is says 8 independent 3.3 v Analog inputs.



#12531 High Speed Photography

Posted by Terry Massey on 27 April 2011 - 12:34 PM in General Discussion

Is there a way to test this delay between tripping a trigger and performing a pin short?

Why would the delay be variable?


Garbage Collection. If garbage collection occurs while your trying to fire it off your code would be put on hold so thus the variable. You don't know if garbage collection will occur.



#12160 ThingSpeak Twitter - Revisited, Cleaned up.

Posted by Terry Massey on 16 April 2011 - 09:27 PM in Project Showcase

very cool....



#13379 Little Tutorial on the NetduinoMini and XBee Connections

Posted by Terry Massey on 17 May 2011 - 02:10 PM in Netduino Mini

Part 4 Published today intro on configuring the XBee using the application X-CTU
http://www.theshield...rt-4-x-ctu.aspx



#13141 Little Tutorial on the NetduinoMini and XBee Connections

Posted by Terry Massey on 11 May 2011 - 09:01 PM in Netduino Mini

Hi Everyone,
Today I was asked a few questions in the chat that prompted a tutorial video to be produced. The question was on a recommendation for taking moisture levels from a garden and transmitting them to the PC in the house. While there are several solutions in the end based on power consumption, Wireless Range, and size I made the following recommendations. A Netduino Mini, an XBee, and the addition of a 3.3v regulator to power the XBee. So then the question came up how do I hook all of this up. So part one of the tutorial I published today.

Part 1: Raw Mini Hookup
http://www.theshield...g-tutorial.aspx

Part 2: Mini Breakout Hookup
http://www.theshield...ing-part-2.aspx

Part 3: Communicating (Lets look at some code)
http://www.theshield...ing-part-3.aspx



#13155 Little Tutorial on the NetduinoMini and XBee Connections

Posted by Terry Massey on 12 May 2011 - 06:59 AM in Netduino Mini

I am using series 1 however the pin outs are the same on series 2. The difference is the serial commands which will discussed in video 3 on Friday's tutorial Video. Todays Video Which I am about to Just Posted shows the ease of connecting with the Breakout.



#23679 Resistors

Posted by Terry Massey on 02 February 2012 - 01:57 PM in General Discussion

I have to admit I would have probably thought of the web cam idea myself but as I was reading this post it became clear to me there might be a better solution. We have these color sensing sensors. Why not a small pen type device that could be easily ran across the side of a resistor with a readout of the colors and the value. not sure how acurate the sensors are but I wouldn't think it would be too hard to do. some bright white led source and the color sensor.
Just a thought

I really don't know how many are the people having visual inabilities, or whatever they call.
BTW, this post makes me thinking a lot about this problem...and how to solve it. The multimeter way is obvious, but if I were -even an hobbist- testing almost all the resistors...surely I'll throw everything out of the window...

My "open" question is: suppose having a normal webcam connected to the PC, then a imaging-processing software capable to "rotate" the colors. I mean acquiring a certain HSL (Hue-Sat-Luma), then change it upon the user's preferences. The result is displayed directly on the PC.
Well, surely *NOT* a panacea, but it's pretty simple to do, taking advantage of tons of free libs anywhere. Also a webcam is just an affordable device.

I must admit that this question is slightly off-topic, but...anyone would like to comment?
Cheers





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.