OCCRA
Go to Post According to Merriam-Webster the definition of lurker is an FRC Q&A person. - marshall [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-10-2017, 02:06 AM
marshall's Avatar
marshall marshall is offline
Discerning and exacting individual
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 2,064
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
pic: Time flies when you're having fun... with an RTC on the RoboRIO.


Clickable Link: https://github.com/FRC900/rtc-bq32k-rRIO

Last edited by marshall : 08-10-2017 at 07:45 AM. Reason: Adding clickable link because #internet
Reply With Quote
  #2   Spotlight this post!  
Unread 08-10-2017, 04:42 AM
BornaE's Avatar
BornaE BornaE is offline
Registered User
FRC #0842 (Formerly 39)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, Arizona
Posts: 363
BornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant future
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

10/10
__________________
-Borna Emami
Team 0x27
Reply With Quote
  #3   Spotlight this post!  
Unread 08-10-2017, 07:34 AM
cbale2000's Avatar
cbale2000 cbale2000 is offline
Registered User
AKA: Chris Bale
FRC #5712 (Gray Matter)
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 2004
Location: Saginaw, MI
Posts: 1,312
cbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond repute
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Pardon my ignorance, but the purpose of this is what?
__________________
2005-2008: FRC 703 Phoenix - Driver
2009-2016: FRC 703 Phoenix - Mentor
2017-????: FRC 5712 Gray Matter - Mentor
Reply With Quote
  #4   Spotlight this post!  
Unread 08-10-2017, 09:13 AM
marshall's Avatar
marshall marshall is offline
Discerning and exacting individual
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 2,064
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Quote:
Originally Posted by cbale2000 View Post
Pardon my ignorance, but the purpose of this is what?
Keeping time of course. It's an RTC module.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Clarke's Laws
Reply With Quote
  #5   Spotlight this post!  
Unread 08-10-2017, 09:36 AM
phurley67's Avatar
phurley67 phurley67 is online now
Programming Mentor
AKA: Patrick Hurley
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Michigan
Posts: 134
phurley67 will become famous soon enough
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Quote:
Originally Posted by cbale2000 View Post
Pardon my ignorance, but the purpose of this is what?
The RoboRIO does not have a RTC (calendar/wall time clock). It normally gets the correct time from the driver's station, but there are use cases where this might not happen and you still want to create logs with useful timestamps, a RTC (real time clock) is a good way to handle the problem if you do not have (or cannot depend on) internet connectivity.
__________________
Lightning Robotics -- Give me an Aaaaa

Reply With Quote
  #6   Spotlight this post!  
Unread 08-10-2017, 10:28 AM
cbale2000's Avatar
cbale2000 cbale2000 is offline
Registered User
AKA: Chris Bale
FRC #5712 (Gray Matter)
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 2004
Location: Saginaw, MI
Posts: 1,312
cbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond repute
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Quote:
Originally Posted by phurley67 View Post
The RoboRIO does not have a RTC (calendar/wall time clock). It normally gets the correct time from the driver's station, but there are use cases where this might not happen and you still want to create logs with useful timestamps, a RTC (real time clock) is a good way to handle the problem if you do not have (or cannot depend on) internet connectivity.
Interesting, I was not aware of this. Are there cases aside from data logging that this could benefit as well? Say time-based robot actions (autonomous, etc.)? Is there enough variance in the DS-acquired time that there would be any benefits to this for anything aside from logs?
__________________
2005-2008: FRC 703 Phoenix - Driver
2009-2016: FRC 703 Phoenix - Mentor
2017-????: FRC 5712 Gray Matter - Mentor
Reply With Quote
  #7   Spotlight this post!  
Unread 08-10-2017, 10:36 AM
marshall's Avatar
marshall marshall is offline
Discerning and exacting individual
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 2,064
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Quote:
Originally Posted by cbale2000 View Post
Interesting, I was not aware of this. Are there cases aside from data logging that this could benefit as well? Say time-based robot actions (autonomous, etc.)? Is there enough variance in the DS-acquired time that there would be any benefits to this for anything aside from logs?
Maybe.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Clarke's Laws
Reply With Quote
  #8   Spotlight this post!  
Unread 08-10-2017, 11:03 AM
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 283
TimTheGreat is a splendid one to beholdTimTheGreat is a splendid one to beholdTimTheGreat is a splendid one to beholdTimTheGreat is a splendid one to beholdTimTheGreat is a splendid one to beholdTimTheGreat is a splendid one to beholdTimTheGreat is a splendid one to behold
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Quote:
Originally Posted by cbale2000 View Post
Say time-based robot actions (autonomous, etc.)? Is there enough variance in the DS-acquired time that there would be any benefits to this for anything aside from logs?
Probably not, because most of the things you care about have to do with the [i]change[\i] in time, rather than the time itself. So as long as you have a base number to say 'this is the start of the program', then everything past there will be in reference to that start number.

Knowing the 'exact' time is really only useful for logging, but even then, not really useful. Knowing that the robot finished autonomous at 11:33:22.879 is (to me) less useful than knowing it finished 11.3 seconds into autonomous
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
Reply With Quote
  #9   Spotlight this post!  
Unread 08-10-2017, 11:04 AM
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 283
TimTheGreat is a splendid one to beholdTimTheGreat is a splendid one to beholdTimTheGreat is a splendid one to beholdTimTheGreat is a splendid one to beholdTimTheGreat is a splendid one to beholdTimTheGreat is a splendid one to beholdTimTheGreat is a splendid one to behold
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Quote:
Originally Posted by phurley67 View Post
useful timestamps
1) Why are exact timestamps useful?

