Display counter using Arduino - English
- subtitles off
- captions off
- 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-30S mohnishb11
Answer last updated on: April 15, 2021, 5:32 p.m.
-
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-60S abib
Answer last updated on: April 8, 2021, 3:32 p.m.
-
use of if -else block
Is it possible to use if - else instead of while?
08-09M 40-50S Baranis
Answer last updated on: Feb. 8, 2020, 2:14 p.m.
-
CKT3
While statement was used to stop the count , so can't we use break statement ?
06-07M 10-20S vivekkumarcs123@gmail.com
Answer last updated on: Aug. 22, 2019, 5:11 p.m.
-
1Overview of Arduino
-
2Electronic components and connections
-
3Introduction to Arduino
-
4Arduino components and IDE
-
5First Arduino Program
-
6Arduino with Tricolor LED and Push button
-
7Arduino with LCD
-
Display counter using Arduino
-
9Seven Segment Display
-
10Pulse Width Modulation
-
11Analog to Digital Conversion
-
12Wireless Connectivity to Arduino
-
13Introduction to IoT
-
14Sending data to the cloud using IoT devices
-
15Assembly of Robot
-
16Robot Control using Bluetooth
-
17Assembly programming through Arduino
-
18Digital Logic Design with Arduino
-
19AVR-GCC programming through Arduino
-
20Interfacing LCD through AVR-GCC programming
-
21Mixing Assembly and C programming
-
22Getting Ready for Arduino FLOSS
-
23Arduino Programming with Scilab and Xcos
-
24Arduino Programming with Python
-
25Arduino Programming with Julia
-
26Arduino Programming with OpenModelica
-
27Arduino on Cloud
Questions posted on ST Forums:
26849 visits
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
Width: | 800 | Height: | 624 |
---|---|---|---|
Duration: | 00:08:03 | Size: | 4.1 MB |
Show video info