0% found this document useful (0 votes)
115 views

Binary Arithmetic and Port Manipulation - Part II - Arduino Project Hub PDF

Uploaded by

Phops Freal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views

Binary Arithmetic and Port Manipulation - Part II - Arduino Project Hub PDF

Uploaded by

Phops Freal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Sign In (https://www.hackster.io/users/auth/arduino?

current_site=arduino&setup=true&redirect_to=%2Fprojecthub%2Ftalofer99%2Fbinary-arithmetic-and-port-

manipulation-part-ii-c1cf53)

Binary Arithmetic and Port Manipulation –


Part II © GPL3+ (http://opensource.org/licenses/GPL-
3.0)

One port to read them all!


embedded (/projecthub/projects/tags/embedded)

824 VIEWS 0 COMMENTS 1 RESPECT

COMPONENTS AND SUPPLIES 

Arduino UNO
(/projecthub/products/buy/41?
× 1 
s=BAhJIhMzNzM1NjcsUHJvamVjd
( (/proj (/projecthub/produc
AY6BkVG%0A)
/ ecthu ts/buy/41?
p b/pro s=BAhJIhMzNzM1Njc
(/projecthub/pro
r ducts sUHJvamVjdAY6BkV
ducts/buy/41?
o /buy/ G%0A)
s=BAhJIhMzNzM1
j 41?
NjcsUHJvamVjdA
e s=BA
Y6BkVG%0A)
c hJIhM
t zNzM
h 1Njcs
u UHJva
b mVjd
/ AY6B
p kVG%
r 0A)
o
d
u
c
t
s
/
b
u
y
/
4
4
1
?
s
=
B
A
h
JI
h
We use cookies Ė M
z
Our websites use cookies (also from third parties) for functional and analytical purposes, and to show you personalised
N
advertisement. You can adjust this in Cookie Settings or learn more by reading our cookie policy
(https://www.arduino.cc/en/cookie-policy). z
M
1
ONLY REQUIRED
N ACCEPT ALL
j
c
s
U
H
J
v
a
m
V
j
d
A
Y
6
B
k
V
G
%
0
A
)
)

momentary push button × 8

DFRobot I2C 16x2 Arduino LCD


Display Module
× 1 
(/projecthub/products/buy/394
( (/proj (/projecthub/produc
49?
/ ecthu ts/buy/39449?
s=BAhJIhMzNzM1NjcsUHJvamVjd
p b/pro s=BAhJIhMzNzM1Njc
(/projecthub/pro AY6BkVG%0A)
ducts/buy/3944 r ducts sUHJvamVjdAY6BkV
o /buy/ G%0A)
9?
j 3944
s=BAhJIhMzNzM1
NjcsUHJvamVjdA e 9?
Y6BkVG%0A) c s=BA
t hJIhM
h zNzM
u 1Njcs
b UHJva
/ mVjd
p AY6B
r kVG%
o 0A)
d
u
c
t
s
/
b
u
y
/
3
9
4
4
9
?
s
=
B
A
h
JI
h
M
z
N
z
M
1
N
j
c
s
U
H
J
v
a
m
V
j
d
A
Y
6
B
k
V
G
%
0
A
)
APPS AND ONLINE SERVICES 

