SparkFun Electronics Commentsurn:uuid:214d0e4e-f1b1-d287-ce26-ac5b4c9f82492015-08-02T14:27:38-06:00SparkFun ElectronicsHuStone on COM-09766 - 7-Segment Serial Display - RedHuStoneurn:uuid:d9e297f7-6c0d-bfe4-cccd-5571f62a23472012-10-29T19:59:11-06:00<p>Is there a tutorial for this anywhere?</p>casestudies on COM-09766 - 7-Segment Serial Display - Redcasestudiesurn:uuid:426e13ab-cb0b-9d19-e02a-c28ba43a735e2012-10-10T20:24:05-06:00<p>The file doesn&rsquo;t seem to be located at the link mentioned in this post. Does it still exist? I&rsquo;d love to use your code if you&rsquo;re willing to share. If not, I&rsquo;ll try writing my own library. Thanks!</p>MikeGrusin on COM-09766 - 7-Segment Serial Display - RedMikeGrusinurn:uuid:309e2bee-3964-2d7e-41cc-d227880c42c72012-10-05T11:38:41-06:00<p>I can&rsquo;t help you in COBOL, but in C / Arduino you would use one of the standard functions to turn the number into characters. Off the top of my head, you could use itoa (integer to ASCII) or sprintf (print a formatted value to a string). Here&rsquo;s an example of using sprintf, which has the handy feature of being able to right-justify the result using leading zeroes or spaces (which is perfect for this display):</p>
<pre><code>int value = 1234;
char string[4];
sprintf(string,"%04d",value); // print the decimal (d) value into string,
// with a width of four characters and leading zeroes
Serial.print(string); // prints "1234"
</code></pre>ArdMac on COM-09766 - 7-Segment Serial Display - RedArdMacurn:uuid:e3d2588f-5415-80f0-9428-4174a38011f62012-10-04T19:00:54-06:00<p>I am currently using this display to show a seconds timer and it works great.</p>
<p>I would like to use to to display the distance in inches from my ulltrasonic distance sensor.
The sensor returns inches as a 4 byte int data field.
How do I redefine/split the int data into four byte fields to send to the serial display.</p>
<p>In COBOL</p>
<p>01 inches-distance.
04 display1. Pic 9.
04 display2. Pic 9.
04. Display3. Pic 9.
04. Display4. Pic 9.</p>
<p>Please ignore the stray periods- my iPad just stuck them in there</p>
<p>Thanks
Bruce</p>Customer #27746 on COM-09766 - 7-Segment Serial Display - RedCustomer #27746urn:uuid:5b14c4d1-da24-2afc-fbdd-3571b7acc8242012-08-28T08:37:13-06:00<p>Great job Austin! Thank you.</p>JamesCarruthers on COM-09766 - 7-Segment Serial Display - RedJamesCarruthersurn:uuid:dc036b17-282d-b132-f2a2-f7a3ebd9276f2012-07-07T15:10:56-06:00<p>To give people a head start with the SPI — this displays &ldquo;1234&rdquo;</p>
<p>Most important part is to turn down the SPI clock.</p>
<pre><code>#include SPI.h //put brackets around here as usual!
const int slaveSelectPin = 10;
void setup() {
pinMode (slaveSelectPin, OUTPUT);
SPI.begin();
SPI.setBitOrder(MSBFIRST);
SPI.setDataMode(SPI_MODE0);
SPI.setClockDivider(SPI_CLOCK_DIV128);
}
void loop() {
digitalWrite(slaveSelectPin,LOW);
SPI.transfer(1);
SPI.transfer(2);
SPI.transfer(3);
SPI.transfer(4);
digitalWrite(slaveSelectPin,HIGH);
}
</code></pre>Customer #103796 on COM-09766 - 7-Segment Serial Display - RedCustomer #103796urn:uuid:00f17b49-447a-7fe2-6c4f-3d8e5da9ae8f2012-06-19T23:12:46-06:00<p>Is there a recommended bezel or method for mounting this in a panel?</p>AustinSaintAubin on COM-09766 - 7-Segment Serial Display - RedAustinSaintAubinurn:uuid:eb05bf30-08a2-0cc4-ead7-4f30bed07b852012-05-31T22:05:21-06:00<p>Just finish a library for this display: https://www.dropbox.com/s/ssvydwuf3js3cb5/Serial7.zip
It has a lot of features and works great on the Arduino UNO.
Also supports the ATtiny45 &amp; ATtiny85 (except floating point math).</p>magnethead on COM-09766 - 7-Segment Serial Display - Redmagnetheadurn:uuid:798a723b-4d8a-e9c9-acaa-81efde974e4f2012-05-07T14:33:02-06:00<p>Having issues with the last digit being almost unlit. Sending a command such as &ldquo;x603&rdquo; with the second decimal on, makes the 3 be about 30% as bright as the 6, while the decimal is blinding. When I get home, I will try a &ldquo;603x&rdquo; command with no decimals and see how it compares. May have to just make my own (living 3 blocks from Mouser, that&rsquo;s easier done than said)&hellip;and incorporate current limiting resistors on it.</p>Berge472 on COM-09766 - 7-Segment Serial Display - RedBerge472urn:uuid:e01e36bc-bcaf-2df3-f32d-eebeb412bc782012-05-01T11:57:38-06:00<p>I have been using a set of these and I am currently building a board and I want to build this onto the board. how would I load the source code to the atmeaga? is it the same as flashing a bootloader?</p>liudr on COM-09766 - 7-Segment Serial Display - Redliudrurn:uuid:85504910-2de6-a8d2-ea61-9ba464f262812012-04-02T16:18:34-06:00<p>Mike, I somehow ended up here with the same question in my head. Opened their design file to confirm there&rsquo;s no current-limiting resistors and the only silver lining is there are resistors in the display. But I would rather ask SPE engineers that.</p>Grumpy_Mike on COM-09766 - 7-Segment Serial Display - RedGrumpy_Mikeurn:uuid:c3289199-aae1-17c2-fb92-b0e54b07350b2012-04-01T13:06:51-06:00<p>Why are there no current limiting resistors in the seven segment display. This will over load the output pins of the ATmega 328, you only need to draw 40mA to start causing damage, or don&rsquo;t you mind destroying the chip because you can sell folks another one?</p>33Warlord on COM-09766 - 7-Segment Serial Display - Red33Warlordurn:uuid:fb99275a-fe9b-68f4-0300-e696a4fb033a2012-02-17T13:15:01-07:00<p>Thanks for the quick reply.</p>
<p>I probably should have started my comment a little more positive. I really like this board, which is why I was so frustrated when trying to mount it. (If I didn&rsquo;t like it, I would just use something else).</p>
<p>And yes, you folks are doing an awesome job of adding mounting holes onto your newer boards. I can deal without mounting holes for the vast majority of boards. It just these &lsquo;external facing&rsquo; boards where the lack of mounting holes can be frustrating.</p>
<p>And sorry to assume a lack of demand for compact size, I was just looking at comments. I&rsquo;m sure you get a large volume of email requests in addition to these.</p>RobertC. on COM-09766 - 7-Segment Serial Display - RedRobertC.urn:uuid:13f3ceca-4f93-5cd2-fbfe-15486fddbacf2012-02-17T12:00:43-07:00<p>Actually, we get a LOT of people asking for smaller designs. We also get a lot of people asking for mounting holes.</p>
<p>And as I said above, almost all of our new breakouts have mounting holes now.</p>33Warlord on COM-09766 - 7-Segment Serial Display - Red33Warlordurn:uuid:c02b9751-fece-5b87-3359-ad4c655675c22012-02-17T11:16:52-07:00<p>&ldquo;Think about all of the extra wasted space that you would need to add stand off holes to this board.&rdquo;</p>
<p>I realize this is a very old post, but it&rsquo;s not wasted space if its required to for the board to be useful.</p>
<p>You could also save a lot of &lsquo;space&rsquo; by removing the 7-segment displays. Why don&rsquo;t you remove those? Because they&rsquo;re needed for the module to be useful. The same thing is true for a mounting method. (its needed for this module to be useful beyond prototyping.)</p>
<p>This isn&rsquo;t some module that you can just hot glue to the side of a project box and be done. This module needs to be mounted in a way that is visible from outside the box and also flush with the box edge. This is very difficult to do when the current module.</p>
<p>You mention &ldquo;we are trying to build stuff to be compact.&rdquo; Who is demanding these products be compact? I don&rsquo;t see a single person asking for a smaller board. Yet I see many asking for mounting options.</p>33Warlord on COM-09766 - 7-Segment Serial Display - Red33Warlordurn:uuid:c7abb4f9-39c3-8e64-0184-d8821586394a2012-02-17T11:03:35-07:00<p>Sparkfun - Can you at least give us a thru hole connection in each corner of the board where I can solder a single pin? This would at least allow me to rig up standoffs using 1-pin headers.</p>MikeR on COM-09766 - 7-Segment Serial Display - RedMikeRurn:uuid:fe075bca-578e-c897-3693-04ac15bea3ea2012-02-11T11:27:47-07:00<p>Nathan explains the methodology in the arduino source for the bare 7-segment display.
http://www.sparkfun.com/products/9483</p>MikeR on COM-09766 - 7-Segment Serial Display - RedMikeRurn:uuid:f7295f7b-37e9-f90a-2424-233ce92b5aff2012-01-16T07:25:18-07:00<p>That 10k is pulling the reset line up, not limiting current to the package. I can only assume it&rsquo;s PWM with a low enough duty cycle. The reason I ask is that I was considering building a similar &lsquo;backpack&rsquo; with a couple of extra things on board, using the same ATMega to drive the display as run my own program, instead of having two 328&rsquo;s doing what one should be capable of. I think that by using a 1/7 duty cycle, I can protect all segments with only 4 resistors. I will probably go this route since I can&rsquo;t find anything outlining how to &lsquo;safely&rsquo; power leds from 5v with no resistor (only pwm).</p>magnethead on COM-09766 - 7-Segment Serial Display - Redmagnetheadurn:uuid:ddd0d747-cbb4-3c4e-9a37-7beae93be64b2012-01-12T00:51:08-07:00<p>well, you&rsquo;re out of stock now, it&rsquo;d be a great time for mounting holes&hellip;just saying.</p>magnethead on COM-09766 - 7-Segment Serial Display - Redmagnetheadurn:uuid:8b9bc7c6-02aa-e37c-6ec5-19c2122161082012-01-12T00:49:22-07:00<p>please be giving us mounting holes&hellip;please be giving us mounting holes&hellip;.<em>crosses fingers</em></p>magnethead on COM-09766 - 7-Segment Serial Display - Redmagnetheadurn:uuid:314d6934-6031-74ec-53ba-932ca5561fd12012-01-12T00:48:56-07:00<p>My best guess is according to the schematic, VCC has a 10K resistor on it. So I think they&rsquo;re limiting the current to the whole package.</p>MikeR on COM-09766 - 7-Segment Serial Display - RedMikeRurn:uuid:96c47cb8-76e6-ca4a-7278-d86f7861f1f32012-01-09T21:36:50-07:00<p>This may be a daft question, but how are these boards powering the leds without current limiting resistors? Does the ATMega not supply enough current to worry, or is PWM limiting enough?</p>magnethead on COM-09766 - 7-Segment Serial Display - Redmagnetheadurn:uuid:e7d51b5d-c55c-4ba6-8b40-1f46117c36032011-12-30T23:37:10-07:00<p>Do I have to send the ASCII hex, or can I just simply send the actual number/word over serial? Thanks.</p>CalMariner on COM-09766 - 7-Segment Serial Display - RedCalMarinerurn:uuid:3bd402e8-aada-81db-d77d-2875f79eddbe2011-12-11T04:09:29-07:00<p>Sparkfun:</p>
<p>The manual gives instructions for addressing specific LED segments (A-G), but does not explain where those segments are. I was able to figure this out, but for a beginner, the product documentation should be as complete as possible.</p>CalMariner on COM-09766 - 7-Segment Serial Display - RedCalMarinerurn:uuid:0cc17e30-49bc-5fb4-aec7-d5f7d56230012011-12-11T04:09:29-07:00<p>Sparkfun:</p>
<p>The manual gives instructions for addressing specific LED segments (A-G), but does not explain where those segments are. I was able to figure this out, but for a beginner, the product documentation should be as complete as possible.</p>jmitchiner on COM-09766 - 7-Segment Serial Display - Redjmitchinerurn:uuid:56f37f00-a8ac-7bc3-49d6-5ec18fba27432011-05-26T19:25:04-06:00<p>I was trying to figure out the best way to interface with the display through the serial port. A great page that explains this is available at: <a href="http://www.arunet.co.uk/tkboyd/ec/ec1led4x7ser.htm" rel="nofollow" >http://www.arunet.co.uk/tkboyd/ec/ec1led4x7ser.htm</a></p>JasonWMcB on COM-09766 - 7-Segment Serial Display - RedJasonWMcBurn:uuid:61f0381c-6de1-819e-5097-86e5242f93d62011-04-21T11:26:48-06:00<p>I peeled mine off, they seem to be working just fine.</p>JustinHoMi on COM-09766 - 7-Segment Serial Display - RedJustinHoMiurn:uuid:cf8b1073-8e6e-734f-182a-2115fcb1c7152011-04-20T14:11:32-06:00<p>Is the plastic supposed to peel off the display? Mine is starting to come off at the corners, but I&rsquo;m not sure if it&rsquo;s just protective or actually functional :)</p>JustinHoMi on COM-09766 - 7-Segment Serial Display - RedJustinHoMiurn:uuid:2523ac14-d3cb-98a2-d05c-91ed55fdce322011-04-08T18:00:58-06:00<p>It&rsquo;s a shame that this thing doesn&rsquo;t have mounting holes. It would also be nice if the RX, VCC, and GND pins were adjacent to each other, rather than on the opposite side of the board. It would make it cleaner to wire up for those not using SPI.<br/>
This display could make a nice arduino clone is they brought out TX and a couple other pins. It would also be nice if it had a crystal.<br/>
This display does seem to work well so far. It&rsquo;s bigger and easier to read than I expected. It&rsquo;s going in a racecar as a GPS speedo and lap timer, so we&rsquo;ll see how it holds up to heat.</p>JasonWMcB on COM-09766 - 7-Segment Serial Display - RedJasonWMcBurn:uuid:d203714e-3d1b-60b3-c673-dcfefda220b82011-02-22T15:13:13-07:00<p>Great little device. I will be using these when ever the application calls for 7 segment displays. I was concerned about some of the poor ratings on this product, but decided to try it any way. I was able to get the product to work both on Serial and SPI. The project I was working was time sensitive, so I decided to use SPI because it took less time to send the data to the diplay. I started to see some of the problems that others were complaining about after I turned off some of the debugging lines of my application. After systematically enabling parts of my debugging routine I found that my Slave Select (CSN) pin was not turning off quickly because it was picking up crosstalk from ungrounded wires leading out to the display. Once I properly grounded my wires the display works great. No dings to the others that gave poor reviews but it is working great for me. As for the stand-off mounts, I&rsquo;d like to have them so I&rsquo;ll have to wait until revison 3.</p>rfordh on COM-09766 - 7-Segment Serial Display - Redrfordhurn:uuid:27bdfc52-9435-0ff3-b975-23c3db1232fa2011-02-02T18:34:35-07:00<p>I don&rsquo;t have the display to try it, but I would assume so. The SPI bus pins should allow you to reprogram it using an ISP programmer. The pins you need are the 6 on the right (when looking at the bottom of the board). Note that the silkscreen reads &ldquo;SI&rdquo; and &ldquo;SO&rdquo; for the MOSI and MISO pins.</p>jstanley0 on COM-09766 - 7-Segment Serial Display - Redjstanley0urn:uuid:bb27f04a-ae48-17b1-64cf-1afd797550332011-01-18T15:35:03-07:00<p>I assume this thing can be reflashed? I&rsquo;m interested in making this the brain of a project, not just the display&hellip;</p>hads on COM-09766 - 7-Segment Serial Display - Redhadsurn:uuid:7a0c2572-3101-92e3-e5ef-5316156e30882010-11-30T18:35:30-07:00<p>Great stuff John, cool project.</p>KiwiJohn on COM-09766 - 7-Segment Serial Display - RedKiwiJohnurn:uuid:6f249502-fe43-6338-4d2b-863b6abef3732010-11-30T16:29:50-07:00<p>I brought two of these with a very specific project in mind and they were perfect for the job.&lt;br /><br/>
&lt;br /><br/>
I built an 8 digit countdown timer into a hard hat for a Stag night. Made the project very easy to implement.&lt;br /><br/>
&lt;br /><br/>
Advice, make sure you don&rsquo;t leave the unused input pins floating.&lt;br /><br/>
&lt;br /><br/>
Details of my project: <a href="http://www.john.geek.nz/2010/11/stag-hat-with-a-difference" rel="nofollow" >http://www.john.geek.nz/2010/11/stag-hat-with-a-difference</a></p>KiwiJohn on COM-09766 - 7-Segment Serial Display - RedKiwiJohnurn:uuid:135ebccb-f1db-74c0-00eb-8f9b3a488de22010-11-30T16:27:41-07:00<p>I brought two of these with a very specific project in mind and they were perfect for the job.&lt;br /><br/>
&lt;br /><br/>
I built an 8 digit countdown timer into a hard hat for a Stag night. Made the project very easy to implement.&lt;br /><br/>
&lt;br /><br/>
Advice, make sure you don&rsquo;t leave the unused input pins floating.&lt;br /><br/>
&lt;br /><br/>
Details of my project: http://www.john.geek.nz/2010/11/stag-hat-with-a-difference&lt;br /><br/>
&lt;br /><br/>
&lt;br /><br/>
&lt;br /></p>RobertC. on COM-09766 - 7-Segment Serial Display - RedRobertC.urn:uuid:21a7a5e1-1fe0-47f0-cda9-5012d45ed02b2010-10-28T08:49:01-06:00<p>Noted. We are trying to do mounting holes on more of our boards.</p>Sacko on COM-09766 - 7-Segment Serial Display - RedSackourn:uuid:24d0984e-0777-1343-419a-2fbfc91c22d52010-10-28T06:54:54-06:00<p>I agree. Standoff mounts would be very nice to have on this module. I can&rsquo;t think of any applications that wouldn&rsquo;t involve mounting this to something.</p>Alan Burlison on COM-09766 - 7-Segment Serial Display - RedAlan Burlisonurn:uuid:3412d932-b906-d597-1435-d3c5076aee742010-08-28T13:22:12-06:00<p>The original datasheet says the SPI interface would run at 2MHz whereas it will only do 250KHz at best - and even then it won&rsquo;t ever be 100% reliable. The firmware is absolutely shocking, and (amongst other problems) the SPI ISR overruns. See <a href="http://bleaklow.com/2010/08/28/sparkfun_are_less_than_electrifying.html" rel="nofollow" >http://bleaklow.com/2010/08/28/sparkfun_are_less_than_electrifying.html</a> for the sorry details. My advice - avoid this product.</p>salsa on COM-09766 - 7-Segment Serial Display - Redsalsaurn:uuid:b76a5e6f-2f0e-5f83-4a83-5811b1f01f322010-06-28T01:55:51-06:00<p>Double-sided tape is destroyed when pried off, and does not compare to good old-fashioned standoffs and screws.</p>Pearce on COM-09766 - 7-Segment Serial Display - RedPearceurn:uuid:5f3b3edd-126d-4882-9056-4a0dd72ddd352010-06-18T09:24:21-06:00<p>That is correct, we will update the datasheet. Thanks for the heads up.</p>RoboKaren on COM-09766 - 7-Segment Serial Display - RedRoboKarenurn:uuid:ae129a6a-39ec-d7a9-175a-f6f8e711de592010-06-17T20:20:47-06:00<p>The manual says it using an ATMega168 while the description above says ATMega328. My guess is the manual is out of date and needs to be updated.<br/>
Just a quibble and if it&rsquo;s fixed, you can delete this comment.</p>salsa on COM-09766 - 7-Segment Serial Display - Redsalsaurn:uuid:40198a8a-4614-26cc-5ab3-ca77e00922972010-05-29T16:24:20-06:00<p>&ldquo;Think about all of the extra wasted space that you would need to add stand off holes to this board."<br/>
But with no mounting holes, 100% of the space is wasted for me&hellip;:( I have a hard time understanding how the compact size of this board is a plus for anyone. Please, make a board like this with standoff mounts!</p>MilesTag on COM-09766 - 7-Segment Serial Display - RedMilesTagurn:uuid:01ca4ad2-4fbc-fd6c-4d1e-f117faf260a82010-05-26T09:30:43-06:00<p>Don&rsquo;t overlook the usefulness of double-side foam tape. Very secure mounting for smaller boards, and it is still possible to pry the board off if needed for maintenance.</p>Shifted on COM-09766 - 7-Segment Serial Display - RedShiftedurn:uuid:d7fbba3a-ca79-0982-2f45-b5045791aa812010-05-21T21:20:17-06:00<p>Well you do need to strike a balance between size and function, these modules are great, but I wouldn&rsquo;t be tempted (as a SparkFun industrial customer) to put something like this in one of my mass produced products. Just because it&rsquo;s small, doesn&rsquo;t mean it&rsquo;s useful. It&rsquo;s kept me from using SFE parts in quite a few things. Take for example these Linux SBC&rsquo;s (<a href="https://specialcomp.com/calao/tny/index.htm" rel="nofollow" >https://specialcomp.com/calao/tny/index.htm</a>) and they managed to get mounting holes on those boards. Function and utility :) Just my opinion, keep it in mind for future products.</p>Single T on COM-09766 - 7-Segment Serial Display - RedSingle Turn:uuid:b5fbcd22-926f-9cbe-c5aa-2af541cb836c2010-05-21T16:58:54-06:00<p>You know, we would love to add stand off holes to everything. But allot of times it is simply size restrictions that hold us back. Think about all of the extra wasted space that you would need to add stand off holes to this board. I agree we need to have mounting options for as many products as possible. But when we are trying to build stuff to be compact, sometimes the mounting holes have to take a back seat.</p>Shifted on COM-09766 - 7-Segment Serial Display - RedShiftedurn:uuid:0a7af23b-9884-4114-ea2d-cd1ccceb0bca2010-05-21T15:34:00-06:00<p><strong><a href="account.php?id=11453" rel="nofollow" >salsa</a>:</strong> <em>That&rsquo;s a lot of board for $9! But, why no standoff mounts?</em><br/>
I think that&rsquo;s a big problem with a lot of the in-house developed stuff at SFE. Absolutely great products, but no practical way to mount them other than hanging things off the pins :(</p>salsa on COM-09766 - 7-Segment Serial Display - Redsalsaurn:uuid:6f402912-71d4-5b0b-1c2c-0410077725bb2010-05-21T13:27:59-06:00<p>That&rsquo;s a lot of board for $9! But, why no standoff mounts?</p>