Is this the lamest "design idea" in EDN...? - Page 1
Forum section: electronics / general

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: September 17, 2010, 11:08:00 pm
content: Reading EDN today I came across this "design idea" -How to avoid using a seven-segment decoderAre they really so short of material that they have to pubslish something as lame and bleeding obvious as this...?I fully expect to see next month's edition to have something entitled "Save microcontroller pins using an external seven-segment decoder"

author: KTP
author_rank: Frequent Contributor
timestamp: September 17, 2010, 11:20:21 pm
content: Wow...I mean wow.The only thing now they can do that would be lamer is an issue on how to divide a voltage using resistors.

author: RayJones
author_rank: Frequent Contributor
timestamp: September 18, 2010, 12:08:29 am
content: WTF?They left off the decimal point, now that is lame.

author: JohnS_AZ
author_rank: Frequent Contributor
timestamp: September 18, 2010, 04:01:57 am
content: Yea, that's pretty lame. That column has been going downhill for, what, the last year and a half? I remember the brilliant "new" idea of creating any color by driving 3 LEDs with PWM. *sigh*In their defense, however, I imagine all they can do is select the best of what they receive as submissions.Some of the sharpest engineers I've found on the web are right here on this forum. How many of you would go to the trouble to proto and write up a design idea, edit it a couple times, make the drawings, when all they pay is $150 US for a published idea?If the $150 sounds like a lot to you, send some stuff in. It sure look like they could use the help!http://www.edn.com/info/2236-Design_Ideas_Writers_Guide.php

author: EEVblog
author_rank: Unknown
timestamp: September 18, 2010, 05:21:22 am
content: Ok, that's pretty dumb-arse.At least they included the table. Sham it's not valid if you have to use different pin configurations which is not uncommon.Dave.

author: Zero999
author_rank: Super Contributor
timestamp: September 18, 2010, 06:35:30 am
content: It's pretty shitty.Here's PIC tutorial which is much better than that.http://www.gooligum.com.au/tutorials/baseline/PIC_Base_A_8.pdfA better article would've been how to use a CD4026 to control an LED display with only a few I/O pins, as in the project linked below.http://www.electronics-lab.com/projects/automotive/006/index.htmlUnfortunately, whilst it's a good project, like most on Electronics Lab it contains an error: R1 isn't required because the CMOS IC limits the current and if it didn't, a separate resistor would be required for each LED.

author: Bored@Work
author_rank: Super Contributor
timestamp: September 19, 2010, 10:54:16 am
content: EDN was sold recently. They were on the auction block for some time and had to shed employees. Still they were among the lucky ones, they survived. Their previous owner completely closed other publications.When the new owner took over they had some serious teething problems migrating the website and putting issues out. It is only recently that the website is almost back to normal. Maybe they get the magazine quality under control in the future.

author: Zero999
author_rank: Super Contributor
timestamp: September 19, 2010, 12:03:13 pm
content: I think I'll email them my idea, hopefully they'll pay me for it.

author: Kiriakos-GR
author_rank: Super Contributor
timestamp: September 19, 2010, 12:08:40 pm
content: Quote from: Hero999 on September 19, 2010, 12:03:13 pmTell them that you are nephew of Thomas Edison , they will pay

author: ziq8tsi
author_rank: Regular Contributor
timestamp: September 19, 2010, 03:44:59 pm
content: Any such lookup table should include the extra hex digits A to F as well. Even if you think you only need decimal in a particular project.It is a useful debugging aid, and the extra storage cost is minimal, especially since it also saves you the need to explicitly check for invalid digits. (You can just mask off four bits and lookup, rather than having to branch if the value exceeds nine.)This is especially important on low end PIC devices where lookup tables are implemented by adding to the program counter -- a non-decimal digit lookup could otherwise crash your code.

author: JohnS_AZ
author_rank: Frequent Contributor
timestamp: September 19, 2010, 07:12:32 pm
content: I've rethought this since posting that $150 was too cheap. If you got three things published that would cover a new Rigol scope.What's more, work in a link to Dave's site here and I bet he'd get a serious bump in site views.

author: jpwack
author_rank: Contributor
timestamp: September 21, 2010, 03:16:10 am
content: maybe it's lame, but useful as hell and a lot of newcomers may not know it. Just a month ago I wrote this:Code:/*** Easy integer-to-SevenSegmentDisplay conversor** @param inputAn integer representation of the number to display in the SevenSegmentDisplay* @returnThe SevenSegmentDisplay representation of that number*/unsigned char sevensd_number( unsigned char input) {switch(input) {case 0: return 0xE7;case 1: return 0x84;case 2: return 0xD3;case 3: return 0xD6;case 4: return 0xB4;case 5: return 0x76;case 6: return 0x77;case 7: return 0xC4;case 8: return 0xF7;case 9: return 0xF6;case 0xA: return 0xF5;case 0xB: return 0x37;case 0xC: return 0x63;case 0xD: return 0x97;case 0xE: return 0x73;case 0xF: return 0x71;default: return 0x8;}return 0x8;}it was made for an MSP430 withlotsof program space, so don't blame me for it's un-optimized state.cheers

author: Zero999
author_rank: Super Contributor
timestamp: September 21, 2010, 07:13:33 am
content: I think you shoud've written the numbers in binary not hexadecimal because it would make the code easier to understand.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: September 21, 2010, 07:48:39 am
content: QuoteEDN is a magazine for electronics professionals, not newbies. Publishing something as basic as this in such a publication shows the editorial staff are clueless or desperate.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: September 21, 2010, 07:54:15 am
content: Quote from: jpwack on September 21, 2010, 03:16:10 amThat's way less then un-optimised - Read up on arrays....Code:const char sevenseg={0xE7,0x84,0xD3,0xD6,0xB4,0x76,0x77,0xc4,0xF7,0XF6,0xF5,0x37,0x63,0x97,0x73,0x71};ledsegs=sevenseg[digit & 0x0f];

author: jpwack
author_rank: Contributor
timestamp: September 21, 2010, 10:59:50 pm
content: Quote from: mikeselectricstuffwoah, talking about optimizationand to make it compatible with my shitty function:Code:const unsigned char sevenseg={0xE7,0x84,0xD3,0xD6,0xB4,0x76,0x77,0xC4,0xF7,0XF6,0xF5,0x37,0x63,0x97,0x73,0x71};#define sevensd_number(__NUMBER__); sevenseg[__NUMBER__ & 0x0F];#define sevensd_number_dot(__NUMBER__); ((sevenseg[__NUMBER__ & 0x0F]) & 0x8);where is our money?