By continuing to use this site, you agree to our use of cookies. Find out more
Forum sponsored by:
Forum sponsored by Forum House Ad Zone

Failed to get this digital clock kit working :(

All Topics | Latest Posts

Search for:  in Thread Title in  
duncan webster11/05/2021 20:24:40
5307 forum posts
83 photos

From the original schematic it appears that the common cathodes are connected to one pin of the chip, so if all 8 segments are lit this pin is required to sink 8* the current of the driver pins. When I've used this type of display there has been a transistor twixt common cathode and chip.

I could well have misread the schematic of course

Edited By duncan webster on 11/05/2021 20:25:02

Michael Gilligan11/05/2021 20:50:07
avatar
23121 forum posts
1360 photos

Thanks for the good thought, Ian yes

I suspect that the processors may not have been programmed [or are not programmed correctly] but I have no way of checking, and am not much inclined to pursue that side of things.

There were absolutely no instructions, or-logic of-operation, provided with these kits ... so not much educational value. ... But at least they were very cheap.

MichaelG.

Michael Gilligan11/05/2021 22:09:32
avatar
23121 forum posts
1360 photos

Posted by Michael Gilligan on 09/05/2021 21:54:50:

[…]

Incidentally, the display is marked HS20401K-30 but I have yet to find its data-sheet.

...

.

For anyone who might have these ^^^

This appears to be another model from the same series [but lacking the clock colon]

**LINK**

https://theokelo.co.ke/how-to-get-your-hs420361k-32-4-digit-7-segment-display-working-with-an-arduino/

MichaelG.


Michael Gilligan25/02/2023 19:39:54
avatar
23121 forum posts
1360 photos
Posted by Michael Gilligan on 11/05/2021 20:50:07:

Thanks for the good thought, Ian yes

I suspect that the processors may not have been programmed [or are not programmed correctly] but I have no way of checking, and am not much inclined to pursue that side of things.

[…]

.

Nearly to years later … rummaging through my electronics scrap-box, I found the two assembled boards and wondered what, if anything, might be worth salvaging.

Curiosity led me to YouTube, where I found two interesting videos

**LINK**

**LINK**

Case closed

MichaelG.

Martin Kyte25/02/2023 20:23:01
avatar
3445 forum posts
62 photos

Can’t you redefine the project as write your own clock code? After all you do have the hardware.

regards Martin

Michael Gilligan25/02/2023 21:19:21
avatar
23121 forum posts
1360 photos
Posted by Martin Kyte on 25/02/2023 20:23:01:

Can’t you redefine the project as write your own clock code? After all you do have the hardware.

regards Martin

.

In a word, No

In several words :

  1. I have neither the knowledge to write the code, nor the will to learn how
  2. The nice man in the first video offers a download of his code, but anyway
  3. I couldn’t justify the additional expense of the programming device

I only posted today for the sake of ‘closure’

MichaelG.

.

P.S.

The kits are still available, silly-cheap on ebay

… just search for AT89C2051 DIY Electronics Kit

No idea if they are still duff though.

Edited By Michael Gilligan on 25/02/2023 21:36:14

duncan webster25/02/2023 21:54:24
5307 forum posts
83 photos

Michael, I could lend you the programming device k assuming it's a Pic) but I'd not know how to use it. Mine came with a load of other stuff, and is too good to throw away

Martin Kyte25/02/2023 21:55:59
avatar
3445 forum posts
62 photos

Not really a serious suggestion more sort of tongue in cheek.

regards Martin

Martin Kyte25/02/2023 22:19:41
avatar
3445 forum posts
62 photos
Posted by duncan webster on 25/02/2023 21:54:24:

Michael, I could lend you the programming device k assuming it's a Pic) but I'd not know how to use it. Mine came with a load of other stuff, and is too good to throw away

If it’s a PicKit programmer you can do in circuit programming and debug with it if you provide the connections on your board. Works with the MPLab development environment freely downloadable from the Microchip Technologies website. Runs on Mac or PC.

regards Martin

Michael Gilligan25/02/2023 22:43:20
avatar
23121 forum posts
1360 photos

Thanks for the thought, Martin, but [so far asI’m aware] it’s not a Pic

… and I really don’t want to try to learn a whole system for the sake of two chips.

I’m struggling enough with the easy stuff.

MichaelG.
 

.

Edit: __ for what it’s worth

AT89C2051 Product details

Description

The AT89C2051 is a low-voltage, high-performance CMOS 8-bit microcomputer with 2K bytes of Flash programmable and erasable read-only memory (PEROM). The device is manufactured using Atmel’s high-density nonvolatile memory technology and is compatible with the industry-standard MCS-51 instruction set. By combining a versatile 8-bit CPU with Flash on a monolithic chip, the Atmel AT89C2051 is a powerful microcomputer which provides a highly-flexible and cost-effective solution to many embedded control applications.

 

Features

• Compatible with MCS®-51Products

Edited By Michael Gilligan on 25/02/2023 22:51:59

Martin Kyte25/02/2023 22:48:20
avatar
3445 forum posts
62 photos

I did get the message you had given up with the clock. PicKit info posted as a response to Duncan and a general bit of info for anyone who might find it useful.

regards Martin

Michael Gilligan25/02/2023 22:54:12
avatar
23121 forum posts
1360 photos
Posted by duncan webster on 25/02/2023 21:54:24:

Michael, I could lend you the programming device k assuming it's a Pic) but I'd not know how to use it. Mine came with a load of other stuff, and is too good to throw away

.

Sorry, Duncan … I missed the fact that it was you making the offer

I was too busy trying to respond to Martin blush

MichaelG.

duncan webster26/02/2023 01:02:51
5307 forum posts
83 photos

I've no doubt that the code in Michael's link of 11/05 works, but it is making heavy weather of it. If you drive all 8 segments from one port you can tell it which character to write by putting portA = 0b01010101 or similar instead of the 8 lines for each character. Faster as well, not that it probably matters

Michael Gilligan26/02/2023 06:55:51
avatar
23121 forum posts
1360 photos

Good morning folks …

I now see that I managed, last night, to mess-up the cosmetics of this thread by copying and pasting text from a web-page.

… The old ‘text running under the adverts’ trick.

… Might have been better to not bother sad

MichaelG.

SillyOldDuffer26/02/2023 10:08:20
10668 forum posts
2415 photos
Posted by Michael Gilligan on 26/02/2023 06:55:51:

Good morning folks …

I now see that I managed, last night, to mess-up the cosmetics of this thread by copying and pasting text from a web-page.

… The old ‘text running under the adverts’ trick.

… Might have been better to not bother sad

MichaelG.

I found the thread interesting as an example of the need to get everything right!

Someone has designed a circuit, and a pcb, and bought and packaged all the components for a reasonable kit. They wrote a clock program in PIC Assembly language, and tested it on a prototype.

All good until someone made a basic mistake by sending the PIC chip supplier the program's source code rather than the compiled machine instructions. Thus large numbers of PIC chips loaded with duff code and sent out.

A rough rule of thumb in IT Projects, and it's generally true of all new design, it that the cost of fixing a mistake multiplies by 10 at each successive stage. Errors detected on the drawing board are cheap and easy to fix; the same mistake discovered by customers in the final product can cost millions to fix, perhaps more than the product sold for. Product recalls are horrifically expensive, involving substantial organisation, paying transport costs at retail-rates, dealing with items lost or damaged in transit and other complications. Often better to send a replacement, go bankrupt, or hide under the bed.

Dave

Michael Gilligan26/02/2023 13:35:53
avatar
23121 forum posts
1360 photos

Addendum: [might be useful to someone, sometime]

**LINK**

https://github.com/ruthsarian/at89c2051_clock

MichaelG.

All Topics | Latest Posts

Please login to post a reply.

Magazine Locator

Want the latest issue of Model Engineer or Model Engineers' Workshop? Use our magazine locator links to find your nearest stockist!

Find Model Engineer & Model Engineers' Workshop

Sign up to our Newsletter

Sign up to our newsletter and get a free digital issue.

You can unsubscribe at anytime. View our privacy policy at www.mortons.co.uk/privacy

Latest Forum Posts
Support Our Partners
cowells
Sarik
MERIDIENNE EXHIBITIONS LTD
Subscription Offer

Latest "For Sale" Ads
Latest "Wanted" Ads
Get In Touch!

Do you want to contact the Model Engineer and Model Engineers' Workshop team?

You can contact us by phone, mail or email about the magazines including becoming a contributor, submitting reader's letters or making queries about articles. You can also get in touch about this website, advertising or other general issues.

Click THIS LINK for full contact details.

For subscription issues please see THIS LINK.

Digital Back Issues

Social Media online

'Like' us on Facebook
Follow us on Facebook

Follow us on Twitter
 Twitter Logo

Pin us on Pinterest

 

Donate

donate