Display counter using Arduino - English
- Questions posted on Forums
- Arduino Tutorials - English
-
Regarding count value
Respected Sir/Madam When I try to upload the sketch given in the tutorial, when I press the pushbutton for the first time a count value of 0 is displayed. It should show as 1. Is (++count) or (count++) correct?
06-07M 20-30SJune 20, 2025, 10:01 a.m. mohnishb11
-
The ports in the program is different from the ports connected in the circuits diagram
Dear Sir/Madam ,In Display Counter Using Arduino partThe circuit diagram shows (in 0.50 sec) the ports 11,10,9,8 in the Arduino are connected to pin number 11,12,13,14.But in the program (in the line no.2) you have mentioned port numbers as 5,4,3,2. where in the these pins are unconnected.Kindly change the program or the code respectively.
00-01M 50-60SJune 20, 2025, 1:31 p.m. abib
-
use of if -else block
Is it possible to use if - else instead of while?
08-09M 40-50SJune 20, 2025, 2:34 p.m. Baranis
-
CKT3
While statement was used to stop the count , so can't we use break statement ?
06-07M 10-20SJune 20, 2025, 1:31 p.m. vivekkumarcs123@gmail.com
-
1
Overview of Arduino -
2
Electronic components and connections -
3
Introduction to Arduino -
4
Arduino components and IDE -
5
First Arduino Program -
6
Arduino with Tricolor LED and Push button -
7
Arduino with LCD -
Display counter using Arduino -
9
Seven Segment Display -
10
Pulse Width Modulation -
11
Analog to Digital Conversion -
12
Wireless Connectivity to Arduino -
13
Introduction to IoT -
14
Sending data to the cloud using IoT devices -
15
Assembly of Robot -
16
Robot Control using Bluetooth -
17
Assembly programming through Arduino -
18
Digital Logic Design with Arduino -
19
AVR-GCC programming through Arduino -
20
Interfacing LCD through AVR-GCC programming -
21
Mixing Assembly and C programming -
22
Getting Ready for Arduino FLOSS -
23
Arduino Programming with Scilab and Xcos -
24
Arduino Programming with Python -
25
Arduino Programming with Julia -
26
Arduino Programming with OpenModelica -
27
Arduino on Cloud
Questions posted on ST Forums:
Outline:
Connect an LCD and a Push button to Arduino board. Use the same circuit created earlier using Arduino and LCD Add a pushbutton and make a simple counter Learn the connection circuit details See the live setup of the connection Write a program in the Arduino IDE write the code for void loop write a simple if statement to check whether the pushbutton is pressed or not Compile and upload the program See that pushbutton is working successfully Modify the program to set a counter Explain the error that occurs Write a while statement Again compile and upload the program Output: count is increased whenever the button is pressed