- Netduino Forums
- → Matteo Defanti's 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.
Matteo Defanti's Content
There have been 3 items by Matteo Defanti (Search limited from 25-September 23)
#15723 Getting started issue with Netduino
Posted by Matteo Defanti on 20 July 2011 - 08:19 AM in Netduino 2 (and Netduino 1)
I get this error, i can't resolve it...
Error 1 Cannot deploy the base assembly 'mscorlib', or any of his satellite assemblies, to device - USB:Netduino twice. Assembly 'mscorlib' on the device has version 4.1.2821.0, while the program is trying to deploy version 4.2.0.0
Then i removed Netduino SDK and .NET microframework 4.1 and then i installed .NETMF 4.2 and Netduino new SDK
I'm running on Windows 7 64bit....
Has anyone got the same problem?
#15747 I2c problems interfacing TPIC2810 Led Driver
Posted by Matteo Defanti on 21 July 2011 - 01:15 AM in Netduino 2 (and Netduino 1)
Hi everybody and thanks everybody for your contribute...
i'm sorry for the image i upload yesterday. i didn't pay attention enought to notice that the switches where high...
Thank you Stuart giving me suggestion of the hint about what information to write in order of being more specific for you....
And CW2... yes what you said about the device address is right but i posted the wrong picture... sorry, my fault
I've created a new image about the connection and the probing connection...
As you can see i put a pull up resistor even on clock, but unfortunately it doesn't work...
I cannot understand why i don't get any data passing even if i disconnect netduino from the device... as i espected... is that wrong to probe SDA and SCK?
Is I2C supported on Netduino standard with .net microframework 4.1?
I can't get what you mean... di you mean why i don't get return value?
this is the while (true) new code
Gneg is primarly used to see that the program is running and cycling!
cause for the moment I2C is not working
i'm sorry for the image i upload yesterday. i didn't pay attention enought to notice that the switches where high...
Thank you Stuart giving me suggestion of the hint about what information to write in order of being more specific for you....
And CW2... yes what you said about the device address is right but i posted the wrong picture... sorry, my fault
I've created a new image about the connection and the probing connection...
As you can see i put a pull up resistor even on clock, but unfortunately it doesn't work...
I cannot understand why i don't get any data passing even if i disconnect netduino from the device... as i espected... is that wrong to probe SDA and SCK?
Is I2C supported on Netduino standard with .net microframework 4.1?
Edit: What is the return value of Execute() method call?
I can't get what you mean... di you mean why i don't get return value?
OutputPort SDA = new OutputPort(Pins.GPIO_PIN_A4, false); // read in the forum to reset the 2 ports OutputPort SCK = new OutputPort(Pins.GPIO_PIN_A5, false); SDA.Dispose(); SCK.Dispose();
it was an attempt to reset the port but it seems unuseful!
this is the while (true) new code
while (true) { int outp = TPIC2810.Execute(transactions, 100); Gneg.Write(true); Thread.Sleep(100); Gneg.Write(false); }
Gneg is primarly used to see that the program is running and cycling!
cause for the moment I2C is not working
#15704 I2c problems interfacing TPIC2810 Led Driver
Posted by Matteo Defanti on 19 July 2011 - 09:05 PM in Netduino 2 (and Netduino 1)
Hello everybody
I'm trying to interface my Netduino standard to a Texas Instrument TPIC as shown up in the image!
That's the code:
using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; namespace i2cMaster2._0 { public class Program { static OutputPort Gneg = new OutputPort(Pins.GPIO_PIN_D0, true); public static void Main() { OutputPort SDA = new OutputPort(Pins.GPIO_PIN_A4, false); // read in the forum to reset the 2 ports OutputPort SCK = new OutputPort(Pins.GPIO_PIN_A5, false); SDA.Dispose(); SCK.Dispose(); I2CDevice.Configuration cnf = new I2CDevice.Configuration(0x60, 400); I2CDevice TPIC2810 = new I2CDevice(cnf); byte[] outBuffer = new byte[] { 0x44, 0x64 }; I2CDevice.I2CWriteTransaction writeTransaction = I2CDevice.CreateWriteTransaction(outBuffer); I2CDevice.I2CTransaction[] transactions = new I2CDevice.I2CTransaction[] { writeTransaction }; while (true) { TPIC2810.Execute(transactions, 100); } } } }
and that's the sequence to send to the device in order to have 0x64 in the 8 leds.
I couldn't get it works so I have tried to test SDA and SCK with the oscilloscope and i just see a +5volts continue line without signals...
Where am i making mistakes? Has anyone got the same problem?
Thank you!
Here is the link of the TPIC2810 datasheet Click Here
- Netduino Forums
- → Matteo Defanti's Content
- Privacy Policy