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.

Ellen's Content

There have been 65 items by Ellen (Search limited from 28-April 23)


By content type

See this member's


Sort by                Order  

#35966 Netduino Plus 1 Firmware v4.2.0 (update 1)

Posted by Ellen on 25 September 2012 - 02:35 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Chris, PWM problem solved in the update, servo is working fine now. Thank you. Ellen



#35965 Howto Readout usb-ftdi-ttl-232-cable

Posted by Ellen on 25 September 2012 - 02:17 PM in Netduino Plus 2 (and Netduino Plus 1)

Nak, Besides the problem of the voltage (the device = 3.3v), is there any chance to invert the signaling for devices which require that protocol without additional hardware, like an Arduino?. Ellen



#34893 Howto Readout usb-ftdi-ttl-232-cable

Posted by Ellen on 09 September 2012 - 09:15 AM in Netduino Plus 2 (and Netduino Plus 1)

Thanks Nak.

But the most simple Arduino can do the job without any additional hardware...

SoftwareSerial Library

The SoftwareSerial library has been developed to allow serial communication on other digital pins of the Arduino, using software to replicate the functionality (hence the name "SoftwareSerial"). It is possible to have multiple software serial ports with speeds up to 115200 bps. A parameter enables inverted signaling for devices which require that protocol.


SoftwareSerial myOwnSerial(10, 11, true); // RX, TX, inverted

http://arduino.cc/en.../SoftwareSerial

So about serial communication, am I a little disappointed in the netduino.



#34889 Bit shifting

Posted by Ellen on 09 September 2012 - 08:19 AM in Visual Basic Support

How do I write this in VB, it's from a arduino site. In Arduino ReadByte &= ~(1 << 7); thank you, Ellen



#34828 PWN classes after 4.2 firmware upgrade

Posted by Ellen on 07 September 2012 - 05:55 PM in Netduino Plus 2 (and Netduino Plus 1)

If you are stupid?, I do not know... :P The problem could also be a dirty windows register with pointers to old or non existing file's or program arguments. Also the quality of your equipment could be a factor. It is very hard to tell from a distance whats the problem. I say always No Plug and Play but Plug and Pray. B) For me, the install steps earlier described in other sticky posts were sufficiently. Ellen I hope the PWM class will repaired soon.



#34721 Howto Readout usb-ftdi-ttl-232-cable

Posted by Ellen on 06 September 2012 - 07:59 AM in Netduino Plus 2 (and Netduino Plus 1)


I would look to build a circuit like this:

ND_UART<-->MAX232<-->4N36<-->smart meter

Nak.

Thank you Nak, Baxter...for your clear explanation.
Please can you offer me a link where to buy?.
This is not for myself but for my father (who can not read/write English) and my friend who does .....nothing. :P We will post a diagram here before we connect. I do not want to blow up the meter. :lol:
Ellen



#34718 Sending mail with a Netduino Plus

Posted by Ellen on 06 September 2012 - 07:51 AM in Project Showcase

Hi :)


Now it's possible to send mails through an SMTP server. The class doesn't have authentication yet, but it works! :D


Stefan, when do you think that authentication will be implement in this class.
I need to sent once a day some data with the netduino but the mail server ask for authentication.
Ellen



#34610 PWN classes after 4.2 firmware upgrade

Posted by Ellen on 03 September 2012 - 06:28 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Chris!
Could you verify my problem on your equipment?

Greetings

Manfred


Manfred,
I had to go back to the earlier version 4.2 QFE(1). That release works better and recommend you to do also.
Ellen



#34566 Howto Readout usb-ftdi-ttl-232-cable

Posted by Ellen on 02 September 2012 - 03:47 PM in Netduino Plus 2 (and Netduino Plus 1)

If it was that simpel, but that is not. I need to invert the signal, and i can with a 7404 ttl inverter chip. Thats what the cable also does. (signals RTS en RxD) Price of the cable 23 euro vs the 7404 chip 44 cents. The project must be low budget. Ellen



#34525 Howto Readout usb-ftdi-ttl-232-cable

Posted by Ellen on 01 September 2012 - 09:10 AM in Netduino Plus 2 (and Netduino Plus 1)

Hello, My newest project "smart monitoring", and before I buy again the wrong things i do more homework: I have a technical question and am looking for the very best solution. We want to readout a rs232 signal from a electric "smart" home meter. Can I connect a cable like this directly into the USB of the N+?, and if so how to approach this USB connection? http://www.adafruit....ng-immediately/ Or must I use a breakoutboard like this one, is this the best solution.? https://www.sparkfun.com/products/9716 I'm curious Ellen



#34359 PWN classes after 4.2 firmware upgrade

