Netduino home hardware projects downloads community

Jump to content

The Netduino forums have been replaced by new forums at This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.


Member Since 12 Aug 2012
Offline Last Active Dec 27 2012 04:23 PM

Posts I've Made

In Topic: Netduino Plus 1 Firmware v4.2.0 (update 1)

12 December 2012 - 01:20 AM

hi every one i have some questions about this firmware = how can i deploy my ND+ from the RS232 port (because i want to make it like an usb device). = the watchdog don't work !!!?

In Topic: WatchDog Timer & netduino Plus

09 December 2012 - 12:47 PM

Look at this thread: http://forums.netdui...-netduino-plus/

The watchdog is there on the hardware, but the stock firmware just turns off the watchdog, and has stubs for all the functionality.

I got it working on ND+ firmware, my next goal is to make it working with CW2's 4.1.1b1 firmware with 1-wire support.

hi ToniA
thank your for help :D
i have an DS1820 that i want to try with netduino+, if 1-wire work also, i will be very happy :P

In Topic: Netduino Plus - I2C not working

29 November 2012 - 12:55 PM

Unfortunately, I don't have this particular device to check it, but I think the correct method to write a byte is to create just one write transaction of two byte buffer (address, data):

// Write transaction (up to 8 or 16 bytes, depending on the page size)
var xWrite = I2CDevice.CreateWriteTransaction(new [] { RegisterNum[0], Value[0] });
myi2c.Execute(new I2CDevice.I2CTransaction[] { xWrite }, 100);

// Write cycle time is 10 ms

// Random read transaction requires repeated start condition, but CreateWriteTransaction(...)
// followed by CreateReadTransaction(...) generates two separate transactions,
// you have to use CreateReadTransaction from
var data = new byte[8];
uint startAddressToReadFrom = 0;
var xRead = CreateReadTransaction(data, startAddressToReadFrom, 1);
myi2c.Execute(new I2CDevice.I2CTransaction[] { xRead }, 100);
Note: The code is written from head, may not even compile.

it work now, thanks :)
you too NooM, thanks for your help :)

In Topic: Netduino Plus - I2C not working

29 November 2012 - 02:14 AM

You are using invalid slave address, 0xA2 includes the R/W bit which is not part of the slave address in .NET MF (max. value is 0x7F, hence the exception), try passing 0x51 instead (assuming A2 = 0, A1 = 0, A0 = 1).

i haven't thinking about this trick, thank you :lol: .
now it work, i can read data from my eeprom, but i can't write on it anything.

address: 0 data: 72
address: 1 data: 101
address: 2 data: 108
address: 3 data: 108
address: 4 data: 111

In Topic: Netduino Plus - I2C not working

28 November 2012 - 12:48 PM

try lock(youri2cdevice) and set the timeout lower.

also, do you have pullup resistors on your i2c lines? 4.7kohms are fine.
also try 100khz instead of 400 when talking to your device. you can change that when you found out what was wrong.

i have pullup my eeprom with 1k resistors.
i have locked my "myi2c" object but its still not working.

when i try to read the value of the selected register ,this message appears in output windows

Une exception de première chance de type 'System.ArgumentException' s'est produite dans Microsoft.SPOT.Hardware.dll.
Une exception non gérée du type 'System.ArgumentException' s'est produite dans Microsoft.SPOT.Hardware.dll

with some traduction, it will be somthig like this :)

A first chance exception of type 'System.ArgumentException' occurred in Microsoft.SPOT.Hardware.dll.
An unhandled exception of type 'System.ArgumentException' occurred in Microsoft.SPOT.Hardware.dll

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.