[x] Welcome at THunting.com!

A fun place to talk about Metal Detecting, Treasure Hunting & Prospecting. Here you can share finds and experience with thousands of members from all over the world

Join us and Register Now - Its FREE & EASY

THunting.com
Treasure Hunting & Metal Detecting Community
   
Advanced Search
*
Welcome, Guest! Please login or register HERE - It is FREE and easy.
Only registered users can post and view images on our message boards.
Did you miss your activation email?

Login with email, password and session length
Or Login Using Social Network Account
News:
Pages:  1 2 3   Go Down
Print
Share this topic on FacebookShare this topic on Del.icio.usShare this topic on DiggShare this topic on RedditShare this topic on Twitter
Tags:
0 Members and 1 Guest are viewing this topic.
Offline xavierTopic starter
Moderator
Platin Member
*****

From a rainy Brussels
Join Date: May, 2009
Thank you166

Activity
0%
Male
Belgium
Posts: 7339
Referrals: 0

32206.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Chrome 40.0.2214.94
Chrome 40.0.2214.94

Awards
« on: February 06, 2015, 01:00:12 pm »
Go Up Go Down

Some time ago while detecting I found the remains of what seems to be an MP3 player and removed the 4 x 7 Segment display that was on the board. I found that this display had a total of 35 LED's in it but only has 7 connection pins. Today I stumbled on this display again and decided to decipher the pin-out, I did not bother to note the Play, Pause, USB, SD FM and MP3 LED's, here is what I found.

what I would like to know is what code dose one need to use to drive the display? could it be binary ? Just to clarify things a bit, (7 segment 1) segment A pin 2 is Neg and pin 1 is Pos and segment F pin 1 is Neg and pin 2 is Pos. By doing it like this they can control all 35 LED's with just 7 connection pins. (very clever indeed)
 

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291178.html#msg291178


Xavier

There are 3 attachment(s) in this post which you can not view or download

Please register for viewing them.

20150206_185814-1_1423245665580_2.JPG
20150206_185915-1_1423245665301_1.JPG
20150206_194304_1423248241595_1.JPG


Logged

So many questions so little time

Offline GoldDigger1950
The Old Man and the Soil
Global Moderator
Platin Member
*****

Just call me GD.
The Old Man and the Soil
Join Date: Jun, 2009
Thank you225

Activity
0%
Male
United States
Posts: 11219
Referrals: 12

47848.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Firefox 35.0
Firefox 35.0

Awards

Garrett Groundhog ADS, Garrett Sea Hunter, Bounty Hunter Tracker IV, Bounty Hunter Pioneer 505,Minelab Eldorado Mk II, Tesoro Compadre, Tesoro Tiger Shark & A Few Home Brew Detectors
« Reply #1 on: February 06, 2015, 02:33:36 pm »
Go Up Go Down

Most likely it is I2C or SPI serial communication. Beyond that, you'll have to guess at the code to control it.

Does it have any kind of part number on it at all?

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291189.html#msg291189




Logged

It's all about that moment when metal that hasn't seen the light of day for generations frees itself from the soil and presents itself to me.
Let's Talk Treasure!

Offline Homefire
Global Moderator
Platin Member
*****

Join Date: Jan, 2009
Thank you662

Activity
0%
Male
United States
Posts: 15906
Referrals: 0

52360.00 Gold
View Inventory
Windows NT 6.3
Windows NT 6.3
Mozilla compatible
Mozilla compatible

Awards
« Reply #2 on: February 06, 2015, 02:37:47 pm »
Go Up Go Down

  Yep, my bet is it had a BC code Interpreter IC  .   You can mate it to a EProm and make a cool wild Blinky Light out of it.

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291191.html#msg291191




Logged
Offline Mudflap
Knight
Gold Member
*

Join Date: Apr, 2010
Thank you92

Activity
0%

United States
Posts: 1864
Referrals: 0

9300.00 Gold
View Inventory
Mac OS X 10.10
Mac OS X 10.10
Firefox 35.0
Firefox 35.0

Awards
« Reply #3 on: February 06, 2015, 07:04:30 pm »
Go Up Go Down

Maybe just a cmos BCD decoder driver for led. Did you try to light up any segments?

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291206.html#msg291206




Logged
Offline xavierTopic starter
Moderator
Platin Member
*****

From a rainy Brussels
Join Date: May, 2009
Thank you166

Activity
0%
Male
Belgium
Posts: 7339
Referrals: 0

32206.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Chrome 40.0.2214.111
Chrome 40.0.2214.111

Awards
« Reply #4 on: February 06, 2015, 09:34:55 pm »
Go Up Go Down

Quote:Posted by GoldDigger1950
Does it have any kind of part number on it at all?

Yes it dose, KM 2408 but there is nothing on the net about it so I think that it was custom made for the manufacturer.

This is the code that controls a single digit, (used in FlowCode) my guess is that if I manipulate this code I'll be able to control it. I just want to let you know that it's purely out of curiosity that I'm looking at how to make this 7 segment work so I'll play around with it for a while, you just never know what may come out of it.

 MX_UINT8 cSegmentValue = %a_SegmentArray[Value % 10];

   if (DecimalPoint)
      cSegmentValue = cSegmentValue & 0x7F;         //Clear decimal point bit

   //display the digit
    #if (%a_COM_TYPE == 1)                  //Common Anode - Low = on, High = off

      if (cSegmentValue & 0x01)
      {
         FC_CAL_Bit_High_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN0);
      }
      else
      {
         FC_CAL_Bit_Low_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN0);
      }

      if (cSegmentValue & 0x02)
      {
         FC_CAL_Bit_High_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN1);
      }
      else
      {
         FC_CAL_Bit_Low_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN1);
      }

      if (cSegmentValue & 0x04)
      {
         FC_CAL_Bit_High_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN2);
      }
      else
      {
         FC_CAL_Bit_Low_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN2);
      }

      if (cSegmentValue & 0x08)
      {
         FC_CAL_Bit_High_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN3);
      }
      else
      {
         FC_CAL_Bit_Low_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN3);
      }

      if (cSegmentValue & 0x10)
      {
         FC_CAL_Bit_High_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN4);
      }
      else
      {
         FC_CAL_Bit_Low_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN4);
      }

      if (cSegmentValue & 0x20)
      {
         FC_CAL_Bit_High_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN5);
      }
      else
      {
         FC_CAL_Bit_Low_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN5);
      }

      if (cSegmentValue & 0x40)
      {
         FC_CAL_Bit_High_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN6);
      }
      else
      {
         FC_CAL_Bit_Low_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN6);
      }

      if (cSegmentValue & 0x80)
      {
         FC_CAL_Bit_High_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN7);
      }
      else
      {
         FC_CAL_Bit_Low_DDR(%a_SEG_PORT, %a_SEG_TRIS, %a_SEG_PIN7);
      }

      FC_CAL_Bit_High_DDR(%a_COM_PORT, %a_COM_TRIS, %a_COM_PIN);

#endif

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291215.html#msg291215


Xavier


Logged

So many questions so little time

Offline GoldDigger1950
The Old Man and the Soil
Global Moderator
Platin Member
*****

Just call me GD.
The Old Man and the Soil
Join Date: Jun, 2009
Thank you225

Activity
0%
Male
United States
Posts: 11219
Referrals: 12

47848.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Firefox 35.0
Firefox 35.0

Awards

Garrett Groundhog ADS, Garrett Sea Hunter, Bounty Hunter Tracker IV, Bounty Hunter Pioneer 505,Minelab Eldorado Mk II, Tesoro Compadre, Tesoro Tiger Shark & A Few Home Brew Detectors
« Reply #5 on: February 07, 2015, 02:58:18 am »
Go Up Go Down

Does your code do anything to the display?

Posted on: February 07, 2015, 10:40:10 am
Inside of the poured epoxy you might be able to see a chip and read the part number. This is a common driver for those guys.

You are not allowed to view links.
Please Register or Login

http://www.st.com/web/en/resource/technical/document/datasheet/CD00002658.pdf


Posted on: February 07, 2015, 10:53:33 am
Of course you can always just buy a few here for experimenting. Make sure you find a common anode driver for it.

You are not allowed to view links.
Please Register or Login

http://www.aliexpress.com/item/10pcs-0-56-Inch-7-Segment-4-Digit-Super-Red-Clock-LED-Display-Common-Anode-Time/32231999773.html


Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291220.html#msg291220




Logged

It's all about that moment when metal that hasn't seen the light of day for generations frees itself from the soil and presents itself to me.
Let's Talk Treasure!

Offline xavierTopic starter
Moderator
Platin Member
*****

From a rainy Brussels
Join Date: May, 2009
Thank you166

Activity
0%
Male
Belgium
Posts: 7339
Referrals: 0

32206.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Chrome 40.0.2214.111
Chrome 40.0.2214.111

Awards
« Reply #6 on: February 07, 2015, 08:05:55 pm »
Go Up Go Down

I had a look at the display but it's a 12 pin mine is a 7 pin. I know how to run 12 pin displays and I think that I have figured out how to get this 5 pin running too but like I said it's not a priority for me at this point in time and I just want to understand how to get it to work, so I'll be experimenting on it when time permits. Right now I have a clock that point blank refuses to work with the 16f690 yet works 100% with the 16f877a and that's got me doing some head banging  Grin  

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291259.html#msg291259


Xavier


« Last Edit: February 07, 2015, 08:08:41 pm by xavier »
Logged

So many questions so little time

Offline GoldDigger1950
The Old Man and the Soil
Global Moderator
Platin Member
*****

Just call me GD.
The Old Man and the Soil
Join Date: Jun, 2009
Thank you225

Activity
0%
Male
United States
Posts: 11219
Referrals: 12

47848.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Firefox 35.0
Firefox 35.0

Awards

Garrett Groundhog ADS, Garrett Sea Hunter, Bounty Hunter Tracker IV, Bounty Hunter Pioneer 505,Minelab Eldorado Mk II, Tesoro Compadre, Tesoro Tiger Shark & A Few Home Brew Detectors
« Reply #7 on: February 08, 2015, 04:04:31 am »
Go Up Go Down

Did you have a reason for choosing the PIC16F690 chip? That device uses RB0-7 as analog inputs on some of the pins and unless you set the pins to digital, it won't work for most applications. Look on page 5, Table 2 of the spec sheet and you will find a pin summary. Then look on page 115 and see that the ADCON0 register, bit 0 must be set to 0 to have your RB ports set to digital. Then you must also set the tristate buffer to outputs. TRISB=0; in C.

That should get you back on track.

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291276.html#msg291276




Logged

It's all about that moment when metal that hasn't seen the light of day for generations frees itself from the soil and presents itself to me.
Let's Talk Treasure!

Offline GoldDigger1950
The Old Man and the Soil
Global Moderator
Platin Member
*****

Just call me GD.
The Old Man and the Soil
Join Date: Jun, 2009
Thank you225

Activity
0%
Male
United States
Posts: 11219
Referrals: 12

47848.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Firefox 35.0
Firefox 35.0

Awards

Garrett Groundhog ADS, Garrett Sea Hunter, Bounty Hunter Tracker IV, Bounty Hunter Pioneer 505,Minelab Eldorado Mk II, Tesoro Compadre, Tesoro Tiger Shark & A Few Home Brew Detectors
« Reply #8 on: February 08, 2015, 05:49:40 am »
Go Up Go Down

I forgot to give you the code to set the ADCON0 register. Use ADCON0=0x00; for hex setup or ADCON0=0b00000000; for binary. I prefer to use binary because you can see on the ADCON0 chart that there are 8 setup bits, all of which can control the port if you set bit 0 to 1. So, if bit 0 is set to 0, the rest of the pins are invalid.

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291277.html#msg291277




Logged

It's all about that moment when metal that hasn't seen the light of day for generations frees itself from the soil and presents itself to me.
Let's Talk Treasure!

Offline xavierTopic starter
Moderator
Platin Member
*****

From a rainy Brussels
Join Date: May, 2009
Thank you166

Activity
0%
Male
Belgium
Posts: 7339
Referrals: 0

32206.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Chrome 40.0.2214.111
Chrome 40.0.2214.111

Awards
« Reply #9 on: February 08, 2015, 09:25:58 am »
Go Up Go Down

Thanks GD

The only reason why I'm using the 16f690 is because I have one and I do not want to use a 40 pin PIC when all I really need are 14 pins, if I were using an LCD I would go for the 40 pin PIC because then I would add the date and the temperature (using a two line display with back light) I could even incorporate a GPS for automatic time and date setting. I could also put a light sensor so that the back light turns on when I turn off the lights and a host of other things but all I really need is a tic-toc that tells me the time Grin of course I could just go to the shop and buy one, sure would be a lot less stressful.  :Smiley  but then it would be like admitting defeat and I wont have that.   

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291278.html#msg291278


Xavier


Logged

So many questions so little time

Print
Pages:  1 2 3   Go Up
Jump to:  

Powered by SMF 1.1.19 | SMF © 2005, Simple Machines | Sitemap
Copyright THunting.com