
Strange Data on SDA/SCL
#1
Posted 21 February 2011 - 03:07 PM
#2
Posted 21 February 2011 - 08:41 PM
#3
Posted 21 February 2011 - 08:48 PM
#4
Posted 22 February 2011 - 12:03 PM


#5
Posted 24 February 2011 - 01:18 PM
#6
Posted 25 February 2011 - 01:59 AM
#7
Posted 25 February 2011 - 12:47 PM
#8
Posted 25 February 2011 - 01:45 PM

#9
Posted 25 February 2011 - 02:02 PM

#10
Posted 25 February 2011 - 02:49 PM
#11
Posted 25 February 2011 - 02:55 PM
#12
Posted 25 February 2011 - 07:27 PM
I almost wish I had something else here that communicated on the SDA/SCL pins so I could confirm their functionality.
If you plug an LED into pins A4 or A5 (and GND) and use an OutputPort, you should be able to turn the LED on and off. If that works, there's a ~99.9999% chance that your hardware is good to go.
It's almost definitely a circuit or code issue.
We'll pick up one of these devices from SparkFun. Should be here in about a week.
Chris
#13
Posted 27 February 2011 - 05:02 PM

#14
Posted 27 February 2011 - 09:25 PM
#15
Posted 28 February 2011 - 12:28 PM
#16
Posted 28 February 2011 - 12:32 PM
Hi nturpin,Gday
So Ive tested both Netduinos with LEDs on A4/A5 and I can light an LED with them. Does this confirm the functionality of SDA/SCL? or just the Analogue pins? I ask because I immediately plugged my BMP085 into both netduinos, well one at a time obviously, and still getting no data on one netduino and the all over the place data on the other. Ive tried all three BMP's and all with the same results. Any ideas on where to go next?
That confirms that the digital pins (the I2C pins) are working.
If you can, borrow a logic analyzer, take a look at what's actually happening on your digital lines.
Otherwise, in about a week we should have one here...and we can test out your code and the component with a logic analyzer and oscilloscope here. I just got an e-mail from SparkFun saying that they shipped us the one we ordered.
Chris
#17
Posted 11 March 2011 - 12:56 PM
#18
Posted 22 March 2011 - 06:04 PM
#19
Posted 01 April 2011 - 12:04 PM
I have my logic analyzer and Im in the process of trying to get used to it. When I run this code I get an error for unhandled exception.
while (true) { new OutputPort(Pins.GPIO_PIN_A4, true); new OutputPort(Pins.GPIO_PIN_A5, true); }
Thats the only code I have in the program and is what I used to light up the LEDs to test the pins originally.
#20
Posted 01 April 2011 - 12:18 PM
You cannot create multiple instances of OutputPort for the same pin (without disposing it first). You'd probably need something likeI have my logic analyzer and Im in the process of trying to get used to it. When I run this code I get an error for unhandled exception.
var port1 = new OutputPort(Pins.GPIO_PIN_A4, true); var port2 = new OutputPort(Pins.GPIO_PIN_A5, true); while(true) { port1.Write(false); port2.Write(false); port1.Write(true); port2.Write(true); }
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users