Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Arduino interfacing with seven segment single digit display

Arduino interfacing with seven segment single digit display

In this article we will learn how to interfacing Arduino with seven segment single digit display.
In the last post we learn about how to make half wave power supply circuit using 7805 regulator. You can visit our website,
I hope you appreciate my work, let’s discuss about today’s project.

Actual image of arduino interfacing with seven segment single digit display

Arduino interfacing with seven segment single digit display

Components which we use in this project:

  1. Arduino Nano
  2. Single digit display seven segment
  3. Jumper wires
  4. Bread board
  5. 9V battery
  6. 220 Ω resister
  7. Connecting wires (As req.)

Construction of arduino interfacing with seven segment single digit display:

Connect –Ve terminal of battery to GND point of arduino nano.

Connect +ve terminal of battery to VIN point of arduino through push button.

Connect GND point of seven segment to GND point of arduino.

Connect A point of seven segment to D2 point of arduino nano.

Connect B point of seven segment to D3 point of arduino nano.

Connect C point of seven segment to D4 point of arduino nano.

Connect D point of seven segment to D5 point of arduino nano.

Connect E point of seven segment to D6 point of arduino nano.

Connect F point of seven segment to D7 point of arduino nano.

Connect G point of seven segment to D8 point of arduino nano.

Dress up all the wires clean and tidy.

Diagram of arduino interfacing with seven segment single digit display:

Arduino interfacing with seven segment single digit display

Advantages of arduino interfacing with seven segment single digit display:

  1. Easy to use
  2. Learning platform
  3. visual feedback
  4. Rapid prototyping
  5. Cost-Effective
  6. Customization
  7. Integration
  8. Versatility
  9. Skill development
  10. Community support

Coding program of arduino interfacing with seven segment single digit display:

// One digit 7 segment LED display demo.

// Displays digit 0 – 9 and decimal point

//Prepare array of 7-Arduino pins which we need to interfaced with

//7segments

int segPins[] = {2, 3, 4, 5, 6, 7, 8, 9, 11,}; // { a b c d e f g . )

//Truth table for driving the 7segments LED

byte segCode[11][8] = {

//  a  b  c  d  e  f  g  .

{ 1, 1, 1, 0, 1, 0, 0, 1},  // 0

{ 0, 1, 1, 0, 0, 0, 0, 0},  // 1

{ 1, 1, 0, 1, 1, 0, 1, 0},  // 2

{ 1, 1, 1, 1, 0, 0, 1, 0},  // 3

{ 0, 1, 1, 0, 0, 1, 1, 0},  // 4

{ 1, 0, 1, 1, 0, 1, 1, 0},  // 5

{ 1, 0, 1, 1, 1, 1, 1, 0},  // 6

{ 1, 1, 1, 0, 0, 0, 0, 0},  // 7

{ 1, 1, 1, 1, 1, 1, 1, 0},  // 8

{ 1, 1, 1, 1, 0, 1, 1, 0},  // 9

{ 0, 0, 0, 0, 0, 0, 0, 1}   // .

};

void displayDigit(int digit)

{

for (int i = 0; i

{

digitalWrite(segPins[i], segCode[digit][i]); //passing the value pin array

}

}

void setup()

{

for (int i = 0; i

{

pinMode(segPins[i], OUTPUT);// declare Arduino pin as an output

}

}

void loop()

{

for (int n = 0; n

{

displayDigit(n);

delay(1000); ///1 second delay

}

}

Virtual Terminal in Proteus

Arduino in the Proteus

  • Arduino LDR Sensor in Proteus

  • Gas Sensor interface with Arduino in Proteus

  • Flame Sensor with Arduino  Proteus

  • PIR sensor with Arduino proteus

  • flex sensor with Arduino proteus

  • Arduino Ultrasonic sensor in proteus

Interfacing 7 Segment Display with Arduino in Proteus

The post Arduino interfacing with seven segment single digit display appeared first on projectiot123 Technology Information Website worldwide.

Share the post

Arduino interfacing with seven segment single digit display

×

Subscribe to Projectiot123 Technology Information Website Worldwide - Electronics Blog Ask Question And Solution On Web

Get updates delivered right to your inbox!

Thank you for your subscription

×