Nevyn - Viewing Profile: Likes - Netduino Forums - Page 2
   
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.

Nevyn

Member Since 27 Dec 2010
Offline Last Active May 31 2021 02:37 PM
*****

#62866 NeonMika.Webserver

Posted by Nevyn on 25 May 2015 - 11:20 AM

Managed to get this working on the Netduino 3 with a little bit of fiddling:

  1. Upgraded all the project to NETMF 4.3
  2. Changed the reference to the NetduinoPlus assemby to Netduino
  3. Some of the SecretLabs assemblies in the WebServer project had to be manually removed and replaced with 4.3 versions
  4. Had to remove the call to interf.EnableDhcp() in Server.cs as this is not implemented.  Also commented out the line below it.  Will investigate later.

But it's up and running...

 

Regards,

Mark




#62841 Hang in CC3100 socket for HttpWebRequest

Posted by Nevyn on 24 May 2015 - 07:23 PM

I've tried the sample and it locks for me too.  Note that I did not use a NetduinoGo button but the on board button.

 

However, if you move the call to SendRequest from inside the interrupt for the button and place it just above the last line of code (I replaced the while with a Thread.Sleep(Timeout.Inifinte)) call then you get a response from Google in a reasonable time.

 

Hope this helps,

Mark




#62815 How to reduce pin usage

Posted by Nevyn on 23 May 2015 - 05:34 PM

There are a few options, the most common one people have used here is to use a single 74HCT595 shift register.  This will allow you to use three pins and have 8 outputs per chip.  You need the HCT version as this will allow you to use 3.3V outputs to communicate with the chip.  There's a fair amount of examples in the forums here for using these chips.

 

There are other chips such as the MCP23S17 which has 16 input/output pins.  This one uses SPI but there are I2C versions out there.

 

Hope this helps,

Mark




#62287 Scott Hanselman just flashed a Netduino Wifi at BUILD

Posted by Nevyn on 29 April 2015 - 07:17 PM

Interesting, looks to have three Go Bus sockets on the board as well.

 

Regards,

Mark




#61382 Native code interop

Posted by Nevyn on 27 January 2015 - 12:21 PM

Does the netduino firmware support any kind of native code interop.

I've seen some references and promises on the forum but those date back to years ago.

 

Side question: Is the netduino firmware still under active development? 

 

The NETMF classes have to call native code in order to talk to the microcontroller and so there is an interface available.  I think you would be expected to bind your native code into the firmware though in order to call it.  Frank Zhao has written an article on the Adafruit web site about how to write a native extension to the firmware to control Neopixels.

 

The firmware is still under development, check out the Technical Preview forum.

 

Hope this helps,

Mark




#59162 New Modules Seen in the Wild

Posted by Nevyn on 11 July 2014 - 07:47 AM

This turned up on my twitter feed this morning:

 

http://instagram.com/p/qSO033j2SR/

 

Regards,

Mark




#58802 Application Development on the STM8S

Posted by Nevyn on 20 June 2014 - 03:11 PM

For those who are still following this series, I've added a new article to this series - Using Auto-Wakeup on the STM8S.

 

Regards,

Mark




#58347 Creating an interrupt port not using a Digital input

Posted by Nevyn on 22 May 2014 - 06:38 AM

You could look at using timers as this will give you the threading free of charge as the timers effectively execute in their own thread.

 

http://blog.mark-ste...1/netmf-timers/

 

Regards,

Mark




#58045 how to set external REF voltage for ADC & REF voltage min and max values

Posted by Nevyn on 11 May 2014 - 08:23 AM

If you want better resolution in the 0-500mV range and you are sure you are never going to get a reading above 500mV then have you thought about using an op amp to boost the signal into the 0-3.3V range?

 

Regards,

Mark




#56052 Out of pins. Need advice on how to expand

Posted by Nevyn on 13 February 2014 - 06:40 AM

If you are looking at outputs then a few forum members here use 74HC595's.

 

There is a relatively cheap chip with 16 I/Os: MCP23S17.  I've got one of these but not tried using it yet.  You can also get an I2C version of this chip.

 

You would need to consider moving some of your I/Os to these chips to free up enough pins for SPI/serial comms but they should both allow you to do that.

 

Hope this helps,

Mark




#55160 C# Netduino plus 2, how to send RFID data to windows form listbox through UART?

Posted by Nevyn on 03 January 2014 - 03:48 PM

I would look at adding the UART code to the RFID something ike the following:

//UART Project codesusing System;using System.Net;using System.Net.Sockets;using System.Threading;using Microsoft.SPOT;using SecretLabs.NETMF.Hardware;using SecretLabs.NETMF.Hardware.Netduino;using System.IO.Ports;namespace UART{    public class Program    {        static SerialPort serialPortUART = new SerialPort(SerialPorts.COM2, 9600, Parity.None, 8, StopBits.One);        private static void sendDataUsingCOMPort(string _string)        {            byte[] data = System.Text.Encoding.UTF8.GetBytes(_string + "n");            serialPortUART.Open();            serialPortUART.Write(data, 0, data.Length);            serialPortUART.Flush();            serialPortUART.Close();        }        public static void Main()        {            SerialPort serialPort = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.One);            string id;            serialPort.Open();            while (true)            {                int bytesToRead = serialPort.BytesToRead;                if (bytesToRead > 0)                {                    // get the waiting data                    byte[] buffer = new byte[bytesToRead];                    serialPort.Read(buffer, 0, buffer.Length);                    // print out our received data                    id = new String(System.Text.Encoding.UTF8.GetChars(buffer));                    sendDataUsingCOMPort(id);                    Debug.Print(id);                }                Thread.Sleep(100); // wait a bit so we get a few bytes at a time…            }        }    }}

BTW - as I don't have a reader I have not had the chance to test this.

 

Also, this is not the most efficient way or reading from a serial port.  I'd suggest that you look at using interrupts and assembling a string.  You will need to work out when you have a "complete" buffer of data before tranmitting to then Windows app.

 

Hope this helps,

Mark




#54367 Beginner single 7 segment display & 74HC595

Posted by Nevyn on 29 November 2013 - 06:44 AM

If anyone's interested, Fabien has written a blog post on Using a MAX7219/MAX7221 LED Driver with a Netduino.

 

I had trouble using this chip with the Plus and I think this was because of a problem with the reset conditions of the Plus (digital pins high on startup).  Not worked with this chip since the Plus 2 came along with it's reversed startup state of the digital pins.

 

Hope this help,

Mark




#53555 Release Dates of Netduino Boards

Posted by Nevyn on 25 October 2013 - 05:40 AM

4/4/12

Introducing Netduino GO!

 

8/11/12

Introducing Netduino Plus 2

 

15/1/13

Introducing Netduino 2

 

Dates are UK format.

 

Regards,

Mark




#53054 Code optimisation? Shift left/right instead of divide by 2?

Posted by Nevyn on 05 October 2013 - 06:23 AM

If I remember well, you shouldn't notice any difference between the two ways to do the same operation. Since the code is interpreted, most of the time is taken by the opcodes parsing engine, then the native operations are (mostly) much faster.

 

Also, where it does matter, a good compiler will work out that you are multiplying by a constant value which is a multiple of 2 and substitute a shift operation if it will make the code more efficient.

 

Regards,

Mark




#52356 Learning Resources

Posted by Nevyn on 26 August 2013 - 06:25 AM

Have you had a look at the Tutorials section of the Wiki?

 

Regards,

Mark






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.