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.

k0fei

Member Since 18 Dec 2013
Offline Last Active Mar 18 2014 09:16 PM
-----

Topics I've Started

How do I get a defective board replaced

10 February 2014 - 06:01 PM

One of a batch of 6 Netduinos is defective.  How do I get it replaced?

 

Thanks

 


SPI Clock stays High during Idle

31 December 2013 - 06:32 PM

Hi Chris,

 

I left more info on the thread about the I2C not working including the test code.

 

I can get you a logic trace of the I2C bug but it just two lines staying high.

 

MiniJTAG - Got it.


I2C Bus not working

31 December 2013 - 06:25 PM

I am trying to read a TMP100 temperature sensor.  It works when I use the I2C Software emulation code SoftwareI2CBus so I know the hardware is good.  When I try using I2CDevice the SCL and SDA pins just stay high.  I have a Saleae Logic 16 on the pins.  I see data using the software emulation but not using the I2CDevice.

 

Here is the code:

 

[color=#2d2cfa;]using[/color] System;

[color=#2d2cfa;]using[/color] System.Net;

[color=#2d2cfa;]using[/color] System.Net.Sockets;

[color=#2d2cfa;]using[/color] System.Threading;

[color=#2d2cfa;]using[/color] Microsoft.SPOT;

[color=#2d2cfa;]using[/color] Microsoft.SPOT.Hardware;

[color=#2d2cfa;]using[/color] SecretLabs.NETMF.Hardware;

[color=#2d2cfa;]using[/color] SecretLabs.NETMF.Hardware.Netduino;

 

namespace[color=#000000;] I2CTest[/color]

{

[color=#000000;]    [/color]public[color=#000000;] [/color]class[color=#000000;] [/color][color=#34a2bb;]Program[/color]

    {

        [color=#2d2cfa;]public[/color] [color=#2d2cfa;]static[/color] [color=#2d2cfa;]void[/color] Main()

        {

[color=#000000;]            [/color]I2CDevice[color=#000000;].[/color]Configuration[color=#000000;] config = [/color][color=#2d2cfa;]new[/color][color=#000000;] [/color]I2CDevice[color=#000000;].[/color]Configuration[color=#000000;](0x48, 100);[/color]

            [color=#34a2bb;]I2CDevice[/color] dev = [color=#2d2cfa;]new[/color] [color=#34a2bb;]I2CDevice[/color](config);

 

[color=#000000;]            [/color]// Make the transactions

 

            [color=#34a2bb;]Byte[/color][] tempData = [color=#2d2cfa;]new[/color] [color=#34a2bb;]Byte[/color][2];

 

            [color=#2d2cfa;]var[/color] transaction = [color=#2d2cfa;]new[/color] [color=#34a2bb;]I2CDevice[/color].[color=#34a2bb;]I2CTransaction[/color][] {

                [color=#34a2bb;]I2CDevice[/color].CreateWriteTransaction([color=#2d2cfa;]new[/color] [color=#34a2bb;]Byte[/color][] {0x00}),

                [color=#34a2bb;]I2CDevice[/color].CreateReadTransaction(tempData)

            };

 

            [color=#34a2bb;]Int32[/color] bytesTransfered = dev.Execute(transaction, 300);

            [color=#2d2cfa;]if[/color] ( bytesTransfered == 0)

            {

[color=#000000;]                [/color][color=#2d2cfa;]throw[/color][color=#000000;] [/color][color=#2d2cfa;]new[/color][color=#000000;] [/color][color=#34a2bb;]Exception[/color][color=#000000;]([/color]"I2C transaction failed"[color=#000000;]);[/color]

            }

 

            [color=#34a2bb;]UInt16[/color] utmp = tempData[0];

            utmp <<= 8;

            utmp |= tempData[1];

 

            [color=#34a2bb;]Int16[/color] tmp = ([color=#34a2bb;]Int16[/color])utmp;

            [color=#34a2bb;]Double[/color] temp = ([color=#34a2bb;]Double[/color])tmp;

            temp /= ([color=#34a2bb;]Double[/color])256;

 

 

 

        [color=#34a2bb;]Debug[/color].Print(temp.ToString() + [color=#b51f20;]" Degrees C"[/color]);

    }

    }

}


Why is operational Temp limited to 0C

18 December 2013 - 04:53 PM

The Netduino Plus 2 has an operational temperature range of 0 - 70 C.  What limits it from being operational down to -40 C?  I would like to use it in an outdoor project that could go to -40C.


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.