<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Arduino 2-Digit 7-Segment Display with Buttons &#124; Part 4</title>
	<atom:link href="http://www.tinkerhobby.com/arduino-2-digit-7-segment-display-with-buttons/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tinkerhobby.com/arduino-2-digit-7-segment-display-with-buttons/</link>
	<description>Fun hobby electronics projects for novice makers</description>
	<lastBuildDate>Fri, 04 May 2012 17:44:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Natalia</title>
		<link>http://www.tinkerhobby.com/arduino-2-digit-7-segment-display-with-buttons/#comment-45</link>
		<dc:creator>Natalia</dc:creator>
		<pubDate>Sat, 31 Mar 2012 09:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.theelectronicshobbyist.com/blog/?p=267#comment-45</guid>
		<description>Hi Ronald,

check http://www.theelectronicshobbyist.com/blog/phase-0-of-the-ipon-project/ for an example of how I used sound output in response to an input signal from a switch and a force sensor. I played a more elaborate sound, but you can output only a buzzing sound if you want (by not varying the frequency like I did).</description>
		<content:encoded><![CDATA[<p>Hi Ronald,</p>
<p>check <a href="http://www.theelectronicshobbyist.com/blog/phase-0-of-the-ipon-project/" rel="nofollow">http://www.theelectronicshobbyist.com/blog/phase-0-of-the-ipon-project/</a> for an example of how I used sound output in response to an input signal from a switch and a force sensor. I played a more elaborate sound, but you can output only a buzzing sound if you want (by not varying the frequency like I did).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronald</title>
		<link>http://www.tinkerhobby.com/arduino-2-digit-7-segment-display-with-buttons/#comment-44</link>
		<dc:creator>ronald</dc:creator>
		<pubDate>Sat, 31 Mar 2012 09:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.theelectronicshobbyist.com/blog/?p=267#comment-44</guid>
		<description>hi there,
 i was able to experiment and add some to your given code and it works to my expectation ...
int val = digitalRead(BTN);
if (val == HIGH) {
  if (count&lt;99) count++;
  else count = 00;
unitsDigit = count % 10;
tenthsDigit = count / 10;
delay(10);

will try your suggestions if same result will came out.. I&#039;am still on a learning stage
 thanks a lot..
btw,
if you could suggest how to include alarm or buzzer (a ding dong i guest ^_^) once button press....</description>
		<content:encoded><![CDATA[<p>hi there,<br />
 i was able to experiment and add some to your given code and it works to my expectation &#8230;<br />
int val = digitalRead(BTN);<br />
if (val == HIGH) {<br />
  if (count&lt;99) count++;<br />
  else count = 00;<br />
unitsDigit = count % 10;<br />
tenthsDigit = count / 10;<br />
delay(10);</p>
<p>will try your suggestions if same result will came out.. I&#039;am still on a learning stage<br />
 thanks a lot..<br />
btw,<br />
if you could suggest how to include alarm or buzzer (a ding dong i guest ^_^) once button press&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natalia</title>
		<link>http://www.tinkerhobby.com/arduino-2-digit-7-segment-display-with-buttons/#comment-43</link>
		<dc:creator>Natalia</dc:creator>
		<pubDate>Fri, 30 Mar 2012 10:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.theelectronicshobbyist.com/blog/?p=267#comment-43</guid>
		<description>Hi Ronald,

the easiest way to do this is to instead of using the variable count itself as the number to display, use &quot;count % 100&quot;, which will yeld 0 when count is 100, 1 when count is 101, and so on. Kinda like you did using the modulo operation on the tens unit display.

So you can create another variable, say &quot;display&quot;, which will be &quot;display = count % 100;&quot;, and then instead of using count you use display. (as in &quot;unitsDigit = display % 10;&quot;) does that make sense? let me know how that works.</description>
		<content:encoded><![CDATA[<p>Hi Ronald,</p>
<p>the easiest way to do this is to instead of using the variable count itself as the number to display, use &#8220;count % 100&#8243;, which will yeld 0 when count is 100, 1 when count is 101, and so on. Kinda like you did using the modulo operation on the tens unit display.</p>
<p>So you can create another variable, say &#8220;display&#8221;, which will be &#8220;display = count % 100;&#8221;, and then instead of using count you use display. (as in &#8220;unitsDigit = display % 10;&#8221;) does that make sense? let me know how that works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natalia</title>
		<link>http://www.tinkerhobby.com/arduino-2-digit-7-segment-display-with-buttons/#comment-42</link>
		<dc:creator>Natalia</dc:creator>
		<pubDate>Fri, 30 Mar 2012 10:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.theelectronicshobbyist.com/blog/?p=267#comment-42</guid>
		<description>Hi,
unfortunately I don&#039;t do these circuits... yet. I&#039;m only a beginner in electronics, and so far I&#039;m most comfortable doing microcontroller programming... sorry.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
unfortunately I don&#8217;t do these circuits&#8230; yet. I&#8217;m only a beginner in electronics, and so far I&#8217;m most comfortable doing microcontroller programming&#8230; sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronald</title>
		<link>http://www.tinkerhobby.com/arduino-2-digit-7-segment-display-with-buttons/#comment-41</link>
		<dc:creator>ronald</dc:creator>
		<pubDate>Fri, 23 Mar 2012 13:09:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.theelectronicshobbyist.com/blog/?p=267#comment-41</guid>
		<description>hi Natalie, I found out that after the count reach 99 ,it displays some number  and none number characters ..how to modify this code so that when count reach 99 it reset to 00 and count again when button is press...

br,
ronald</description>
		<content:encoded><![CDATA[<p>hi Natalie, I found out that after the count reach 99 ,it displays some number  and none number characters ..how to modify this code so that when count reach 99 it reset to 00 and count again when button is press&#8230;</p>
<p>br,<br />
ronald</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronald</title>
		<link>http://www.tinkerhobby.com/arduino-2-digit-7-segment-display-with-buttons/#comment-40</link>
		<dc:creator>ronald</dc:creator>
		<pubDate>Fri, 23 Mar 2012 12:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.theelectronicshobbyist.com/blog/?p=267#comment-40</guid>
		<description>wow it works like a charm ......
thank you very much Natalie! your the best...

br,
ronald</description>
		<content:encoded><![CDATA[<p>wow it works like a charm &#8230;&#8230;<br />
thank you very much Natalie! your the best&#8230;</p>
<p>br,<br />
ronald</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronald</title>
		<link>http://www.tinkerhobby.com/arduino-2-digit-7-segment-display-with-buttons/#comment-39</link>
		<dc:creator>ronald</dc:creator>
		<pubDate>Fri, 23 Mar 2012 12:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.theelectronicshobbyist.com/blog/?p=267#comment-39</guid>
		<description>thanks Natalia, i will try your suggestions ....will post result after..

br,
ronald</description>
		<content:encoded><![CDATA[<p>thanks Natalia, i will try your suggestions &#8230;.will post result after..</p>
<p>br,<br />
ronald</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natalia</title>
		<link>http://www.tinkerhobby.com/arduino-2-digit-7-segment-display-with-buttons/#comment-38</link>
		<dc:creator>Natalia</dc:creator>
		<pubDate>Fri, 23 Mar 2012 08:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.theelectronicshobbyist.com/blog/?p=267#comment-38</guid>
		<description>Hi Ronald,

to have the system count up using just one button you will keep the units digit to be the modulus (%) of the current count by 10, and the tenths digit to be the integer division (/) of the current count by 10. Something like:

// check button
  int val = digitalRead(BTN);
  if (val == HIGH) {
    count++;
    unitsDigit = count % 10;
    tensDigit = count / 10;
    delay(10);
  }</description>
		<content:encoded><![CDATA[<p>Hi Ronald,</p>
<p>to have the system count up using just one button you will keep the units digit to be the modulus (%) of the current count by 10, and the tenths digit to be the integer division (/) of the current count by 10. Something like:</p>
<p>// check button<br />
  int val = digitalRead(BTN);<br />
  if (val == HIGH) {<br />
    count++;<br />
    unitsDigit = count % 10;<br />
    tensDigit = count / 10;<br />
    delay(10);<br />
  }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronald</title>
		<link>http://www.tinkerhobby.com/arduino-2-digit-7-segment-display-with-buttons/#comment-37</link>
		<dc:creator>ronald</dc:creator>
		<pubDate>Wed, 21 Mar 2012 07:36:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.theelectronicshobbyist.com/blog/?p=267#comment-37</guid>
		<description>hi! this helps a lot for a beginner like ,can i ask how to modify the code having only one button to control the count one at a time up to 99 count?

thanks very much!
best regards, 
ronald</description>
		<content:encoded><![CDATA[<p>hi! this helps a lot for a beginner like ,can i ask how to modify the code having only one button to control the count one at a time up to 99 count?</p>
<p>thanks very much!<br />
best regards,<br />
ronald</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: computer</title>
		<link>http://www.tinkerhobby.com/arduino-2-digit-7-segment-display-with-buttons/#comment-36</link>
		<dc:creator>computer</dc:creator>
		<pubDate>Tue, 20 Mar 2012 08:19:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.theelectronicshobbyist.com/blog/?p=267#comment-36</guid>
		<description>Hi natalia!!Immediatly question??
Design a logic circuit (?) that can convert the (five-bit) output of the full adder into appropriate values
for seven segment decoders in order to show the resulting sum on display devices as decimal values.
Examples:
+ if A=1111 (15) and B=0101 (5) then the values on the displays should be (15+5=20) Display1=2
and Display0=0.
+ if A=1010 (10) and B=1000 (8) then the values on the displays should be (10+8=18) Display1=1
and Display0=8.
+ if A=0010 (2) and B=0111 (7) then the values on the displays should be (2+7=9) Display1=0 and
Display0=9.
1</description>
		<content:encoded><![CDATA[<p>Hi natalia!!Immediatly question??<br />
Design a logic circuit (?) that can convert the (five-bit) output of the full adder into appropriate values<br />
for seven segment decoders in order to show the resulting sum on display devices as decimal values.<br />
Examples:<br />
+ if A=1111 (15) and B=0101 (5) then the values on the displays should be (15+5=20) Display1=2<br />
and Display0=0.<br />
+ if A=1010 (10) and B=1000 (8) then the values on the displays should be (10+8=18) Display1=1<br />
and Display0=8.<br />
+ if A=0010 (2) and B=0111 (7) then the values on the displays should be (2+7=9) Display1=0 and<br />
Display0=9.<br />
1</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.tinkerhobby.com @ 2012-05-18 14:49:48 -->
