tag:blogger.com,1999:blog-1796821149545544169.post8482709250570749566..comments2022-03-25T08:40:53.293+01:00Comments on Limitless: 4-digit-7-segment displayMarkhttp://www.blogger.com/profile/03398908373723972583noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-1796821149545544169.post-43033842904109303812017-03-14T10:17:02.360+01:002017-03-14T10:17:02.360+01:00In my experience it is usually some hardware issue...In my experience it is usually some hardware issue, namely miss-connected wires or similar. Can you check those? Sometimes removing all wires and reconnecting them can helpMarkhttps://www.blogger.com/profile/03398908373723972583noreply@blogger.comtag:blogger.com,1999:blog-1796821149545544169.post-82481216377517949962017-03-14T05:05:22.176+01:002017-03-14T05:05:22.176+01:00Sir, I am Satyaban and stay in India where proper ...Sir, I am Satyaban and stay in India where proper guidance on Arduino is rarely available. Last year, I made a project (digital clock)<br />with Arduino Uno and 4 digit seven segment (12 pins) display (common anode) which ran successfully, But recently I found that<br />the project is not working with the same code and Board. Can I get any help please? Regards.Anonymoushttps://www.blogger.com/profile/11226478849826528308noreply@blogger.comtag:blogger.com,1999:blog-1796821149545544169.post-44803411122815564692017-01-12T13:03:37.543+01:002017-01-12T13:03:37.543+01:00Reverse the booleans in the beginning of loop():
...Reverse the booleans in the beginning of loop():<br /><br />void loop()<br />{<br />for(int i=0; i < 4; i++) //run on the digits<br />{<br /> for(int j=0; j < 8; j++) digitalWrite(j+26, false); //change it to false<br />digitalWrite(22+i, false); //and here also<br />digitalWrite(22+(i+1)%4, true); //to true here <br />digitalWrite(22+(i+2)%4, true); //and here<br />digitalWrite(22+(i+3)%4, true); //and here<br /><br />for(int j=0; j < 8; j++)<br />{<br />digitalWrite(j+26, !show[i][j]); //either reverse the array, or just negate here<br />}<br />delay(1);<br />}Markhttps://www.blogger.com/profile/03398908373723972583noreply@blogger.comtag:blogger.com,1999:blog-1796821149545544169.post-86899677035528097942017-01-11T21:52:33.983+01:002017-01-11T21:52:33.983+01:00How do you transform this to work with common cath...How do you transform this to work with common cathode displays?JohnHartseyhttps://www.blogger.com/profile/09576144020483035211noreply@blogger.comtag:blogger.com,1999:blog-1796821149545544169.post-68063164782179651522016-01-29T20:34:37.870+01:002016-01-29T20:34:37.870+01:00I made a modified version that counts, It handles ...I made a modified version that counts, It handles pins differently as well. <br /><br />https://github.com/xt23/7-seg-4-dig-timer/tree/masterxt23https://www.blogger.com/profile/16872289184494587861noreply@blogger.comtag:blogger.com,1999:blog-1796821149545544169.post-34298011175775389632015-11-04T08:23:00.405+01:002015-11-04T08:23:00.405+01:00this helped me understand how to use the 7 segment...this helped me understand how to use the 7 segment . thanks a lot :)kreojinehttps://www.blogger.com/profile/16100336908534434941noreply@blogger.comtag:blogger.com,1999:blog-1796821149545544169.post-1419385369946515192014-02-04T15:10:00.627+01:002014-02-04T15:10:00.627+01:00Hello,
of course, that would just need some arduin...Hello,<br />of course, that would just need some arduino code, like this:<br /><br />(..) //all previous part<br />int number=0;<br />loop()<br />{<br />//original part stays untouched<br /><br />//change the show array regarded to the number (aka say to it which leds should be on by a 1...)<br /><br />number++;<br />}<br /><br />Sorry, now I don't have more time, to specify it more. If it doesn't enough or doesn't work, feel free to ask again :)<br /><br />MarkMarkhttps://www.blogger.com/profile/03398908373723972583noreply@blogger.comtag:blogger.com,1999:blog-1796821149545544169.post-13337702926182314492014-02-03T20:01:29.863+01:002014-02-03T20:01:29.863+01:00Hello, can you make it count up too?Hello, can you make it count up too?Manlerhttps://www.blogger.com/profile/06063135665599696414noreply@blogger.comtag:blogger.com,1999:blog-1796821149545544169.post-84704784916429585072014-01-21T18:13:35.075+01:002014-01-21T18:13:35.075+01:00Oups, sorry, I wasn't clear. For numbering the...Oups, sorry, I wasn't clear. For numbering the pins of the display use this image: http://1.bp.blogspot.com/-JN2WLnrPo7w/UVYMPei-oyI/AAAAAAAAAIY/afge-t4ZyWw/s1600/7segment2.png<br />And for the corresponding pins on the arduino, see this part of the post:<br />//Declare what pins are connected to the digits<br /> int digit1 = 2; //Pin 12 on my 4 digit display --> it means connect the 12th pin of the display to the 2nd pin of the arduino<br /> int digit2 = 3; //Pin 9 on my 4 digit display<br /> int digit3 = 4; //Pin 8 on my 4 digit display<br /> int digit4 = 5; //Pin 6 on my 4 digit display<br /> <br /> //Declare what pins are connected to the segments<br /> int segA = 6; //Pin 11 on my 4 digit display<br /> int segB = 7; //Pin 7 on my 4 digit display<br /> int segC = 8; //Pin 4 on my 4 digit display<br /> int segD = 9; //Pin 2 on my 4 digit display<br /> int segE = 10; //Pin 1 on my 4 digit display<br /> int segF = 11; //Pin 10 on my 4 digit display<br /> int segG = 12; //Pin 5 on my 4 digit display<br /> int segH= 13; //Pin 3 on my 4 digit display<br /><br />Is it ok right now? If anything still unclear, feel free to ask :)<br /><br />MarkMarkhttps://www.blogger.com/profile/03398908373723972583noreply@blogger.comtag:blogger.com,1999:blog-1796821149545544169.post-69967333149055814642014-01-20T11:33:13.431+01:002014-01-20T11:33:13.431+01:00I don't understand the wiring. Can you help ?I don't understand the wiring. Can you help ? Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1796821149545544169.post-48008906964854444692013-09-01T21:02:54.157+02:002013-09-01T21:02:54.157+02:00Yes, theoretically I should, but it worked this wa...Yes, theoretically I should, but it worked this way too. <br /><br />But if you would use it for hours, you should definitely use resistors.<br /><br />MarkMarkhttps://www.blogger.com/profile/03398908373723972583noreply@blogger.comtag:blogger.com,1999:blog-1796821149545544169.post-66107814352852487062013-09-01T20:54:38.836+02:002013-09-01T20:54:38.836+02:00Looks good away to work through it now. Only quest...Looks good away to work through it now. Only questions, shouldn't you have resistors inline with the leds?Ryanhttps://www.blogger.com/profile/13372984540048283791noreply@blogger.com