Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3, 4
Data Logger Shield (HCARDU0093) 
Author Message

Joined: Sat Oct 22, 2016 11:16 am
Posts: 3
Post Re: Data Logger Shield (HCARDU0093)
Thank you for your shortened program which just uses the RTC hardware.

I can confirm that I have uploaded this to my Arduino Uno and it doesn't display anything in the Serial Monitor Window at all when the program runs (also using 9600 baud as advised). I have also tried with a different CR1220 battery to see if this makes any difference but it didn't.

I'm guessing that this means that the RTC isn't working. Can I get this unit replaced with a working one ? How would I go about that please ?


Wed Nov 09, 2016 8:26 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 674
Post Re: Data Logger Shield (HCARDU0093)
Yes, I think it's looking likely there is a problem with the shield. I think I've found you on our system but I'm going to DM you to confirm your details and we can sort it out from there.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Thu Nov 10, 2016 9:55 am
Profile

Joined: Wed Oct 15, 2014 9:17 am
Posts: 1
Post Re: Data Logger Shield (HCARDU0093)
After downloading and installing Arduino version 1.8.0 I get SD Card error messages despite no hardware changes, after much experimenting I changed the SD library to an olfder one downloaded from here https://learn.adafruit.com/adafruit-dat ... d-leonardo
and all is now working fine again, this is with a Hobbycomponents UNO+ board.
Hope this might help someone..

Andy


Fri Jan 06, 2017 4:54 pm
Profile

Joined: Fri Aug 07, 2015 9:33 am
Posts: 2
Post Re: Data Logger Shield (HCARDU0093)
Hi Andrew, this is a great little board and works fine on the Uno. Can you confirm that the modifications you suggested for the Mega are also required when using the Leonardo?

andrew wrote:
The reason why the shield wont work on a Mega in its unmodified state is because it needs to use the I2C and the SPI interfaces on your Arduino board. As you are probably already be aware, these two interfaces are in a different location on a Mega compared to an Uno. Looking at the schematic it looks like you would need to do the following:...


For my application I found that the SD library used a bit too much SRAM on the Uno, but the extra half-a-kilobyte available on the Leonardo is perfect to cover my needs. I tried a smaller SDFat library with the Uno, which kind-of worked. https://github.com/greiman/SdFat. It reduced the memory footprint requirement but it also has significant restrictions, such as, it cannot create files, they must exist already on the SD card and cannot be resized. I think the better option is to add the hardware mods to the shield and use the extra memory of the Leonardo (32u4).

Thanks

John


Sun Mar 26, 2017 7:44 am
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 674
Post Re: Data Logger Shield (HCARDU0093)
Quote:
Can you confirm that the modifications you suggested for the Mega are also required when using the Leonardo?


I'm afraid if you want to use the shield with a Leonardo you will also have to make modifications. For the I2C interface these can also be found on the two end pins of the 10 way header near the reset button (they are also on digital pins D2 & D3) on the Leonardo. For the SPI interface on a Leonardo this is only available via the 6 pin ICSP header. There is a pinnout of the SPI interface on the Arduino website here:

https://www.arduino.cc/en/reference/SPI

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Mon Mar 27, 2017 9:02 am
Profile

Joined: Fri Aug 07, 2015 9:33 am
Posts: 2
Post Re: Data Logger Shield (HCARDU0093)
Thank you Andrew. The modifications should not be a problem.
Best regards, John.


Mon Mar 27, 2017 10:27 am
Profile

Joined: Wed Jul 12, 2017 5:07 am
Posts: 1
Post Re: Data Logger Shield (HCARDU0093)
Hi,
I have managed with the help of posts from this site to get my Deek-Robot data logger shield to work on an Arduino Mega. Simple in the end but without the help from here I would have given up and confined the shield to the bin. Many thanks to one and all !! :D
One question I have is, can the DS1307 RTC on-board this shield, be interrogated at setup stage to establish its status and if it is indeed running. I have seen in other libraries that this can be done, but it seems that capability is not programmed into the HCRTC library. Can this function be included and if so how would I go about altering the HCRTC library files.
Any thought would be welcome

IK


Thu Jul 13, 2017 5:38 am
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 674
Post Re: Data Logger Shield (HCARDU0093)
Quote:
One question I have is, can the DS1307 RTC on-board this shield, be interrogated at setup stage to establish its status and if it is indeed running. I have seen in other libraries that this can be done


I'm not exactly sure what the libraries you mention will be doing but if the device isn't working for some reason then there would be no response from it on the I2C bus. So you could just simply test if it is present by starting and then closing a transmission without sending or reading any data and then see if it closed without error.

I can't test this code right now but try adding this to the bottom of your sketch:

Code:
boolean I2CTest()
{
  Wire.beginTransmission(0x68);
  if (Wire.endTransmission() == 0)
    return true;
  else
    return false;
}



And then do something like this to test if the device is working:

Code:
if (I2CTest())
    Serial.println("Device OK");
  else
    Serial.println("Error");

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Thu Jul 13, 2017 8:24 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 38 posts ]  Go to page Previous  1, 2, 3, 4

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD