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.

carb's Content

There have been 185 items by carb (Search limited from 06-June 23)


By content type

See this member's


Sort by                Order  

#38798 High Resolution Quad Encoder Problem

Posted by carb on 08 November 2012 - 09:43 PM in General Discussion

The results are: Running at 16Hz, everything goes fine. Actually everything goes fine until about 30Hz, where my second netduino seems to be loosing pulses.

Ijor,

I haven't tried anything like that but whould like to try it with the new Netduino Plus 2 if mine comes in this weekend. Can you post the code that you used for the test so I can get a fair test for comparision against a Netduino Plus 1.

Chuck



#42362 Driving large LED-Matrix-Displays

Posted by carb on 29 December 2012 - 12:00 AM in General Discussion

Mark,

 

The Wiki link is http://wiki.netduino.com/




#45397 Netduino Go Firmware v4.2.2 (update 1)

Posted by carb on 12 February 2013 - 11:16 PM in Netduino Go

Wernerotten,

 

I don't see any reason it shouldn't work, I updated 2 shieldbases.

 

Recommend:

  • Start with a freshly loaded computer (reboot just before going into Visual Studio).
  • Have only the shieldbase plugged in to the Go board.
  • Use a different 10 cm cable.
  • Plug in the USB cable from the Netduino Go and the computer.
  • Make a new directory and unzip the shieldbase update program.
  • Run the solution

If that doesn't work contact Chris (if he doesn't respond to this post) and see if he has any other tricks that will get it updated.

 

Chuck




#45346 Netduino Go Firmware v4.2.2 (update 1)

Posted by carb on 11 February 2013 - 11:22 PM in Netduino Go

Wernerotten,

 

Don't worry about it, that is the correct way that it now operates. If you watch closely the first 2 LED flash very briefly, then turn off. If you connect a module like a pushbutton to one of then the LED will work like it used too.

 

It was a change in the new firmware, part of the rapid boot up changes. I saw it a couple of weeks ago and talked to Chris about it and he said that it was normal with the new firmware.

 

That is the correct behavior. The first two LEDs turn off quickly during boot...and then the other six stay on until TinyCLR is fully running. This will change in NETMF 4.3, with the new fast boot process. All of your Netduino Go boards may behave that same way, when upgraded to 4.2.2. Mine do :) If you connect a GoBus module to GoPort 1 or 2, they should run fine and the LED should light up properly when they're enabled.  
Chris

 

Hope that helps,

Chuck




#36628 LED Matrix

Posted by carb on 06 October 2012 - 12:48 PM in Netduino Go

It took me a lot of time the description of the circuit, but finally I've finished it.
http://highfieldtale...driven-via-spi/

Please, feel free to ask whatever you need.
Cheers

Nice job Mario,

Very Detailed.

Thanks,
Chuck



#39067 Netduino Plus 2 Native OneWire Temp Sensor

Posted by carb on 11 November 2012 - 11:16 PM in Netduino Plus 2 (and Netduino Plus 1)

Sample Debug Output:

11/11/2012 19:03:25 Temp Inside: 67.8 Temp Outside: 44.4
11/11/2012 19:03:35 Temp Inside: 67.9 Temp Outside: 44.4
11/11/2012 19:03:45 Temp Inside: 67.9 Temp Outside: 44.5
11/11/2012 19:03:55 Temp Inside: 67.9 Temp Outside: 44.5
11/11/2012 19:04:05 Temp Inside: 67.9 Temp Outside: 44.

Nick,

Looks cold outside, it 83 outside here in Florida, A/C is running.

What sensors are you using.

Thanks for postiong the code to help others get started,
Chuck



#38592 Something new is brewing in the Secret Labs

Posted by carb on 06 November 2012 - 02:32 AM in General Discussion

What I *REALLY* would love:
UGl6emEgTmV0ZHVpbm86IGJ1ZmZhbG8gbW96emFyZWxsYSwgUGFjaGlubyB0b21hdG9lcywgYW5kIGJhc2ls
Anyone wish it too?