Posted by Ellen on 29 August 2012 - 08:14 AM in Netduino Plus 2 (and Netduino Plus 1)

This morning I have tested the Servo very good. As i expected as in earlier tests the behavior was different.

Did the tests with this servo:
http://www.pieterflo...p?id_product=38


In the earlier version 4.2 QFE(1):
servoWatt.ServoPulse = 0 result: to zero point
servoWatt.ServoPulse = 1000 result: to half way (90 degrees rotation)
servoWatt.ServoPulse = 2000 result: to full (180 degrees rotation)

In latest version 4.2 QFE(2):
servoWatt.ServoPulse = 0 result: to zero point
servoWatt.ServoPulse = 1000 result: to (90+ to 100 degrees rotation)
servoWatt.ServoPulse = 2000 result: back (0 degrees rotation)

Imports Microsoft.SPOT
Imports Microsoft.SPOT.Hardware
Imports SecretLabs.NETMF.Hardware
Imports SecretLabs.NETMF.Hardware.NetduinoPlus
Imports SecretLabs.NETMF.Hardware.PWM


Module Module1

    Sub Main()

        Dim servoWatt As New Servo_Control.ServoControl(Pins.GPIO_PIN_D9, True)

        servoWatt.ServoPulse = 0
        Thread.Sleep(3000)
        Debug.Print("0")

        servoWatt.ServoPulse = 1000
        Thread.Sleep(3000)
        Debug.Print("1000")

        servoWatt.ServoPulse = 2000
        Thread.Sleep(3000)
        Debug.Print("2000")

        servoWatt.ServoPulse = 0
        Thread.Sleep(3000)
        Debug.Print("0")


    End Sub

End Module


Namespace Servo_Control
    Public Class ServoControl

        Private servo As SecretLabs.NETMF.Hardware.PWM
        Public inverted As Boolean = True

        Public Sub New(ByVal pin As Cpu.Pin, ByVal toInvert As Boolean)

            inverted = toInvert
            servo = New SecretLabs.NETMF.Hardware.PWM(pin)

        End Sub

        Public Sub ServoToNul()
            servo.SetDutyCycle(0)
        End Sub


        Public WriteOnly Property ServoPulse() As Double
            Set(ByVal value As Double)
                ' Range checks'
                If value > 2000 Then
                    value = 2000
                End If

                If value < 0 Then
                    value = 0
                End If

                ' Are we inverted?'
                If inverted Then
                    value = 2000 - value
                End If

                servo.SetPulse(20000, CUInt(value + 600))

            End Set
        End Property

    End Class
End Namespace





#34278 Adafruit LCD MCP23017 IC

Posted by Ellen on 27 August 2012 - 01:16 PM in Netduino Plus 2 (and Netduino Plus 1)

Thanks Stefan, I have found it. But wat is the display slow.....You can easy see building up the row.



#34262 Adafruit LCD MCP23017 IC

Posted by Ellen on 27 August 2012 - 09:38 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi, I am looking for a diagram how to connect the Ada lcd to the Netduino. I am working with the source code out of Stefan's toolbox. Many schematics but not the one for the MCP23017 sample. ' The Adafruit LCD Shield uses a MCP23017 IC as multiplex chip Dim Mux As Mcp23017 = New Mcp23017() http://learn.adafrui...shield/overview Ellen



#34117 PWN classes after 4.2 firmware upgrade

Posted by Ellen on 23 August 2012 - 07:45 PM in Netduino Plus 2 (and Netduino Plus 1)

But the SecretLabs.NET.Hardware.PWM.dll is NOT compatible with the RC5 ( the version before the official release).

I have this code, and the behavior is much different.



Namespace Servo_Control
    Public Class ServoControl

        Private servo As PWM
        Public inverted As Boolean = True

        Public Sub New(ByVal pin As Cpu.Pin, ByVal toInvert As Boolean)

            inverted = toInvert
            servo = New PWM(pin)
            servo.Dispose()
        End Sub

        Public Sub ServoToNul()
            servo.SetDutyCycle(0)
        End Sub

        Public Sub DisposeServo()
            servo.Dispose()
        End Sub

        Public WriteOnly Property ServoPulse() As Double
            Set(ByVal value As Double)
                ' Range checks'
                If value > 2000 Then
                    value = 2000
                End If

                If value < 0 Then
                    value = 0
                End If

                ' Are we inverted?'
                If inverted Then
                    value = 2000 - value
                End If

                servo.SetPulse(20000, CUInt(value + 600))

            End Set
        End Property

    End Class
End Namespace






#33931 Netduino Plus Firmware v4.2.0

Posted by Ellen on 20 August 2012 - 07:42 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Ellen,

