- Netduino Forums
- → trustme's Content
trustme's Content
There have been 12 items by trustme (Search limited from 09-May 23)
#1371 BlinkM
Posted by trustme on 26 August 2010 - 11:56 PM in Netduino 2 (and Netduino 1)
#1540 BlinkM
Posted by trustme on 31 August 2010 - 12:13 AM in Netduino 2 (and Netduino 1)
#1369 BlinkM
Posted by trustme on 26 August 2010 - 11:36 PM in Netduino 2 (and Netduino 1)
#1357 BlinkM
Posted by trustme on 26 August 2010 - 08:21 PM in Netduino 2 (and Netduino 1)
byte[] init = new byte[4] {(byte)'c', 0xff, 0xc4, 0x30 }; I2CDevice i2c = new I2CDevice(new I2CDevice.Configuration(0x09, 100)); I2CDevice.I2CTransaction[] xActions = new I2CDevice.I2CTransaction[4] { //I2CDevice.CreateWriteTransaction(init) I2CDevice.CreateWriteTransaction(new byte[] {(byte)'c'}), I2CDevice.CreateWriteTransaction(new byte[] { 0xff }), I2CDevice.CreateWriteTransaction(new byte[] { 0xc4 }), I2CDevice.CreateWriteTransaction(new byte[] { 0x30 }) }; int result = i2c.Execute(xActions, 100);
Which is my translation of this from the blinkM docs:
Wire.begin(); // set up I2C Wire.beginTransmission(0x09);// join I2C, talk to BlinkM 0x09 Wire.send(‘c’); // ‘c’ == fade to color Wire.send(0xff); // value for red channel Wire.send(0xc4); // value for blue channel Wire.send(0x30); // value for green channel Wire.endTransmission(); // leave I2C bus
result is returning 1 when I use either the 4 CreateWrieTransactions or the single. It might be the clockRate is bad but I do not know what value to pass.
Any help or suggestions would be appreciated.
Thanks!
#2279 BlinkM
Posted by trustme on 14 September 2010 - 04:28 AM in Netduino 2 (and Netduino 1)
Ok, thanks for your help. I will let you know how I get on when I get it set up.
If you do get this resolved... please do post how. I still have not had successe with the BlinkM.
#1537 BlinkM
Posted by trustme on 30 August 2010 - 11:49 PM in Netduino 2 (and Netduino 1)
Here is what I've done.
5v to 4.7k resistor to d on blinkM and Analog4
5v to 4.7k resistor to c on blinkM and Analog5
5v to + on blinkM
gnd to - on blinkM
static I2CDevice i2c = new I2CDevice(new I2CDevice.Configuration(0, 100)); ... int result2 = i2c.Execute(new I2CDevice.I2CTransaction[] { I2CDevice.CreateWriteTransaction(new byte[1] {(byte)'o'}) }, 5000);
When it runs result2 in this case is 1. But no command that I send affects the blinkM.
I also tested HardProvider.GetI2CPins(). The returned pins are not analog 5 and 4. They are digital 10 and 11. But that may mean nothing.
Thanks!
Duane
#1435 Netduino Fritzing part
Posted by trustme on 27 August 2010 - 10:11 PM in General Discussion
#1611 AnalogInput values fail to change
Posted by trustme on 01 September 2010 - 02:59 AM in Netduino 2 (and Netduino 1)
#1592 AnalogInput values fail to change
Posted by trustme on 31 August 2010 - 10:39 PM in Netduino 2 (and Netduino 1)
InterruptPort test = new InterruptPort(Pins.GPIO_PIN_A0, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth); test.Dispose(); //OutputPort p = new OutputPort(Pins.GPIO_PIN_A0, false); //p.Dispose(); alarm2 = new AnalogInput(Pins.GPIO_PIN_A0); alarm2.SetRange(0, 100);
I'm on firmware 4.1.0.2 as I'm using Mac/Parallels to test.
It appears something is amiss. This seems like it should be a very trivial setup. 3 wires out of the MaxSonar, power, ground, and to one of the analog pins.
Is there something else I'm missing?
#870 LoL shield
Posted by trustme on 19 August 2010 - 10:02 PM in Netduino 2 (and Netduino 1)
#881 LoL shield
Posted by trustme on 20 August 2010 - 02:29 AM in Netduino 2 (and Netduino 1)
#1588 Introduction
Posted by trustme on 31 August 2010 - 09:10 PM in Mono
- Netduino Forums
- → trustme's Content
- Privacy Policy