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.

cce1911's Content

There have been 59 items by cce1911 (Search limited from 19-April 23)


By content type

See this member's


Sort by                Order  

#57942 How do I connect Netduino+ to a pc wireless?

Posted by cce1911 on 05 May 2014 - 01:23 AM in Netduino Plus 2 (and Netduino Plus 1)

I got everything working. I just needed to boot the Edimax and wait 60 seconds before powering up the N+2. When powering them up at the same time, the N+2 did not see the Edimax, but if I waited a minute, everything worked as advertised.

 

Baxter, yes I have it setup the way you described and port forwarding was not my issue. 




#57931 Netduino Plus 2 Firmware v4.3.1

Posted by cce1911 on 04 May 2014 - 11:38 AM in Netduino Plus 2 (and Netduino Plus 1)

It took me too many hours to figure out that you can't boot up both devices at the same time. You have to boot theEdimax 60 seconds before powering up the N+2.



#57920 How do I connect Netduino+ to a pc wireless?

Posted by cce1911 on 03 May 2014 - 06:37 PM in Netduino Plus 2 (and Netduino Plus 1)

I got the Edimax 6258n and installed but I'm having some issues.

 

Here is my configuration:

  • Belkin N300 Wireless Router
  • No WAN connectivity
  • DHCP turned off
  • Static IP of 192.168.1.1
  • Netduino +2
  • Setup with static IP of 192.168.1.100
  • Laptop PC
  • connected to Belkin N300 wifi
  • Static IP of 192.168.1.29

 

My PC application uses a socket connection to talk to the Netduino on port 9999 and 9998. This works fine in a hard wired environment.  In this environment, I can ping the IP addresses of all the devices, but when I go to establish a socket connection I get an error saying "No connection can be made because the target machine actively refused it."

 

I tried configuring the Port Forwarding feature of the Edimax, but that did not seem to work either.

 

Does anyone have an idea on how to get the Edimax to allow tcp/ip traffic on designated ports?




#57820 How do I connect Netduino+ to a pc wireless?

Posted by cce1911 on 29 April 2014 - 02:03 AM in Netduino Plus 2 (and Netduino Plus 1)

Baxter,

If I could use the USB port, it would make things easier. So I will now go down the path you suggest.

-Capel




#57813 How do I connect Netduino+ to a pc wireless?

Posted by cce1911 on 28 April 2014 - 09:07 PM in Netduino Plus 2 (and Netduino Plus 1)

Could I use a male to male USB cable to power the Edimax BR-6258n NANO via the N+2 if I have a battery providing power to the N+2?




#56979 Netduino Plus 2 Firmware v4.3.1

Posted by cce1911 on 21 March 2014 - 09:20 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi cce1911,
 

In each project, go to project properties (right-click on the project name, select the "properties" menu option).

Then change the "Target Framework" from NETMF 4.3 to NETMF 4.2. It will probably close the window for you when you do this, to save the changes.

Then change the target framework back to NETMF 4.3.

Repeat the above for each project. If there are forty, it may take you 15 minutes. Tedious and no fun, but it should change everything from 'pre-production 4.3' to 'production 4.3.1' for you.

Now

 

Chris,

I just wanted to let you know that I was able to resolve my problem by compiling the toolbox with the 4.3.1 code.

-Capel




#56910 Netduino Plus 2 Firmware v4.3.1

Posted by cce1911 on 19 March 2014 - 12:58 PM in Netduino Plus 2 (and Netduino Plus 1)

Thanks for the quick reply Chris. Do I also need to change the AssemblyVersion in AssemblyInfo.cs?




#56908 Netduino Plus 2 Firmware v4.3.1

Posted by cce1911 on 19 March 2014 - 12:34 PM in Netduino Plus 2 (and Netduino Plus 1)

I have downloaded the source, but I'm not real sure how to upgrade it to 4.3.1. Do I have to change the target framework on all 40 projects? Do I have to manually edit the AssemblyInfo files and change AssemblyVersion("4.3.1.0")?




#56903 Netduino Plus 2 Firmware v4.3.1

Posted by cce1911 on 19 March 2014 - 04:18 AM in Netduino Plus 2 (and Netduino Plus 1)

I've upgraded to vs2012, .netmf 4.3 and flashed the firmware successfully. I've upgraded my projects and their references to the 4.3 dlls, but when I go to deploy my programs the I'm getting errors with the .net microframework toolbox. I downloaded the 4.3 DLLs but I'm getting the following.

 

Link failure: some assembly references cannot be resolved!!
 
Assembly: Toolbox.NETMF.Hardware.Ic74HC595 (4.3.0.0) needs assembly 'mscorlib' (4.3.0.0)
 
 
My mscorlib is version 4.3.1.0.



#54703 Button Interrupts

Posted by cce1911 on 15 December 2013 - 04:48 PM in Netduino Plus 2 (and Netduino Plus 1)

CW2, thanks for your response. I made the changes you suggested and still had a problem. Then I realized that I had not tied the 3v button cell ground to the NP2 ground. Once I did that, everything seems to work just fine.

 
 



