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.

Michael Walker's Content

There have been 2 items by Michael Walker (Search limited from 26-April 23)


By content type

See this member's

Sort by                Order  

#16019 Windows Form + Netduino+ trouble

Posted by Michael Walker on 29 July 2011 - 05:00 AM in Netduino Plus 2 (and Netduino Plus 1)

Hey,

You are firstly overwriting your variable socket with the client socket after Accept is triggered, secondly you are putting the socket in the using scope which will call dispose on the closing }.

As mentioned above create a new variable from the socket.Accept(), should look something like:

while (true)
            {
                string message;

                using (var clientSocket = socket.Accept())
                {

                    //Get request
                    var bufferRequest = new byte[256];
                    int bytes;

                    do
                    {
                        bytes = clientSocket.Receive(bufferRequest, bufferRequest.Length, 0);

                    } while (bytes > 0);

                    message = new String(Encoding.UTF8.GetChars(bufferRequest));
                }

               
                //ToDo: your LED logic here...
            }


Hope this helps :D

Michael



#15981 Mobile turret system

Posted by Michael Walker on 27 July 2011 - 09:56 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi All,

I have been working on a mobile turret system for a month or two now. The parts of the system (so far) are listed below, I have written a socket server for the Netduino Plus to take commands from any device on the same network. I have also written an Android app for my Galaxy Tab that just connects to the open socket and sends the needed command.

Vids:

Explination
http://www.youtube.com/watch?v=mn07GgBlPjM

Ported to Android
http://www.youtube.com/watch?v=Zicdbg84f_A

Parts so far:

Pan/Tilt
Full rotation servo
180 servo
Netduino Plus (duh)

I have managed to get the project working quite well (thanks Chris Seto for your servo driver class!), I now need some advice on a few things:

I have done some research on the forums here and found a wi-fi solution here but the breakout costs as much as the Netduino, if I bought this would it be much work to put it on a blank board myself (keeping in mind I have 0 exp with electronics)?

After resolving the wi-fi I believe the next hurdle will be power requirments, the system will have a car battery available to it so It would be good if I could hook into that to power the boards and the servos, I have read it is better to power the servos seperatly because of current requirments not sure how I will do that either...

The end result I am looking for is a mobile turret that will have a spotlight attached which is controlled using my Android app.

Any help, advice or comments would be great!

Thanks,

Michael

P.S. This is my first post :D




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.