2) Why are relative timestamps not useful?
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
Reply With Quote
  #10   Spotlight this post!  
Unread 08-10-2017, 11:21 AM
marshall's Avatar
marshall marshall is offline
Discerning and exacting individual
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 2,064
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Quote:
Originally Posted by TimTheGreat View Post
1) Why are exact timestamps useful?

2) Why are relative timestamps not useful?
Both are useful. They aren't mutually exclusive.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Clarke's Laws
Reply With Quote
  #11   Spotlight this post!  
Unread 08-10-2017, 11:25 AM
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,726
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Does that RTC module have a battery?

If so probably should check the battery rules.

EDIT: I see that is a super capacitor.
So no battery issue.
http://www.newark.com/kemet/fc0v474z...smd/dp/18X4840

Last edited by techhelpbb : 08-10-2017 at 11:28 AM.
Reply With Quote
  #12   Spotlight this post!  
Unread 08-10-2017, 11:28 AM
marshall's Avatar
marshall marshall is offline
Discerning and exacting individual
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 2,064
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Quote:
Originally Posted by techhelpbb View Post
Does that RTC module have a battery?

If so probably should check the battery rules.

EDIT: I see that is a super capacitor.
So no battery issue.
http://www.newark.com/kemet/fc0v474z...smd/dp/18X4840
You read the friendly manual... Excellent.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Clarke's Laws
Reply With Quote
  #13   Spotlight this post!  
Unread 08-10-2017, 11:31 AM
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,726
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Quote:
Originally Posted by marshall View Post
You read the friendly manual... Excellent.
Have you tried fully discharging that capacitor then connecting it and turning on the RoboRio?

I don't see a charger circuit schematic.
Reply With Quote
  #14   Spotlight this post!  
Unread 08-10-2017, 11:36 AM
marshall's Avatar
marshall marshall is offline
Discerning and exacting individual
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 2,064
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Quote:
Originally Posted by techhelpbb View Post
Have you tried fully discharging that capacitor then connecting it and turning on the RoboRio?

I don't see a charger circuit schematic.
Ohh! Good question! So, my code changes to the stock module were to enable the trickle charge setting for the RTC (without all of the device tree shenanigans). It has some internal bits to flip to make that work:



Image is from the TI data sheet for the BQ32000.

I'm still testing all of this so it really is "use at your own risk" right now.

Because someone is going to ask: I wasn't happy with the charge rate on the diode side above so I went the other route.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Clarke's Laws
Reply With Quote
  #15   Spotlight this post!  
Unread 08-10-2017, 11:38 AM
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,726
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: pic: Time flies when you're having fun... with an RTC on the RoboRIO.

Quote:
Originally Posted by marshall View Post
Ohh! Good question! So, my code changes to the stock module were to enable the trickle charge setting for the RTC. It has some internal bits to flip to make that work:



I'm still testing all of this so it really is "use at your own risk" right now.
Positive feedback left - you've taken great initiative - love to see this work out.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:11 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi