Go to Post Our job is to play the game that the GDC gave us, not the one we think they should have given us. - Herodotus [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 18-01-2016, 14:56
acastagna acastagna is offline
Registered User
FRC #1493
 
Join Date: Jan 2012
Location: Albany High School
Posts: 34
acastagna is an unknown quantity at this point
Rev Robotics MXP Digit board Java code

Here is or team's Java code for getting the Rev Robotics Digit board to display text. The code is in the team 1493 GitHub:

https://github.com/FIRSTteam1493/Rev...rd/tree/master

The character repository contains the byte binary codes for each character (note that each character takes up two elements in the array). Characters are printed from right to left on the 14-segment displays (so the first character in byte1 will end up in the rightmost display). You store whatever you want to print in byte1, then run i2c.writeBulk(byte1) to write it to the board's internal RAM and therefore to the displays. Right now the code is set to cycle through all 36 characters, but you can change that to whatever you want.

Cheers!

-1493
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2016, 15:58
floogulinc's Avatar
floogulinc floogulinc is offline
Registered User
AKA: Paul Friederichsen
FRC #2879 (Orange Thunder)
Team Role: Programmer
 
Join Date: Oct 2012
Rookie Year: 2013
Location: Saint Louis Park, MN
Posts: 11
floogulinc is an unknown quantity at this point
Re: Rev Robotics MXP Digit board Java code

Please rename the code file to have the .java extension so there is syntax highlighting.
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2016, 16:13
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Re: Rev Robotics MXP Digit board Java code

We are trying out your code but have not had success displaying characters. A question: where did you locate the i2c port number value? I have looked all over and not found that documented. I'm curious how you found it.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2016, 21:51
The Doctor's Avatar
The Doctor The Doctor is offline
Robotics is life
AKA: Hackson
FRC #3216 (MRT)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2013
Location: United States
Posts: 152
The Doctor is on a distinguished road
Re: Rev Robotics MXP Digit board Java code

I'm working on a library to simplify this... I'll test it tomorrow and put it up ASAP.
__________________
Robots + Python + pentesting == me;
Blog ~ GitHub ~ Keybase
If you have a pressing issue to discuss with me, kik me at slush.puddles since I don't check CD very often.
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2016, 11:07
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Re: Rev Robotics MXP Digit board Java code

Actually we did get this code to work. Again, my question is how did you determine the i2c port number to use?

Also, whatever function we use to read the pot on the analoginput, we get large values, in the range of 208-224. I was expecting (as documented) to 0 to 5, at least using getvoltage function. Have not used analoginput before so seems I am missing something...
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2016, 16:33
The Doctor's Avatar
The Doctor The Doctor is offline
Robotics is life
AKA: Hackson
FRC #3216 (MRT)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2013
Location: United States
Posts: 152
The Doctor is on a distinguished road
Re: Rev Robotics MXP Digit board Java code

Quote:
Originally Posted by Crossle86 View Post
Actually we did get this code to work. Again, my question is how did you determine the i2c port number to use?

Also, whatever function we use to read the pot on the analoginput, we get large values, in the range of 208-224. I was expecting (as documented) to 0 to 5, at least using getvoltage function. Have not used analoginput before so seems I am missing something...
The I2C port number is constant, hex 0x70. The analog input, last i checked, is a value from 0 to 1024 that maps to a value of 0-5v.
__________________
Robots + Python + pentesting == me;
Blog ~ GitHub ~ Keybase
If you have a pressing issue to discuss with me, kik me at slush.puddles since I don't check CD very often.
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2016, 19:28
RamTech 59 RamTech 59 is offline
RamTech 59
FRC #0059 (RamTech 59)
Team Role: Coach
 
Join Date: Jan 2016
Rookie Year: 1997
Location: Miami, FL
Posts: 9
RamTech 59 is an unknown quantity at this point
Re: Rev Robotics MXP Digit board Java code

The GitHub address isn't going anywhere. It is saying servers are busy or something. Do you have a direct download link for this?
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2016, 21:17
The Doctor's Avatar
The Doctor The Doctor is offline
Robotics is life
AKA: Hackson
FRC #3216 (MRT)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2013
Location: United States
Posts: 152
The Doctor is on a distinguished road
Re: Rev Robotics MXP Digit board Java code

Quote:
Originally Posted by RamTech 59 View Post
The GitHub address isn't going anywhere. It is saying servers are busy or something. Do you have a direct download link for this?
Github is down right now, be patient. I don't have the code they posted, but in the mean time, you could try out the library I wrote (soon to Github`d)...

Edit: github seems to be up, see this thread:

http://www.chiefdelphi.com/forums/sh...42#post1531242

Just in case, here's a backup: http://pastebin.com/NKBatYgZ
__________________
Robots + Python + pentesting == me;
Blog ~ GitHub ~ Keybase
If you have a pressing issue to discuss with me, kik me at slush.puddles since I don't check CD very often.

Last edited by The Doctor : 27-01-2016 at 21:40. Reason: link to github
Reply With Quote
  #9   Spotlight this post!  
Unread 27-01-2016, 22:01
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Re: Rev Robotics MXP Digit board Java code

Quote:
Originally Posted by The Doctor View Post
The I2C port number is constant, hex 0x70. The analog input, last i checked, is a value from 0 to 1024 that maps to a value of 0-5v.
It's listed on page 25-26 of the HT16K33 datasheet. The address is selectable by connecting the A0/A1/A2 to the AD pin via a resistor through a diode.
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
Reply With Quote
  #10   Spotlight this post!  
Unread 28-01-2016, 12:05
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Re: Rev Robotics MXP Digit board Java code

Quote:
Originally Posted by The Doctor View Post
The I2C port number is constant, hex 0x70. The analog input, last i checked, is a value from 0 to 1024 that maps to a value of 0-5v.
Yes, I understand the port number is hex 70. My question is how you determined the value is 70. Did you find this in some documentation, or code or online? I have not been able to find this information and I want to know how one comes by this port number value.
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 10:50.

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