#54700 Button Interrupts

Posted by cce1911 on 15 December 2013 - 03:32 PM in Netduino Plus 2 (and Netduino Plus 1)

I'm seeing some odd behavior for what should be a simple project. Maybe I'm missing something and someone can point out the error of my ways?

 

What I'm trying to do is capture a sensor input. To test my code I've simulated the sensor with a simple momentary push button. See the schematic attached.

 

The problem is when I push one button, it triggers the interrupt for the other buttons. Here is my code:

public class Program2        {        static DateTime dtLastPress;        static int intBounceWait = 200;        public static void Main()            {            InterruptPort ipT1 = new InterruptPort(Pins.GPIO_PIN_D0, false, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeLow);            ipT1.OnInterrupt += T_OnInterruptT1;            InterruptPort ipT2 = new InterruptPort(Pins.GPIO_PIN_D1, false, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeLow);            ipT2.OnInterrupt += T_OnInterruptT2;            InterruptPort ipT3 = new InterruptPort(Pins.GPIO_PIN_D2, false, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeLow);            ipT3.OnInterrupt += T_OnInterruptT3;            InterruptPort ipT4 = new InterruptPort(Pins.GPIO_PIN_D3, false, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeLow);            ipT3.OnInterrupt += T_OnInterruptT4;            Thread.Sleep(Timeout.Infinite);            }        static void T_OnInterruptT1(uint data1, uint data2, DateTime time)            {            if (dtLastPress.AddMilliseconds(intBounceWait) > time)  // prevent bounce                {                Debug.Print("T1 = bounce wait");                return; // prevent bounce                }            dtLastPress = time;            RecordPress(1, time);            }        static void T_OnInterruptT2(uint data1, uint data2, DateTime time)            {            if (dtLastPress.AddMilliseconds(intBounceWait) > time)  // prevent bounce                {                Debug.Print("T2 = bounce wait");                return; // prevent bounce                }            dtLastPress = time;            RecordPress(2, time);            }        static void T_OnInterruptT3(uint data1, uint data2, DateTime time)            {            if (dtLastPress.AddMilliseconds(intBounceWait) > time)  // prevent bounce                {                Debug.Print("T3 = bounce wait");                return; // prevent bounce                }            dtLastPress = time;            RecordPress(3, time);            }        static void T_OnInterruptT4(uint data1, uint data2, DateTime time)            {            if (dtLastPress.AddMilliseconds(intBounceWait) > time)  // prevent bounce                {                Debug.Print("T4 = bounce wait");                return; // prevent bounce                }            dtLastPress = time;            RecordPress(4, time);            }        static void RecordPress(int intTarget, DateTime time)            {            Debug.Print("T" + intTarget.ToString() + " = " + DateTime.Now.ToString("MM/dd/yy H:mm:ss.fff"));            }        }

If I run the code and press the buttons in order (T1, T2, T3, T4) I get the following output:

T3 = 06/01/11 0:00:10.259
T4 = bounce wait
T3 = bounce wait
T4 = bounce wait
T2 = bounce wait
T1 = bounce wait
T2 = 06/01/11 0:00:12.705
T3 = 06/01/11 0:00:16.861
T4 = bounce wait
T2 = bounce wait
T1 = bounce wait
 
 
Any insight into what I'm doing wrong would be appreciated.

Attached Thumbnails

  • button_test.jpg



#54235 How to drive multiple lasers?

Posted by cce1911 on 22 November 2013 - 08:06 PM in Netduino Plus 2 (and Netduino Plus 1)

Paul,

Thanks for this very informative post. I was trying to avoid adding 9 components to my system, but based on your observations, that may be unavoidable. Given this, would MOSFETs be a better choice than Darlington pairs?

-Capel




#54229 How to drive multiple lasers?

Posted by cce1911 on 22 November 2013 - 06:07 PM in Netduino Plus 2 (and Netduino Plus 1)

So I have gotten my shift register to work with my N+2, but the lasers I'm trying to drive require 300mA of current each. So to drive 9 of these, I need almost 3A at 2.5 - 4.5 vdc.  This is way too much for the N+2 and the 74HC595. I've been looking at some transistor arrays, but I'm not sure how to wire them. Can anyone point me to a circuit that uses this 8ch Darlington Sink driver(or something similar)?




#54202 Sparkfun Shift Register Breakout - 74HC595

Posted by cce1911 on 20 November 2013 - 10:40 PM in Netduino Plus 2 (and Netduino Plus 1)

When I finally took the time to figure out how the breakout board was wired to the IC, it became more obvious how to wire it up. Thanks for all your help!

Attached Thumbnails

  • shiftReg.jpg



#54200 Sparkfun Shift Register Breakout - 74HC595

Posted by cce1911 on 20 November 2013 - 10:30 PM in Netduino Plus 2 (and Netduino Plus 1)

Thanks for the reply Grant. Yes, I figured this out myself after you pointed me in the right direction.




#54192 Sparkfun Shift Register Breakout - 74HC595

Posted by cce1911 on 20 November 2013 - 02:48 PM in Netduino Plus 2 (and Netduino Plus 1)

Grant,

Ok, I have wired SER_IN to pin 11

L_CLOCK to pin 10

/OE to gnd

/reset to Vcc

 

But there is one more pin on the breakout board, (CLOCK) that I'm not sure what to do with. Please see my wiring diagram. I would like to control each LED seperately.

 

 

Attached Thumbnails