I just checked with Chris and tested it on my own Netduino Plus.
SDHC is not yet supported in 4.2. The only firmware it is supported in right now is 4.1.1.1 beta.

Community member Kodedaemon worked on the SDHC support in the previous release, but Microsoft has made some major changes to SD support so they must be re-evaluated.

I must say I sympathize with you, I wished SDHC support would be in this release too, but until then, you are stuck with <=2GB cards (which are still widely available and cheap btw!)

Thanks Stefan, Chris,
Now we have clearness in this case. Now i can stop thinking about what did I wrong, what didn't I see. I buy a 2gieg and let you know.
Ellen



#33913 Netduino Plus Firmware v4.2.0

Posted by Ellen on 19 August 2012 - 06:50 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Ellen,


The .NET MF team updated the SD card drivers in .NET MF 4.2. If there are any cards which worked with 4.1.1 but aren't working with the official 4.2 release, we want to make sure we get those supported.

Can you please provide the manufacturer and model number of your card, and we'll try to get one here to test against?

Chris

It took a while....
Chris, Stefan, I start with the bottom line, There is no way that we could read or write from the mini SDcard. I think there is a lot to re-write and test in the system.dll
What we did: purchased a second N+ and a second 4 gieg mini SDcard. Just to exclude that the first N+ or card was broken.
We did test it in the most unthinkable way and code, mixed...in ...out...power recycle...format....other computer, ....you name it, we did it.
Those who have a working SDcard must see themselves as the lucky ones. If there is someone who can tell ... with these steps and program code it must go well...
Ellen



#33747 Netduino Plus Firmware v4.2.0

Posted by Ellen on 16 August 2012 - 08:04 AM in Netduino Plus 2 (and Netduino Plus 1)

Is there in this version 4.2.0.1 support for the SD HC 8 gieg card? Dim fs As FileStream = File.Create("\jj.txt") error: An unhandled exception of type 'System.IO.IOException' occurred in System.IO.dll If there is not than i can stop with finding out. gr Ellen



#33712 Netduino Plus Firmware v4.2.0

Posted by Ellen on 15 August 2012 - 07:59 PM in Netduino Plus 2 (and Netduino Plus 1)

Chris, You did not tell that also Netduino SDK 4.2.0.1 and .NET Micro Framework SDK v4.2Q2 is needed Without windows can not recognize the Netduino. Ellen



#33704 Help upgrading TinyBooter using SAM-BA 2.12

Posted by Ellen on 15 August 2012 - 07:00 PM in General Discussion

Yes, please upgrade to the new Netduino 4.2 SDK. The August 2012 update (currently posted version) includes the WinUSB drivers you'll need.

Chris


Atmel offline.... any other site for downloading Samba.?.

Service Unavailable - DNS failure
The server is temporarily unable to service your request. Please try again later.
Reference #11.d70e4bd5.1345056762.110efaf



#33581 N+ hangs sometimes when try to receive Time

Posted by Ellen on 14 August 2012 - 10:32 AM in Netduino Plus 2 (and Netduino Plus 1)

Hi Ellen,

Is your app hanging on Utility.SetLocalTime or on the NTPTime call?

What does the NTPTime code look like?

Chris


No he hangs on a earlier somewhere on this forum copied NTPTime call (source code I had included above), at s.Receive(ntpData)

I think i need to call the Socket.ReceiveTimeout Property because the default value is 0, which indicates an infinite time-out period. Specifying -1 also indicates an infinite time-out period.

In other words, with a ?bad connection? i can wait until i have gray hair. :blink:



#33577 N+ hangs sometimes when try to receive Time

Posted by Ellen on 14 August 2012 - 09:03 AM in Netduino Plus 2 (and Netduino Plus 1)

Hello,

How can i resolve hanging my N+ when i want to sync my Netduino with a time server.

Function call:

Utility.SetLocalTime(NTPTime("time-a.nist.gov"))
"time-a.nist.gov" : ntp ok, time,daytime busy, not recommended

He will sometimes hang when receive :

s.Receive(ntpData)

I can choose out of many servers but that is for now not the point.
http://tf.nist.gov/tf-cgi/servers.cgi