U291bmRzIGdvb2QsIGJ1dCBmYXR0ZW5pbmcuIFNob3VsZCBhZGQgc29tZSBwZXBwZXJvbmkgb3Igc2F1c2FnZS4=

Chuck



#38591 Something new is brewing in the Secret Labs

Posted by carb on 06 November 2012 - 02:30 AM in General Discussion

SSBkZW55IGFsbCBrbm93bGVkZ2UuIEkgZG9uJ3Qga25vdyBhIHRoaW5nLg==

U3RlZmFuLCBTcGlsbCB0aGUgYmVhbnMsIEkgYW0gc2VhcmNoaW5nIHlvdXR1YmUgbm93Lg==

Chuck



#40544 Netduino Plus 2 - I2C not working

Posted by carb on 30 November 2012 - 09:26 PM in Netduino Plus 2 (and Netduino Plus 1)

Thanks for the quick reply.

I'm using the SD/SC pins, I have also tried A4/5 with no success.

Attached is an image of my setup.


The device has pull-ups built in with 4.7k resistors. I'm using the Sparkfun SEN-10724 (https://www.sparkfun.../products/10724) The sensor works with my N+1 and Nmini (with the above mentioned code).

I will look at dave's code and see if that helps.

egeorgiou,

From the picture it looks like you have both the power and the ground plugged into the same row of the bread board, this will short out the power supply, please check your wiring?

Chuck



#40561 Netduino Plus 2 - I2C not working

Posted by carb on 30 November 2012 - 10:23 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Dave,

thanks!

Here is the code (I'm really sure it isn't the code because it work on the NP+1 and I'm not doing anything fancy and I'm 100% sure I'm reading from the correct register on the device and the address of the device is correct)

using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;

namespace NetduinoPlusApplication_I2C_Example
{
    public class Program
    {
        public static void Main()
        {
            Byte[] _data = new byte[1] { 0 };

            I2CDevice adxl345 = new I2CDevice(new I2CDevice.Configuration(0x53, 100));
            I2CDevice.I2CWriteTransaction write = I2CDevice.CreateWriteTransaction(new Byte[] { 0x00 });
            I2CDevice.I2CReadTransaction read = I2CDevice.CreateReadTransaction(_data);
            I2CDevice.I2CTransaction[] actions = new I2CDevice.I2CTransaction[] { write, read };
            adxl345.Execute(actions, 1000);
            Debug.Print(_data[0].ToString());
        }

    }
}


Egeorgiou,

SecretLabs.NETMF.Hardware.NetduinoPlus needs to be replaced with just SecretLabs.NETMF.Hardware.Netduino. This is a change with the new firmware.

A few quick notes (known issues, temporary workarounds, etc.):

In the meantime, if you are upgrading your Netduino Plus 1 projects to Netduino Plus 2:

  • Remove the SecretLabs.NETMF.Hardware.NetduinoPlus.dll reference from your project.
  • Add the SecretLabs.NETMF.Hardware.Netduino.dll reference to your project
  • Change the deployment target in Project Properties > .NET Micro Framework.

Firmware Update Look at second post.

I tried your code on my NP2, at the first deploy it didn't work but I had no done this step "Change the deployment target in Project Properties > .NET Micro Framework." chnge to .NET Micro Framework 3.0 then back to 4.2 and the program deployed to the NP2. The output is shown in the picture
Chuck

Attached Thumbnails

  • 11-30-12 17-34-09.jpg



#40555 Netduino Plus 2 - I2C not working

Posted by carb on 30 November 2012 - 10:07 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Chuck,

the image isn't very clear, the lines are not connected together. That wouldn't be clever and I would have picked that up. The same board is moved to the N+1 and it works fine with the originally reference i2c code.

After the post I looked at the picture on a larger screen instead of a tablet and could see it was connected properly. Just didn't want you to smoke the board. :o

Chuck



#36556 Many many PWMs

Posted by carb on 05 October 2012 - 01:34 AM in General Discussion

Brandon,

I do not know about the Adafruit version but Pololu does have a servo control in both a USB and serial version.

I have a 6 and 18 servo model but so far have only tried with the usb cable. Not from a netduino. Stefan has drivers for the serial only model, but the usb version does take serial inputs also.

Mini Maestro Servo Control

Stefan's drivers are in his .Net Microframework Toolbox.

Chuck



#42235 Service note: updates to forums

Posted by carb on 26 December 2012 - 11:23 PM in General Discussion

Paul,The Samsung Galaxy Tab 10.1 with Android 4.0.4 seems to work ok. Standard browser



#42169 Service note: updates to forums

Posted by carb on 26 December 2012 - 10:32 AM in General Discussion

Looks like Santa made a stop here!




#39222 Netduino Plus 2 Problems

Posted by carb on 12 November 2012 - 11:11 PM in Netduino Plus 2 (and Netduino Plus 1)

Carb,

You might try clearing the arp cache. Open a command window and execute: arp -a . Look for your MAC address in the table output.
If it is associated with 192.168.0.134, then delete it with the command arp -d 192.168.0.134. Then ping 192.168.0.122 to populate the arp cache. If the ping fails
then you have a problem similar to mine, e.g. MFDeploy will simply not update the network configuration of the Plus 2. Hopefully, Chris will get this fixed.

Baxter

Baxter,

I think that I have the same problem as you, the ARP -d didn't help. I couldn't ping 192.168.0.122, but could ping 192.168.0.134.

I am sure that Chris will get it fixed, but wanted to let him know the others were having similiar problems.

Thanks,
Chuck



#39207 Netduino Plus 2 Problems

Posted by carb on 12 November 2012 - 08:54 PM in Netduino Plus 2 (and Netduino Plus 1)

Okay, back on the test list for this week :)

It sounds like if it has a reservation...it works properly. But if it doesn't have a reservation on your network, it has an identity crisis ;)


Chris,

I am having similiar problems with my NP2, I set the IP Address in MFDeploy to 192.168.0.122

I then load my program and it says that the IP Address is 192.168.0.134

The program works as it should only with the IP 192.168.0.134 not 122 which is setup in my router with port forwarding.

MFDeploy still show the IP as 192.168.0.122

Imports System
Imports Microsoft.VisualBasic.Constants
Imports System.Net
Imports System.Net.Sockets
Imports System.Threading
Imports Microsoft.SPOT
Imports Microsoft.SPOT.Hardware
Imports SecretLabs.NETMF.Hardware
Imports SecretLabs.NETMF.Hardware.Netduino

Namespace Connect_to_Web_2
  Public Class Program
    Public Shared Sub Main()
      ' write your code here
      ' setup the LED and turn it off by default
      Dim led As New OutputPort(Pins.ONBOARD_LED, False)

      ' configure the port # (the standard web server port is 80)
      Dim port As Integer = 80

      ' wait a few seconds for the Netduino Plus to get a network address.
      Thread.Sleep(5000)

      ' display the IP address
      Dim networkInterface As Microsoft.SPOT.Net.NetworkInformation.NetworkInterface = Microsoft.SPOT.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()(0)
      Debug.Print("my ip address: " + networkInterface.IPAddress.ToString())

      ' create a socket to listen for incoming connections
      Dim listenerSocket As New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
      Dim listenerEndPoint As New IPEndPoint(IPAddress.Any, port)

      ' bind to the listening socket
      listenerSocket.Bind(listenerEndPoint)

      ' and start listening for incoming connections
      listenerSocket.Listen(1)

      ' listen for and process incoming requests
      While True
        ' wait for a client to connect
        Dim clientSocket As Socket = listenerSocket.Accept()

        ' wait for data to arrive
        Dim dataReady As Boolean = clientSocket.Poll(5000000, SelectMode.SelectRead)

        ' if dataReady is true and there are bytes available to read,
        ' then you have a good connection.
        If dataReady AndAlso clientSocket.Available > 0 Then
          Dim buffer As Byte() = New Byte(clientSocket.Available - 1) {}
          Dim bytesRead As Integer = clientSocket.Receive(buffer)
          Dim request As New String(System.Text.Encoding.UTF8.GetChars(buffer))
          Debug.Print("Command: " + request)
          ' request = up(request)
          If request.IndexOf("ON") >= 0 Then
            led.Write(True)
          ElseIf request.IndexOf("OFF") >= 0 Then
            led.Write(False)
          End If

          Dim statusText As String = "LED is " + (If(led.Read(), "ON", "OFF")) + "."

          ' return a message to the client letting it
          ' know if the LED is now on or off.
          Dim response As String = "HTTP/1.1 200 OK" & vbCr & vbLf + "Content-Type: text/html; charset=utf-8" & vbCr & vbLf & vbCr & vbLf + "<html><head><title>Netduino Plus LED Sample</title></head>" + "<body>" + statusText + "</body></html>"
          clientSocket.Send(System.Text.Encoding.UTF8.GetBytes(response))
        End If
        ' important: close the client socket
        clientSocket.Close()
      End While
    End Sub

  End Class
End Namespace

Chuck

Attached Thumbnails

  • 11-12-12 15-47-25.jpg
  • 11-12-12 15-42-04.jpg



#39209 Netduino Plus 2 Problems

Posted by carb on 12 November 2012 - 09:00 PM in Netduino Plus 2 (and Netduino Plus 1)

An additional problem that I have run into is when I write a new program or update an old program is a loss of communication with the NP2 (device not found). Communications can be restored by changing deploy to serial then back to USB. Chuck



#39230 Netduino Plus 2 Problems

Posted by carb on 13 November 2012 - 12:42 AM in Netduino Plus 2 (and Netduino Plus 1)

Thanks Chuck. We're investigating this and working on an I2C update this week.

In the meantime, is everyone working alright with DHCP (or some other method)? Other than getting the wrong IP address...is the networking working alright for you?

Chris

Chris,

Seems to be working okay. I was just testing with a simple program. I will only need the fixed IP when accessing remotely on the internet (works fine on loacl network) through the router.

Chuck

P.S. I like it! :rolleyes:



#41954 AnalogInput and Netduino Plus 2

Posted by carb on 20 December 2012 - 04:20 PM in Visual Studio

On the plus 2 it is: (AnalogChannels not AnalogChannel)
int maxAdcValue = 1023; // ADC is 10-bit Resolution

Dave,
On the NP2 it has a 12 bit ADC, ie. 4095 instead for the ReadRaw.



#36624 power the Netduino plus

Posted by carb on 06 October 2012 - 12:03 PM in Netduino Plus 2 (and Netduino Plus 1)

Hello, thanks for the great explanation. It leaves me with one question (actually I found your answer when trying to find an answer to my question). You mention that if powering the Netduino from an external 12V source, it is not a good idea to try and take lots of current from the 5V output. I can imagine that, but the question I had, and could not find the answer (I guess I did not search good enough), is what is considered "a lot of current". Just to be sure, I am talking about the 5V output only.

Best regards, Peter

Peter,

800 milli amps is the maximum for the both the 3.3 vdc and 5 vdc regulators.

You can verify that by looking at the schematic drawing on the hardware page for the Netduino Plus, the drawing gives the part numbers for the regulator chips. In this case, MC33269DT-5.0G and MC33269DT-3.3G.

Then google will show the data sheets for these regulators.

A good rule of thumb is if the regulator is hot to touch you are drawing to much current from it or you don't have a good enough heat sink on it to disipate the heat. Also the higher the input voltage, the more heat that will need to be disapated. A 12 vdc input will cause more heat than a 9 vdc input for the same load on the output of the 5 vdc regulator.

Hope this helps,
Chuck



#36700 Netduino Go Firmware v4.2.0 (Update 1)

