ChipKIT Basic I/O Shield and I2C Temperature sensor

Post Reply
danialn
Posts: 3
Joined: Fri May 04, 2012 11:14 pm

ChipKIT Basic I/O Shield and I2C Temperature sensor

Post by danialn » Thu Mar 05, 2015 9:40 pm

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,

Dan

robsmoto
Posts: 1
Joined: Sun May 03, 2015 9:24 pm

Re: ChipKIT Basic I/O Shield and I2C Temperature sensor

Post by robsmoto » Sun May 03, 2015 9:29 pm

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.

dutchradio
Posts: 3
Joined: Tue Jul 21, 2015 1:35 pm

Re: ChipKIT Basic I/O Shield and I2C Temperature sensor

Post by dutchradio » Tue Jul 21, 2015 3:48 pm

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

dolf

djgardn2
Posts: 61
Joined: Sat Apr 19, 2014 6:34 am

Re: ChipKIT Basic I/O Shield and I2C Temperature sensor

Post by djgardn2 » Wed Jul 22, 2015 5:59 am

Hello,

I recommend to download this version if you are using Windows : http://chipkit.s3.amazonaws.com/builds/ ... 8-test.zip

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, http://chipkit.s3.amazonaws.com/index.h ... rtdir=desc trying the "mpide-0150-..." versions looking at the most recent "Lastmodified" date on that webpage for your operating system.
Dare2Tech.com Electronic tutorials and more coming soon.

dutchradio
Posts: 3
Joined: Tue Jul 21, 2015 1:35 pm

Re: ChipKIT Basic I/O Shield and I2C Temperature sensor

Post by dutchradio » Wed Jul 22, 2015 7:44 am

Hello,

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.

Dolf

dutchradio
Posts: 3
Joined: Tue Jul 21, 2015 1:35 pm

Re: ChipKIT Basic I/O Shield and I2C Temperature sensor

Post by dutchradio » Wed Jul 22, 2015 8:25 am

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:
IOShieldTemp.config(IOSHIELDTEMP_ONESHOT | IOSHIELDTEMP_RES11 | IOSHIELDTEMP_ALERTHIGH);
Moving "Wire.begin" from .CPP files to sketch .pde solved the problem.

dolf

Post Reply