How to resolve?
Thanks in advance, Ellen



        Private Shared Function NTPTime(ByVal TimeServer As [String]) As DateTime

            Dim ep As New IPEndPoint(Dns.GetHostEntry(TimeServer).AddressList(0), 123)
            Dim s As New Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)
            Dim ntpData As Byte() = New Byte(47) {}
            Array.Clear(ntpData, 0, 48)

            ntpData(0) = &H1B
            s.SendTimeout = 5000

            s.SendTo(ntpData, ep)
            s.Receive(ntpData)     'with debugging, HERE he will stop.'

            Dim offsetTransmitTime As Byte = 40

            Dim intpart As Long = 0
            Dim fractpart As Long = 0

            For i As Integer = 0 To 3
                intpart = (intpart << 8) Or ntpData(offsetTransmitTime + i)
            Next

            For i As Integer = 4 To 7
                fractpart = (fractpart << 8) Or ntpData(offsetTransmitTime + i)
            Next

            Dim milliseconds As Long = CLng(intpart * 1000 + (fractpart * 1000) / &H100000000L)

            s.Close()

            Dim timeSpan__1 As TimeSpan = TimeSpan.FromTicks(CLng(milliseconds) * TimeSpan.TicksPerMillisecond)
            Dim dT As New DateTime(1900, 1, 1)
            dT += timeSpan__1

            'daylight saving'
            If dT.Month < 3 OrElse dT.Month > 10 Then
                Return dT.AddHours(1)
            End If
            If dT.Month > 3 AndAlso dT.Month < 10 Then
                Return dT.AddHours(2)
            End If
            If dT.Month = 3 Then
                '      in march'
                If (dT.Day - CInt(dT.DayOfWeek)) < 25 Then
                    Return dT.AddHours(1)
                End If
                If (CInt(dT.DayOfWeek) = 0) AndAlso (dT.Hour < 2) Then
                    Return dT.AddHours(1)
                End If
                Return dT.AddHours(2)
            End If
            '      in october'
            If (dT.Day - CInt(dT.DayOfWeek)) < 25 Then
                Return dT.AddHours(2)
            End If
            If (CInt(dT.DayOfWeek) = 0) AndAlso (dT.Hour < 2) Then
                Return dT.AddHours(2)
            End If

            Return dT.AddHours(1)
        End Function





#33492 DHCP startup problem

Posted by Ellen on 12 August 2012 - 06:48 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Stefan,
Now every day the Netduino starts as it should be without any errors now errors again.
Thank you for share the programm code.
Ellen


UPDATE.... BUG REPORT maybe?
After a few days without internet startup errors, now again.

So I went to have a closer look about this problem.
The bottom line is when the Netduino is running before the router is powered up, there is no way to establising the connection without reseting the Netduino.

This Netduino reboot should not to be a problem if I can write to the SD Card but I do not have a small 1 or 2 gieg card, larger is not supported in 4.2 untill now.

Workeround with writing to sd.....

Startup Netduino
If internet....

If file existe("alreadyBooted")
delete file
endif

end if

If not internet ....

If file existe("alreadyBooted")

...no second reboot.
...internet can not be restored ... already tried.

Else

write dummy file to sd card filecreate("alreadyBooted")
reboot

endif

This is to prevent a forever reboot.
It is wonderfull when we have a static memory of 1 byte.



#33356 PV Solar logging. with source code.

Posted by Ellen on 10 August 2012 - 06:00 AM in Visual Basic Support

Ohh that's awesome! Luckely you'll get a lot of sun in the next few days :)

Hi Stefan, I am looking forward to the nice weather, we did have a long raining period and we are almost depressed by the bad weather. But after rain there is .....
greeting Ellen



#33322 PV Solar logging. with source code.

Posted by Ellen on 09 August 2012 - 11:14 AM in Visual Basic Support

Hi you all,
We want to contribute our program sources for Solar data logging.
I know it is not the most streamlined sources but with a little imagination and patience.....
Found some code here and there and edit it.

With 2 servo's for Watt and KWH Like a clock.
A display for Time, Temperature of the Solar panels, Watt and KWH.
2 LED for write to internet and read the Electric SO port. http://www.groepenka...kel-tarief.html


Write to 3 internet servers , Cosm.com, ThingSpeak and PVoutput.
Read the time from internet into the Netduino

and the Google Gauges ThingSpeak HTML file.
Just run the html file.

Thanks to everybody especially Stefan for his help.

Attached Files




#33157 OnBoard MicroSD

Posted by Ellen on 06 August 2012 - 07:19 AM in Netduino Plus 2 (and Netduino Plus 1)

Most 1 or 2 GB ones work. There was a beta version that the 4 & 8 GB worked, but that code is not in 4.2 that I know of, so you are stuck with 1 & 2 GB.

For me, the SD card also is not working because I bought a 8 gieg. (bigger counts :-))
I think the store (mediamarkt) will not exchange the card for a smaller one.

Is there any chance that the SD Card 4&8 Gb support will be implemented in the version 4.2
Because I program in VB, I am stuck on version 4.2
BTW, VB and 4.2 works very well.
Ellen




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.