HSven1611's Content - Netduino Forums
   
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.

HSven1611's Content

There have been 14 items by HSven1611 (Search limited from 30-March 23)


By content type

See this member's

Sort by                Order  

#64786 System.NullReferenceException occurred in Netduino.IP.LinkLayers.CC3100

Posted by HSven1611 on 21 January 2016 - 05:30 PM in Netduino 3

Configuring the WiFi is done by using the MFDeploy tool. You'll have to connect to your Netduino first and then you are able to change it's network settings.

 

I don't have that stuff installed here so I cannot upload a screenshot. Sorry for that.

 

Regards

 

Sven




#64634 Interrupt Port Ghosts

Posted by HSven1611 on 10 December 2015 - 03:14 PM in Netduino Plus 2 (and Netduino Plus 1)

This might be an electrical problem. Can you upload a circuit diagram?

 

Regards

 

Sven




#64299 UDP broadcast example?

Posted by HSven1611 on 14 October 2015 - 11:44 AM in Netduino Plus 2 (and Netduino Plus 1)

 Socket Socket { get; set; }

        public UdpClient(int port)
        {
            LocalPort = port;
            try
            {
                Socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
                Socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);

                IPEndPoint broadcastEndPoint = new IPEndPoint(System.Net.IPAddress.Any, LocalPort);

                Socket.Bind(broadcastEndPoint);
            }
            catch
            {
                throw;
            }

            new Thread(new ThreadStart(threadStartTarget)).Start();
        }

  public int Send(byte[] data, EndPoint endPoint)
        {
            return Socket.SendTo(data, endPoint);
        }

This works for me and should give you a good starting point.

You might have to use the broadcast IPEndPoint to send broadcast.




#63360 v4.3 NetduinoGo.dll Has Bad References to v4.2 Assemblies

Posted by HSven1611 on 03 July 2015 - 06:43 AM in Netduino Go

I'm using the Go! with the 4.2 Firmware and the 4.2 dlls. That works for me. Afaik the 4.3 Firmware ist still beta for the Go!.




#63239 Sd Card read issues

Posted by HSven1611 on 25 June 2015 - 05:46 AM in Netduino Plus 2 (and Netduino Plus 1)

As far as I know StreamReader.Peek "Returns the next available character but does not consume it." That is what MSDN sais.

 

You might want to use the EndOfStream Property. MSDN: "Gets a value that indicates whether the current stream position is at the end of the stream."

 

This should work (btw. I'm not really into VB so please excuse if I did not get the syntax correct)

While Not sr.EndOfStream
[...]



#63202 Netduino is running slower in certain classes than others(Video)..Why?

Posted by HSven1611 on 18 June 2015 - 12:20 PM in General Discussion

You could also try something like

while (flag)
{
    Thread.Sleep(100);
}

While your Flag is set this loops but with enough time for other Threads to work.




#63149 Trying to communicate with a 24LC256

Posted by HSven1611 on 15 June 2015 - 11:27 AM in Netduino 2 (and Netduino 1)

Did you use Pull Up Resistors on your I²C Bus?




#62964 UDP and ESP8266

Posted by HSven1611 on 29 May 2015 - 07:14 AM in Netduino 3

Hi

 

I'm doing something like that:

  public UdpClient(int port)
        {
            LocalPort = port;
            try
            {
                Socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
                Socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);

                IPEndPoint broadcastEndPoint = new IPEndPoint(System.Net.IPAddress.Any, LocalPort);

                Socket.Bind(broadcastEndPoint);
            }
            catch
            {
                throw;
            }

            new Thread(new ThreadStart(threadStartTarget)).Start();
        }

        private void threadStartTarget()
        {
            try
            {
                EndPoint remoteEndPoint = new IPEndPoint(System.Net.IPAddress.Any, 0);

                while (true)
                {

                    int availableBytes = Socket.Available;
                    if (availableBytes > 0)
                    {
                        byte[] receiveBuffer = new byte[availableBytes];
                        Socket.ReceiveFrom(receiveBuffer, ref remoteEndPoint);

                        // My own data received Event
                        OnDataReceived(remoteEndPoint, receiveBuffer);                       
                        
                    }

                    // This is recommends in thread loops to help prevent lock-ups
                    Thread.Sleep(10);
                }
            }
            catch (Exception e)
            {
                // catch all exceptions
                Debug.Print(e.ToString());
            }
            finally
            {
                Debug.Print("UDP server thread finished.");
            }
        }

I remember having issues with that Poll() method too... Don't know how that thing should work.




#62758 TM1803 v2 LED Strip

Posted by HSven1611 on 20 May 2015 - 06:45 PM in Netduino 3

Hi

 

So, to make sure I understand, I could have put anything in place of Pins.GPIO_PIN_D10 (like PIN_D09) and that would not have mattered? The pins 11, 12 and 13 are always the same for the purpose of SPI?

 

 

As far as I know, that's correct.

 

I don't know, if thats general knowledge. I leaned that stuff in university during my Electrical Engeneering studies.




#62756 TM1803 v2 LED Strip

Posted by HSven1611 on 20 May 2015 - 11:08 AM in Netduino 3

Hi KenTi

 

Some basic information about SPI:

A Spi Interface generally contains 4 Pins:

1. SCK - Thats the clock signal. Netduinos have this signal connected to Pin 13

2. MoSi (Master Out Slave In) - Thats the data signal that goes from the controller to the connected slave. Netduino Pin 11

3. MiSo (Master In Slave Out) - Data going from the connected slave to the controller. Netduino Pin 12

4. CS (Chip Select) - Thats the signal that shows the connected slave that data transmitted on MoSi is ment do be received by that client and the client is allowed to send data on the MiSo line. 

 

The ChipSelect Pin is actually necessary only if you connect 2 or more clients to one single SPI interface.

 

Now back to your question:

You need to connect your green wire to Pin 11 because you want to use the SPI interfaces data output to "talk" to the LEDs. The Chip Select signal is nor used in that application. Neither the clock and the MiSo signals.

 

I do not know if it is possible to use the SPI interface and only map the MoSi signal to the Netduinos Outputs to save pins for other applications. Maybe one of the other people here might know that.

 

Best Regards

 

Sven




#62744 TM1803 v2 LED Strip

Posted by HSven1611 on 19 May 2015 - 02:52 PM in Netduino 3

Hi

 

As far as I can see yes.

 

This seems to be the datasheet of the used LEDs:

http://www.adafruit....eets/APA102.pdf

 

As you can see on page 4, you need to make sure, your SPI Data is valid during the high flank of your SPI Clock signal.

 

(btw.: Thak you for that information about those awesome new LED stripes!!)




#62724 TM1803 v2 LED Strip

Posted by HSven1611 on 18 May 2015 - 07:18 AM in Netduino 3

Hi

 

Netduinos digital IOs are to slow and to unpredictable to control your LEDs. You should try this:

http://jcoder.me/blo...ws2812-rgb-led/

 

Regards

Sven




#62511 Gobus with Netduino 3

Posted by HSven1611 on 08 May 2015 - 05:50 AM in Netduino 3

As far as I understood, the GoBus Libraries are still for NETMF4.2 but the ND3 Wifi needs NETMF4.3. 

It seems, we'll have to wait for the new SDK to be released...




#62503 Sd Card write issues

Posted by HSven1611 on 07 May 2015 - 05:15 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi

 

Did you try 

sw.Flush();

to make the StreamWriter flush it's content?

 

Regards

 

Sven





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.