Posted by carb on 08 October 2012 - 12:22 AM in Netduino Go

Hi indimini,

Really quickly...can you please try erasing your Netduino Go before re-flashing it?
http://forums.netdui...flashing-fails/

The text version of the firmware will appear as 4.2.0.0 still, although the solutionVersion will be 4.2.0.1.


If erasing and re-flashing your board doesn't solve this particular issue as well, then it may be best to have you upload a zipped copy of your solution. Or remove and re-add the GoBus.dll assembly. Visual Studio seems to be missing something.

Chris

Chris,


I am getting the same error with a Go and just the DAQ module plugged in. It works the first try then Error:A3000000 message. The Only way I can get the program to deploy a second time is to unplug the Go board, press the deploy, wait about 5 seconds, then plug the Go back in and the programs runs.



I also got it to work by opening MFDeploy, erase, then deply from Visual Studio.



Chuck



#36802 Netduino Go Firmware v4.2.0 (Update 1)

Posted by carb on 08 October 2012 - 07:42 PM in Netduino Go

It seems to happen to some users _after_ deploying a >128KB app. Such as the Shield Base updater.

Most users' apps are well under 128KB so it doesn't happen to many users...but those upgrading their Shield Bases will probably see it at some point.

We're digging into it. Will have an update for it this month for sure.

Chris

Chris,


The app that I am deploying is the time.cs for the DAQ moduke samples. It assembly size shows 32484 bytes.


using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoGo;
using Nwazet.Go.DAQ;
namespace Tutorials {
    public class Time {
        public static NwazetDAQ daq = new NwazetDAQ();
        public static void Main() {
            daq.Initialize(GoSockets.Socket1);
            var state = daq.GetClockState();
            if (state == NwazetDAQ.ClockState.Invalid) 
						{
                daq.SetDateTime(new DateTime(2012, 09, 12, 17, 57, 00));
            }
						Debug.Print("Time: " + DateTime.Now.ToString());
						while (true)
						{
							var dt = daq.GetDateTime();
							Thread.Sleep(10000);
							Debug.Print("Time: " + dt.ToString() );
						}

        }
    }
}

It seems to be with anything that I have tried so far.

Thanks,
Chuck



#36277 Netduino Go Firmware v4.2.0 (Update 1)

Posted by carb on 29 September 2012 - 10:57 PM in Netduino Go

Chris,

Last night I watched Steve helping a member update his Netduino Go. Most of the problems were associated either with getting the wrong file or missed steps.

I discussed with Steve the need for a procedure to follow (Yes, I work in nuclear power plants and we don't do anything without a procedure).

Today I updated both of my Netduino Go's and ShiedBases and wrote a procedure / checklist that I hope will be a help to others. If you see anything else that should be added please let me know.

I will add the Checklist to Wiki. Checklist PDF Wiki Page

Don't Drink any 32 oz. soft drinks :lol: ,

Chuck



#44257 My Paranormal Investigation Tool(s) Project

Posted by carb on 26 January 2013 - 07:13 PM in Project Showcase

Dave,

 

The breakouts look great, it will be interesting to see them working. Do you plan to sell any of them? The charger is of interest particularly.

 

While I haven't done much in the paranormal area, my 1 experience was on a Christmas eve 10 to 15 years ago. In the Dry Tortugas at Fort Jefferson (maybe 11:00pm), while I didn't see anything, there I could definately feel a presence.

 

I would love to go back with one of your boxes.

 

Chuck




#40390 LCD for N+

Posted by carb on 28 November 2012 - 10:02 PM in Netduino Plus 2 (and Netduino Plus 1)

The LCD works so great with the backpack, I am loving it already.

Posted Image

Giuliano,

Glad to see that you got it working. I still have not gotten the equipment from that I ordered from Adafruit 8 days ago. I think that the Post Office ate it. I was going to try and help with the code.

Are you going to post the code to drive the LCD? It would help others.

Chuck




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.