Arduino IDE 
(https://www.arduino.cc/en/main/ (https://www.arduino.cc/en/
(https://www.ar software) main/software)
duino.cc/en/mai
n/software)

wokwi Arduino web simulator  (https://wokwi.com/)


(https://wokwi.com/)

ABOUT THIS PROJECT 

Arduino port manipulation – part II


In the first part I covered output of 8 LEDS using one port.
In this tutorial will use the port for input. Reading with one line of command the sate of
8 buttons.
Showing the difference in time it takes to perform this test.
Will also cover cool options of key combination, using the port input value.
I used WOKWI great web Arduino simulator the code from the video is available at
https://wokwi.com/arduino/projects/284193979507933709
(https://wokwi.com/arduino/projects/284193979507933709)
You can watch Part I here

Binary arithmetic and port manipulation on arduino


For WOKWI great article on time counting in Arduino https://blog.wokwi.com/how-to-
measure-the-speed-of-arduino-code/ (https://blog.wokwi.com/how-to-measure-the-
speed-of-arduino-code/)
For more read about binary arithmetic and its practical uses in Arduino
https://playground.arduino.cc/Code/BitMath
(https://playground.arduino.cc/Code/BitMath)
Some more info on ports in Arduino
https://www.arduino.cc/en/Reference/PortManipulation
(https://www.arduino.cc/en/Reference/PortManipulation)

CODE 

Untitled file Arduino   (/PROJECTHUB/CODE_FILES/493143/DOWNLOAD)


SCHEMATICS 

s
c
h
m
a
t
i
c
s
_
b
b
_
s
7
Q
l
4
l
Y
7
u
M
.
p
n DOWNLOAD (HTTPS://HACKSTERIO.S3.AMAZONAWS.COM/UPLOADS/ATTACHMENTS/1229448/SCHMATICS_BB_S7
g
COMMENTS 

Please log in (/projecthub/users/sign_in?


id=373567&m=project&reason=comment&redirect_to=%2Fprojecthub%2Ftalofer99%2F
binary-arithmetic-and-port-manipulation-part-ii-c1cf53%23comments) or sign up
(/projecthub/users/sign_up?
id=373567&m=project&reason=comment&redirect_to=%2Fprojecthub%2Ftalofer99%2F
binary-arithmetic-and-port-manipulation-part-ii-c1cf53%23comments&source=popup)
to comment.

Be the first to comment!

AUTHOR

(/projecthub/talofer99)
Tal O (/projecthub/talofer99)
16 PROJECTS 33 FOLLOWERS

FOLLOW (/PROJECTHUB/USERS/SIGN_UP?ID=126847&M=USER&REASON=FOLLOW&REDIRECT_

PUBLISHED ON

December 8, 2020

 RESPECT PROJECT (/PROJECTHUB/USERS/SIGN_UP?ID=373567&M=ARTICLE&REASON=RESPECT&R...

 WRITE A COMMENT

 Share

SEE SIMILAR PROJECTS


YOU MIGHT LIKE

SIMILAR PROJECTS YOU MIGHT LIKE

(/projecthub/talofer99/binary-arithmetic-and-port-manipulation-54364f?
ref=similar&ref_id=373567&offset=0)
Binary Arithmetic and Port Manipulation
(/projecthub/talofer99/binary-arithmetic-and-port-manipulation-
54364f?ref=similar&ref_id=373567&offset=0)
by Tal O (/projecthub/talofer99)
6,216 VIEWS 12 COMMENTS 35 RESPECTS

(/projecthub/lagsilva/digital-and-binary-clock-with-two-led-matrix-and-rtc-0def6a?
ref=similar&ref_id=373567&offset=1)
Digital And Binary Clock With Two LED Matrix And RTC
(/projecthub/lagsilva/digital-and-binary-clock-with-two-led-
matrix-and-rtc-0def6a?ref=similar&ref_id=373567&offset=1)
Project showcase by LAGSILVA (/projecthub/lagsilva)
16,985 VIEWS 47 COMMENTS 54 RESPECTS

(/projecthub/lagsilva/amazing-binary-clock-using-led-matrix-module-584c23?
ref=similar&ref_id=373567&offset=2)

Amazing Binary Clock using LED Matrix Module


(/projecthub/lagsilva/amazing-binary-clock-using-led-matrix-
module-584c23?ref=similar&ref_id=373567&offset=2)
Project showcase by LAGSILVA (/projecthub/lagsilva)
13,819 VIEWS 13 COMMENTS 67 RESPECTS

(/projecthub/lagsilva/digital-binary-clock-in-8-digits-x-7-segments-led-display-58af21?
ref=similar&ref_id=373567&offset=3)
Digital & Binary Clock In 8 Digits x 7 Segments LED Display
(/projecthub/lagsilva/digital-binary-clock-in-8-digits-x-7-
segments-led-display-58af21?ref=similar&ref_id=373567&offset=3)
Project showcase by LAGSILVA (/projecthub/lagsilva)
5,071 VIEWS 4 COMMENTS 15 RESPECTS

(/projecthub/ambhatt/8-bit-io-port-library-for-arduino-5c11a6?
ref=similar&ref_id=373567&offset=4)
8-Bit IO Port Library for Arduino (/projecthub/ambhatt/8-bit-io-
port-library-for-arduino-5c11a6?
ref=similar&ref_id=373567&offset=4)
Project tutorial by ambhatt (/projecthub/ambhatt)
13,550 VIEWS 8 COMMENTS 19 RESPECTS

(/projecthub/22warehamD/3-bit-binary-calculator-using-arduino-uno-e9d93b?
ref=similar&ref_id=373567&offset=5)

3-Bit Binary Calculator Using Arduino Uno


(/projecthub/22warehamD/3-bit-binary-calculator-using-arduino-
uno-e9d93b?ref=similar&ref_id=373567&offset=5)
Project showcase by 22warehamD (/projecthub/22warehamD)
8,108 VIEWS 9 COMMENTS 15 RESPECTS
(https://www.arduino.cc)
Powered by
(https://www.hackster.io)

You might also like