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.

kersten

Member Since 11 Mar 2013
Offline Last Active Jan 31 2016 09:57 AM
-----

Posts I've Made

In Topic: I2C on Netduino 1 not working

04 April 2013 - 03:38 PM

Hi Chris, I currently have no logic analyzer. My board is a "Netduino 2". Through the change of the pull-ups on 1.2 k, my problem currently is solved with the I2C . The board is working correctly. The bus line I first kept short. Am now going to test the OneWire DS 2482-100 with 1 DS18S20 on the I2C Bus. But I find no code example. The onewire functions are new in the 4.2 framework? Where can I get help for Microsoft.SPOT.Hardware.OneWire class?

In Topic: I2C on Netduino 1 not working

18 March 2013 - 09:16 PM

My new test with the code: always count is 0: public static void Main(){ var device = new I2CDevice(new I2CDevice.Configuration(0x50, 100)); I2CDevice.I2CTransaction[] actionsWrite; uint adresse = 0x01; byte[] data = new byte[] { 0x42 }; byte[] buffer = new byte[3]; buffer[0] = (byte)(adresse >> 8); buffer[1] = (byte)adresse; data.CopyTo(buffer, 2); uint i = 0; do { actionsWrite = new I2CDevice.I2CTransaction[] { I2CDevice.CreateWriteTransaction(buffer) }; int count1 = device.Execute(actionsWrite, 1000); Thread.Sleep(1000); i++; Debug.Print(i.ToString()+" Count: " + count1.ToString()); } while (true); } I think the board is defective!

In Topic: I2C on Netduino 1 not working

18 March 2013 - 08:59 PM

The processing of the 3 bytes in 3 transactions was only to test. The first transaction returns as Return Code: 0 bytes transfers. In the original code, all 3 bytes processed in one transaction but only with the Return Code: 0 Bytes The SCL line has at times no pulse on the instrument but always 4.85V even after the end of the transaction. Next I change my test back to one transaktion.

In Topic: I2C on Netduino 1 not working

18 March 2013 - 05:09 PM

Hi CW2, The EEPROM is a Microchip 24LC64 (A0,A1,A2,WP = 0) Here is my Testcode: public static void Main() { I2CDevice.Configuration _slaveConfig = new I2CDevice.Configuration(0x50, 100); uint adresse = 0x01; byte[] buffer = new byte[2]; buffer[0] = (byte)(adresse >> 8); buffer[1] = (byte)adresse; int count = I2CBus.GetInstance().Write(_slaveConfig, buffer, 500); byte[] data = new byte[] { 0x42 }; count = I2CBus.GetInstance().Write(_slaveConfig, data, 500); Debug.Print("Count: " + count.ToString()); } The I2C connection to the display is the same. Another board with an ATmega32 working on the bus without problems

In Topic: I2C on Netduino 1 not working

18 March 2013 - 02:03 PM

Hi, I again problems with the I2C bus in connection with the display and the serial EEPROM. When code in I2CBus "transferred = _slaveDevice.Execute (writeXAction, transactionTimeout)" Transferred is always 0 and there is also no exception. The multimeter can be seen in SCL and SDL has a frequency of 0.34 kHz and 4.85 V, and this is always constant. The motherboard is defective?

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.