  • wire_diagram.jpg



#54160 Sparkfun Shift Register Breakout - 74HC595

Posted by cce1911 on 19 November 2013 - 02:38 AM in Netduino Plus 2 (and Netduino Plus 1)

Thanks Grant, I'll check this out when I get back from my out-of-town trip!




#54131 Sparkfun Shift Register Breakout - 74HC595

Posted by cce1911 on 17 November 2013 - 08:45 PM in Netduino Plus 2 (and Netduino Plus 1)

Can someone point me to an example of using this breakout board with the Netduino?

https://www.sparkfun.../products/10680

 

I would like to use the .Net Microframework Toolbox, but it's not obvious to me how to wire it up.

 

 




#52262 Interrupt event handler conflicts

Posted by cce1911 on 21 August 2013 - 01:47 PM in Netduino Plus 2 (and Netduino Plus 1)

I have a N+2 driving 2 stepper motors with the Sparkfun Easydriver. I have wired up several external buttons

InterruptPort ipT1 = new InterruptPort(Pins.GPIO_PIN_D0, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeLow);ipT1.OnInterrupt += Target_OnInterruptT1;InterruptPort ipT2 = new InterruptPort(Pins.GPIO_PIN_D1, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeLow);ipT2.OnInterrupt += Target_OnInterruptT2;

?

 

Here are my event handlers

        static void Target_OnInterruptT1(uint data1, uint data2, DateTime time)            {            if (dtLastHit.AddMilliseconds(intBounceWait) > time) return; // prevent bounce            dtLastHit = time;            Debug.Print("Hit T1 = " + DateTime.Now.ToString("MM/dd/yy H:mm:ss.fff"));            }        static void Target_OnInterruptT2(uint data1, uint data2, DateTime time)            {            if (dtLastHit.AddMilliseconds(intBounceWait) > time) return; // prevent bounce            dtLastHit = time;            Debug.Print("Hit T2 = " + DateTime.Now.ToString("MM/dd/yy H:mm:ss.fff"));            }

My problem is that when I press button T1 it randomly executes Target_OnInterruptT2 or Target_OnInterruptT1. No rhyme or reason. The same thing happens if I press button T2.

 

What is odd is that I've used this same exact board with 5 buttons, in the past, and had no problems. Any idea what is happening? I thought it might be EMI from the Easy driver, but I still get the same behavior even if I disconnect power to the stepper motors.

 

I'm scratching my head...




#52261 Date from netduino plus

Posted by cce1911 on 21 August 2013 - 12:56 PM in Netduino Plus 2 (and Netduino Plus 1)

I used the DS1307 real time clock from Adafruit: http://www.adafruit.com/products/264




#52260 Quick question about ND+2 Socket

Posted by cce1911 on 21 August 2013 - 12:50 PM in Netduino Plus 2 (and Netduino Plus 1)

http://msdn.microsof...y/ee434782.aspx

 

socket.listen(backlog)

 

backlog = The maximum number of incoming connections that can be queued for acceptance. Try

serverSocket.Listen(10);




#52165 Failed allocation while writing text file

Posted by cce1911 on 14 August 2013 - 08:01 PM in Netduino 2 (and Netduino 1)

Val, thanks for the reply. I've decided to start a new log file at 25k, but I will give Debug.GC a try.

-Capel




#52135 Failed allocation while writing text file

Posted by cce1911 on 14 August 2013 - 01:42 AM in Netduino 2 (and Netduino 1)

In my N+2 app, I log things to a text file for later debugging. I use this code in a function:

using (var filestream = new FileStream(@"SDrunlog.txt",FileMode.Append))                    {                    StreamWriter streamWriter = new StreamWriter(filestream);                    streamWriter.WriteLine(DateTime.Now.ToString("MM/dd/yy H:mm:ss.fff") + ": " + strMsg);                    streamWriter.Close();                    //Debug.Print(DateTime.Now.ToString("MM/dd/yy H:mm:ss.fff") + ": " + strMsg);                    }

When my log file gets over 33k I get a failed allocation error when creating the new streamwriter:

StreamWriter streamWriter = new StreamWriter(filestream);

 

Any idea on what is causing this and how to avoid it?  




#52087 N+2 Socket problem

Posted by cce1911 on 11 August 2013 - 12:52 PM in Netduino Plus 2 (and Netduino Plus 1)

Zero, so far I have only tested with a single client.




#51812 Toolbox.NETMF.Hardware.DS1307 problem

Posted by cce1911 on 31 July 2013 - 04:26 AM in Netduino Plus 2 (and Netduino Plus 1)

It looks like this wiring diagram may have been for the N+: http://netmftoolbox....ailable classes

 

The N+2 has pins SC and SD. When I wired my RTC to these pins, everything worked.





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.