Go Down

Topic: Wire.h and pin 13 (Read 5 times) previous topic - next topic


I just also tried to use the wire library in my sketch (running osX 10.4.8). I have the same problems. When I want to make an output via "Serial.println" nothing is printed into the serial monitor. It seems that Wire.h hangs everything.

here is my sketch:

#include <Wire.h>

void setup()
 Serial.begin(9600);           // start serial for output

void loop()

maybe there is a solution for mac users,




Nov 20, 2006, 12:15 pm Last Edit: Nov 20, 2006, 12:17 pm by fux Reason: 1

I read some more information about the i2c interface (http://www.sprut.de/electronic/pic/grund/i2c.htm  >>> in german only) and you have to put a resistor (1,8 k ohm) to each wire. Otherwise the programm will hang up. now I tried to make two arduino boards "talk" to each other. It still didn't work, but if I find a solution I will post it.




Haven't tried with the resistors yet, but I did just try compiling running XP as a virtual machine in OS X using Parallels.

Same results as just using OS X. I knew it would be too easy if that just worked.

FYI, if you want to use arduino in XP via Parallels, you need to disable the OS X FTDIUSBSerialDriver.kext found in System/Library/Extensions. A slight pain (because you have to renable it to use arduino later in OS X), but nothing horrific.

I have linux installed via parallels too... maybe I'll try that as well. Although fux's recommendation about the resistors sounds like a more likely solution... but it's less geeky and fun... and it also sounds like neillzero got it to work in xp without having any resistors hooked up. hmmm.
Free software for MIDI control in OS X.


I'd be surprised if the operating system mattered.  In general, the same thing ends up on the Arduino board regardless of your OS.  Though you never know.

Maybe there are other differences between the setups that have worked and the ones that don't?  Esp. in terms of how things were wired and which programs were running on which boards?


Nov 21, 2006, 05:59 pm Last Edit: Nov 21, 2006, 06:00 pm by brainfart Reason: 1
> Haven't tried with the resistors yet

You should! The I2C bus won't work without them. Dedicated I2C hardware might already have them built in, but the Arduino definitely doesn't.

Go Up