chipKIT® Development Platform

Inspired by Arduino™

ChipKIT Basic I/O Shield and I2C Temperature sensor

Created Thu, 05 Mar 2015 20:40:27 +0000 by danialn


Thu, 05 Mar 2015 20:40:27 +0000

I am trying to get the Temperature Sensor Demo to work on the Basic I/O Shield. I have it connected to a ChipKIT Uno with the jumpers sent to RG2 and RG3 on JP8 and JP6. I have I2C pullups in place on the Basic I/O Shield. But, the software seems to lock up when configuring the Temp. Sensor. I placed a Serial.Println before and after the call to the config in the demo and only the first print appears on the console.

I used these boards a couple years ago and had nice little temperature readout using the OLED. It worked fine. But, now, I can't even get the demo to work for the Temp Sensor. Has something changed in the libraries or hardware that I should know about. I am using some newer boards than the last time.

I feel pretty silly asking, but I am at a loss as to what is wrong.

Thank you in advance,



Sun, 03 May 2015 20:29:19 +0000

I also am not having success with the temp demo program when using the Chipkit32 Uno with the IOShield. I have JP8 and JP6 set to RG2 and RG3 on the UNO board. The example software loads but I don't get an output of the temp on the serial monitor. The IOShield OLED demos work just fine.


Tue, 21 Jul 2015 14:48:07 +0000

Hello Did you solve your problem? I've got exactly the same/ Oled is perfect but I2C killed bij Temp and EEprom demo.



Wed, 22 Jul 2015 04:59:23 +0000


I recommend to download this version if you are using Windows : [url][/url]

I have tested the example code on mpide-0150-windows-20150608-test successfully (only testing the temperature example for now), but it is currently not working on mpide-0023-windows-20140821.

What operating system are you using? If you are not using Windows I recommend giving one of the other test versions a try found in this link, [url][/url] trying the "mpide-0150-..." versions looking at the most recent "Lastmodified" date on that webpage for your operating system.


Wed, 22 Jul 2015 06:44:05 +0000


Yesterday i found a solution for the annoying I2C bug in both EEProm and Temp libraries of the demofiles. For suren the I2C interface was killed by initialisation "Wire.begin"in library file.

After removing the Wire.begin from both IOShieldEEprom.cpp and IOShieldTemperature.cpp files and putting initialisation Wire.begin in both demo sketches everything works fine.

Initialisation of interfaces in libraries often will give most uncertain compiler results.



Wed, 22 Jul 2015 07:25:05 +0000

Sorry Slip of my pen.

The I2C interface "Wire' was actually killed at moment of initialisation of the config. This caused hanging of the sketch at:


Moving "Wire.begin" from .CPP files to sketch .pde solved the problem.