Components and supplies
5 mm LED: Green
Male/Female Jumper Wires
Resistor 1M ohm
5 mm LED: Red
5 mm LED: Yellow
Arduino Mega 2560
Jumper wires (generic)
Through Hole Resistor, 47 kohm
Female/Female Jumper Wires
Resistor 220 ohm
Circular Connector Cable Seal, Heat Shrinkable Sealing Boot
7 Segment LED Display, Red
Tools and machines
Wire Stripper & Cutter, 18-10 AWG / 0.75-4mm² Capacity Wires
Soldering iron (generic)
Solder Flux, Soldering
Solder Wire, Lead Free
Apps and platforms
Arduino IDE
Project description
Code
density arduino mega code
c_cpp
use arduino ide software
1 2 #define R1 13 3#define Y1 12 4#define G1 11 5#define R2 10 6#define Y2 9 7#define G2 8 8#define R3 7 9#define Y3 6 10#define G3 5 11#define R4 4 12#define Y4 3 13#define G4 2 14 15 16 17 18 19 20 21 //Prepare binary array for all 7 segment to turn on 7 segment at position of a,b,c,d,e,f,g 22int digit[10] = {0b0111111, 0b0000110, 0b1011011, 0b1001111, 0b1100110, 0b1101101, 0b1111101, 0b0000111, 0b1111111, 0b1101111}; 23 24int digit1, digit2; // initialize individual digit to controll each segment 25 26 27void dis(int num) 28{ 29 for (int i = 22; i < 29; i++) 30 { 31 digitalWrite(i, bitRead(digit[num], i - 22)); 32 } 33} 34 35void dis2(int num) 36{ 37 for (int i = 40; i < 47; i++) 38 { 39 digitalWrite(i, bitRead(digit[num], i - 40)); 40 } 41} 42 43void dis3(int num) 44{ 45 for (int i = 49; i < 54; i++) 46 { 47 digitalWrite(i, bitRead(digit[num], i - 49)); 48 } 49 int i=54; 50 digitalWrite(A8,bitRead(digit[num],i-49)); 51 i++; 52 digitalWrite(A9,bitRead(digit[num],i-49)); 53} 54 55 56void dis1(int num) 57{ 58 for (int i = 31; i < 38; i++) 59 { 60 digitalWrite(i, bitRead(digit[num], i - 31)); 61 } 62} 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77void setup() 78{ 79 80int a; 81int b; 82int c; 83int d; 84 pinMode(R1,OUTPUT); 85pinMode(Y1,OUTPUT); 86pinMode(G1,OUTPUT); 87 88pinMode(R2,OUTPUT); 89pinMode(Y2,OUTPUT); 90pinMode(G2,OUTPUT); 91 92pinMode(R3,OUTPUT); 93pinMode(Y3,OUTPUT); 94pinMode(G3,OUTPUT); 95 96pinMode(R4,OUTPUT); 97pinMode(Y4,OUTPUT); 98pinMode(G4,OUTPUT); 99 100 101pinMode(A0,INPUT); 102pinMode(A1,INPUT); 103pinMode(A2,INPUT); 104pinMode(A3,INPUT); 105pinMode(A4,INPUT); 106pinMode(A5,INPUT); 107pinMode(A6,INPUT); 108pinMode(A7,INPUT); 109 110 111 112 113 for (int i = 22; i < 29; i++) 114 { 115 pinMode(i, OUTPUT); // declare 0-9 th pin as output 116 } 117 pinMode(29, OUTPUT); //declare 7 seg Digit1 pin as output 118 pinMode(30, OUTPUT);//declare 7 seg Digit2 pin as output 119 120 for (int i = 40; i < 47; i++) 121 { 122 pinMode(i, OUTPUT); // declare 0-9 th pin as output 123 } 124 pinMode(48, OUTPUT); //declare 7 seg Digit1 pin as output 125 pinMode(47, OUTPUT);//declare 7 seg Digit2 pin as output 126 127 for (int i = 49; i < 54; i++) 128 { 129 pinMode(i, OUTPUT); // declare 0-9 th pin as output 130 } 131 pinMode(A8, OUTPUT); 132 pinMode(A9, OUTPUT); 133 pinMode(A10, OUTPUT); 134 pinMode(A11, OUTPUT); 135 136 for (int i = 31; i < 38; i++) 137 { 138 pinMode(i, OUTPUT); // declare 0-9 th pin as output 139 } 140 pinMode(39, OUTPUT); //declare 7 seg Digit1 pin as output 141 pinMode(38, OUTPUT);//declare 7 seg Digit2 pin as output 142 143pinMode(19,INPUT_PULLUP); 144attachInterrupt(digitalPinToInterrupt(19),ambulance,LOW); 145 146 147 148 149 150 151 152} 153void loop() 154{ 155 road1(); 156} 157 void road1() 158 { 159 int IR1=analogRead(A6); 160 int IR2=analogRead(A7); 161 if(IR1<=60 && IR2<=60) 162 { 163 164 165 digitalWrite(G1,HIGH); 166 digitalWrite(R1,LOW); 167 digitalWrite(Y1,LOW); 168 delay(20); 169 170 digitalWrite(R2,HIGH); 171 digitalWrite(Y2,LOW); 172 digitalWrite(G2,LOW); 173 delay(20); 174 digitalWrite(R3,HIGH); 175 digitalWrite(Y3,LOW); 176 digitalWrite(G3,LOW); 177 delay(20); 178 digitalWrite(R4,HIGH); 179 digitalWrite(Y4,LOW); 180 digitalWrite(G4,LOW); 181 delay(20); 182 183 184 for (int j = 90; j>=0; j--)// for lopp to pass value from 00-99 185 { 186 if(j==10) 187 { 188 digitalWrite(Y2,HIGH); 189 digitalWrite(R2, LOW); 190 } 191 digit2 = j / 10; 192 digit1 = j % 10; 193 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 194 { 195 digitalWrite(30, HIGH); 196 digitalWrite(29, LOW); 197 dis(digit2); 198 delay(10); 199 200 201 202 203 digitalWrite(29, HIGH); 204 digitalWrite(30, LOW); 205 dis(digit1); 206 delay(15); 207 } 208 } 209road2(); 210} 211 212 213else if (IR1<=60 && IR2>60) 214 { 215 216 217 digitalWrite(G1,HIGH); 218 digitalWrite(R1,LOW); 219 digitalWrite(Y1,LOW); 220 delay(20); 221 222 digitalWrite(R2,HIGH); 223 digitalWrite(Y2,LOW); 224 digitalWrite(G2,LOW); 225 delay(20); 226 digitalWrite(R3,HIGH); 227 digitalWrite(Y3,LOW); 228 digitalWrite(G3,LOW); 229 delay(20); 230 digitalWrite(R4,HIGH); 231 digitalWrite(Y4,LOW); 232 digitalWrite(G4,LOW); 233 delay(20); 234 235 236 237 238 for (int j = 60; j>=0; j--)// for lopp to pass value from 00-99 239 { 240 if(j==10) 241 { 242 digitalWrite(Y2,HIGH); 243 digitalWrite(R2, LOW); 244 } 245 digit2 = j / 10; 246 digit1 = j % 10; 247 248 249 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 250 { 251 digitalWrite(30, HIGH); 252 digitalWrite(29, LOW); 253 dis(digit2); 254 delay(10); 255 256 257 258 259 digitalWrite(29, HIGH); 260 digitalWrite(30, LOW); 261 dis(digit1); 262 delay(15); 263 } 264 } 265 road2(); 266} 267 268 269 else if (IR1>60 && IR2>60) 270 { 271 272 273 digitalWrite(G1,HIGH); 274 digitalWrite(R1,LOW); 275 digitalWrite(Y1,LOW); 276 delay(20); 277 278 digitalWrite(R2,HIGH); 279 digitalWrite(Y2,LOW); 280 digitalWrite(G2,LOW); 281 delay(20); 282 digitalWrite(R3,HIGH); 283 digitalWrite(Y3,LOW); 284 digitalWrite(G3,LOW); 285 delay(20); 286 digitalWrite(R4,HIGH); 287 digitalWrite(Y4,LOW); 288 digitalWrite(G4,LOW); 289 delay(20); 290 291 292 293 294 for (int j = 30; j>=0; j--)// for lopp to pass value from 00-99 295 { 296 if(j==10) 297 { 298 digitalWrite(Y2,HIGH); 299 digitalWrite(R2, LOW); 300 } 301 digit2 = j / 10; 302 digit1 = j % 10; 303 304 305 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 306 { 307 digitalWrite(30, HIGH); 308 digitalWrite(29, LOW); 309 dis(digit2); 310 delay(10); 311 312 313 314 315 digitalWrite(29, HIGH); 316 digitalWrite(30, LOW); 317 dis(digit1); 318 delay(15); 319 } 320 } 321 road2(); 322} 323 } 324 325 void road2() 326 { 327 328int IR3=analogRead(A0); 329int IR4=analogRead(A1); 330int b; 331int a=b; 332 333 if(IR3<=60 && IR4<=60) 334 { 335 336 337 digitalWrite(G1,LOW); 338 digitalWrite(R1,HIGH); 339 digitalWrite(Y1,LOW); 340 delay(20); 341 342 digitalWrite(R2,LOW); 343 digitalWrite(Y2,LOW); 344 digitalWrite(G2,HIGH); 345 delay(20); 346 digitalWrite(R3,HIGH); 347 digitalWrite(Y3,LOW); 348 digitalWrite(G3,LOW); 349 delay(20); 350 digitalWrite(R4,HIGH); 351 digitalWrite(Y4,LOW); 352 digitalWrite(G4,LOW); 353 delay(20); 354 355 for (int j = 90; j>=0; j--)// for lopp to pass value from 00-99 356 { 357 if(j==10) 358 { 359 digitalWrite(Y3,HIGH); 360 digitalWrite(R3, LOW); 361 } 362 digit2 = j / 10; 363 digit1 = j % 10; 364 365 366 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 367 { 368 digitalWrite(39, HIGH); 369 digitalWrite(38, LOW); 370 dis1(digit2); 371 delay(10); 372 373 374 375 376 digitalWrite(38, HIGH); 377 digitalWrite(39, LOW); 378 dis1(digit1); 379 delay(15); 380 } 381 } 382 road3(); 383} 384 385 386else if(IR3<=60 && IR4>60) 387 { 388 389 390 digitalWrite(G1,LOW); 391 digitalWrite(R1,HIGH); 392 digitalWrite(Y1,LOW); 393 delay(20); 394 395 digitalWrite(R2,LOW); 396 digitalWrite(Y2,LOW); 397 digitalWrite(G2,HIGH); 398 delay(20); 399 digitalWrite(R3,HIGH); 400 digitalWrite(Y3,LOW); 401 digitalWrite(G3,LOW); 402 delay(20); 403 digitalWrite(R4,HIGH); 404 digitalWrite(Y4,LOW); 405 digitalWrite(G4,LOW); 406 delay(20); 407 408 for (int j = 60; j>=0; j--)// for lopp to pass value from 00-99 409 { 410 if(j==10) 411 { 412 digitalWrite(Y3,HIGH); 413 digitalWrite(R3, LOW); 414 } 415 digit2 = j / 10; 416 digit1 = j % 10; 417 418 419 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 420 { 421 digitalWrite(39, HIGH); 422 digitalWrite(38, LOW); 423 dis1(digit2); 424 delay(10); 425 426 427 428 429 digitalWrite(38, HIGH); 430 digitalWrite(39, LOW); 431 dis1(digit1); 432 delay(15); 433 } 434 } 435 road3(); 436} 437 438 439else if(IR3>60 && IR4>60) 440 { 441 442 443 digitalWrite(G1,LOW); 444 digitalWrite(R1,HIGH); 445 digitalWrite(Y1,LOW); 446 delay(20); 447 448 digitalWrite(R2,LOW); 449 digitalWrite(Y2,LOW); 450 digitalWrite(G2,HIGH); 451 delay(20); 452 digitalWrite(R3,HIGH); 453 digitalWrite(Y3,LOW); 454 digitalWrite(G3,LOW); 455 delay(20); 456 digitalWrite(R4,HIGH); 457 digitalWrite(Y4,LOW); 458 digitalWrite(G4,LOW); 459 delay(20); 460 461 for (int j = 30; j>=0; j--)// for lopp to pass value from 00-99 462 { 463 if(j==10) 464 { 465 digitalWrite(Y3,HIGH); 466 digitalWrite(R3, LOW); 467 } 468 digit2 = j / 10; 469 digit1 = j % 10; 470 471 472 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 473 { 474 digitalWrite(39, HIGH); 475 digitalWrite(38, LOW); 476 dis1(digit2); 477 delay(10); 478 479 480 481 482 digitalWrite(38, HIGH); 483 digitalWrite(39, LOW); 484 dis1(digit1); 485 delay(15); 486 } 487 } 488 road3(); 489} 490 } 491void road3() 492{ 493 494int IR5=analogRead(A2); 495int IR6=analogRead(A3); 496int c; 497int a=c; 498 if (IR5<=60 && IR6<=60) 499 { 500 501 502 digitalWrite(G1,LOW); 503 digitalWrite(R1,HIGH); 504 digitalWrite(Y1,LOW); 505 delay(20); 506 507 digitalWrite(R2,HIGH); 508 digitalWrite(Y2,LOW); 509 digitalWrite(G2,LOW); 510 delay(20); 511 digitalWrite(R3,LOW); 512 digitalWrite(Y3,LOW); 513 digitalWrite(G3,HIGH); 514 delay(20); 515 digitalWrite(R4,HIGH); 516 digitalWrite(Y4,LOW); 517 digitalWrite(G4,LOW); 518 delay(20); 519 520 521 522 523 for (int j = 90; j>=0; j--)// for lopp to pass value from 00-99 524 { 525 if(j==10) 526 { 527 digitalWrite(Y4,HIGH); 528 digitalWrite(R4, LOW); 529 } 530 digit2 = j / 10; 531 digit1 = j % 10; 532 533 534 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 535 { 536 digitalWrite(47, HIGH); 537 digitalWrite(48, LOW); 538 dis2(digit2); 539 delay(10); 540 541 542 543 544 digitalWrite(48, HIGH); 545 digitalWrite(47, LOW); 546 dis2(digit1); 547 delay(15); 548 } 549 } 550 road4(); 551} 552 553 554 else if (IR5<=60 && IR6>60) 555 { 556 557 558 digitalWrite(G1,LOW); 559 digitalWrite(R1,HIGH); 560 digitalWrite(Y1,LOW); 561 delay(20); 562 563 digitalWrite(R2,HIGH); 564 digitalWrite(Y2,LOW); 565 digitalWrite(G2,LOW); 566 delay(20); 567 digitalWrite(R3,LOW); 568 digitalWrite(Y3,LOW); 569 digitalWrite(G3,HIGH); 570 delay(20); 571 digitalWrite(R4,HIGH); 572 digitalWrite(Y4,LOW); 573 digitalWrite(G4,LOW); 574 delay(20); 575 576 577 for (int j = 60; j>=0; j--)// for lopp to pass value from 00-99 578 { 579 if(j==10) 580 { 581 digitalWrite(Y4,HIGH); 582 digitalWrite(R4, LOW); 583 } 584 digit2 = j / 10; 585 digit1 = j % 10; 586 587 588 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 589 { 590 digitalWrite(47, HIGH); 591 digitalWrite(48, LOW); 592 dis2(digit2); 593 delay(10); 594 595 596 597 598 digitalWrite(48, HIGH); 599 digitalWrite(47, LOW); 600 dis2(digit1); 601 delay(15); 602 } 603 } 604 road4(); 605} 606 607 608 else if(IR5>60 && IR6>60) 609 { 610 611 612 digitalWrite(G1,LOW); 613 digitalWrite(R1,HIGH); 614 digitalWrite(Y1,LOW); 615 delay(20); 616 617 digitalWrite(R2,HIGH); 618 digitalWrite(Y2,LOW); 619 digitalWrite(G2,LOW); 620 delay(20); 621 digitalWrite(R3,LOW); 622 digitalWrite(Y3,LOW); 623 digitalWrite(G3,HIGH); 624 delay(20); 625 digitalWrite(R4,HIGH); 626 digitalWrite(Y4,LOW); 627 digitalWrite(G4,LOW); 628 delay(20); 629 630 631 for (int j = 30; j>=0; j--)// for lopp to pass value from 00-99 632 { 633 if(j==10) 634 { 635 digitalWrite(Y4,HIGH); 636 digitalWrite(R4, LOW); 637 } 638 digit2 = j / 10; 639 digit1 = j % 10; 640 641 642 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 643 { 644 digitalWrite(47, HIGH); 645 digitalWrite(48, LOW); 646 dis2(digit2); 647 delay(10); 648 649 650 651 652 digitalWrite(48, HIGH); 653 digitalWrite(47, LOW); 654 dis2(digit1); 655 delay(15); 656 } 657 } 658 road4(); 659} 660} 661 662void road4() { 663 664int IR7=analogRead(A4); 665int IR8=analogRead(A5); 666int d; 667int a=d; 668 if(IR7<=60 && IR8<=60) 669 { 670 671 672 digitalWrite(G1,LOW); 673 digitalWrite(R1,HIGH); 674 digitalWrite(Y1,LOW); 675 delay(20); 676 677 digitalWrite(R2,HIGH); 678 digitalWrite(Y2,LOW); 679 digitalWrite(G2,LOW); 680 delay(20); 681 digitalWrite(R3,HIGH); 682 digitalWrite(Y3,LOW); 683 digitalWrite(G3,LOW); 684 delay(20); 685 digitalWrite(R4,LOW); 686 digitalWrite(Y4,LOW); 687 digitalWrite(G4,HIGH); 688 delay(20); 689 690 for (int j = 90; j>=0; j--)// for lopp to pass value from 00-99 691 { 692 if(j==10) 693 { 694 digitalWrite(Y1,HIGH); 695 digitalWrite(R1, LOW); 696 } 697 digit2 = j / 10; 698 digit1 = j % 10; 699 700 701 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 702 { 703 digitalWrite(A10, HIGH); 704 digitalWrite(A11, LOW); 705 dis3(digit2); 706 delay(10); 707 708 709 710 711 digitalWrite(A11, HIGH); 712 digitalWrite(A10, LOW); 713 dis3(digit1); 714 delay(15); 715 } 716 } 717 road1(); 718} 719 720 721 else if(IR7<=60 && IR8>60) 722 { 723 724 725 digitalWrite(G1,LOW); 726 digitalWrite(R1,HIGH); 727 digitalWrite(Y1,LOW); 728 delay(20); 729 730 digitalWrite(R2,HIGH); 731 digitalWrite(Y2,LOW); 732 digitalWrite(G2,LOW); 733 delay(20); 734 digitalWrite(R3,HIGH); 735 digitalWrite(Y3,LOW); 736 digitalWrite(G3,LOW); 737 delay(20); 738 digitalWrite(R4,LOW); 739 digitalWrite(Y4,LOW); 740 digitalWrite(G4,HIGH); 741 delay(20); 742 743 for (int j = 60; j>=0; j--)// for lopp to pass value from 00-99 744 { 745 if(j==10) 746 { 747 digitalWrite(Y1,HIGH); 748 digitalWrite(R1, LOW); 749 } 750 digit2 = j / 10; 751 digit1 = j % 10; 752 753 754 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 755 { 756 digitalWrite(A10, HIGH); 757 digitalWrite(A11, LOW); 758 dis3(digit2); 759 delay(10); 760 761 762 763 764 digitalWrite(A11, HIGH); 765 digitalWrite(A10, LOW); 766 dis3(digit1); 767 delay(15); 768 } 769 } 770 road1(); 771} 772 773 774 else if(IR7>60 && IR8>60) 775 { 776 777 778 digitalWrite(G1,LOW); 779 digitalWrite(R1,HIGH); 780 digitalWrite(Y1,LOW); 781 delay(20); 782 783 digitalWrite(R2,HIGH); 784 digitalWrite(Y2,LOW); 785 digitalWrite(G2,LOW); 786 delay(20); 787 digitalWrite(R3,HIGH); 788 digitalWrite(Y3,LOW); 789 digitalWrite(G3,LOW); 790 delay(20); 791 digitalWrite(R4,LOW); 792 digitalWrite(Y4,LOW); 793 digitalWrite(G4,HIGH); 794 delay(20); 795 796 for (int j = 30; j>=0; j--)// for lopp to pass value from 00-99 797 { 798 if(j==10) 799 { 800 digitalWrite(Y1,HIGH); 801 digitalWrite(R1, LOW); 802 } 803 digit2 = j / 10; 804 digit1 = j % 10; 805 806 807 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 808 { 809 digitalWrite(A10, HIGH); 810 digitalWrite(A11, LOW); 811 dis3(digit2); 812 delay(10); 813 814 815 816 817 digitalWrite(A11, HIGH); 818 digitalWrite(A10, LOW); 819 dis3(digit1); 820 delay(15); 821 } 822 } 823 road1(); 824} 825} 826 827 828 829 830 831void ambulance() 832{ 833 834 run(); 835 836} 837 838void run() 839{ 840 int a; 841 int b; 842 int c; 843 int d; 844 if (a==b) 845 { 846 for (int j = 20; j>=0; j--)// for lopp to pass value from 00-99 847 { 848 849 digit2 = j / 10; 850 digit1 = j % 10; 851 852 853 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 854 { 855 digitalWrite(39, HIGH); 856 digitalWrite(38, LOW); 857 dis1(digit2); 858 delay(10); 859 860 861 862 863 digitalWrite(38, HIGH); 864 digitalWrite(39, LOW); 865 dis1(digit1); 866 delay(15); 867 } 868 } 869 digitalWrite(R2,HIGH); 870 digitalWrite(Y2,LOW); 871 digitalWrite(G2,LOW); 872 delay(20); 873 } 874 875 else if (a==c) 876 { 877 for (int j = 20; j>=0; j--)// for lopp to pass value from 00-99 878 { 879 880 digit2 = j / 10; 881 digit1 = j % 10; 882 883 884 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 885 { 886 digitalWrite(47, HIGH); 887 digitalWrite(48, LOW); 888 dis2(digit2); 889 delay(10); 890 891 892 893 894 digitalWrite(48, HIGH); 895 digitalWrite(47, LOW); 896 dis2(digit1); 897 delay(15); 898 } 899 } 900 digitalWrite(R3,HIGH); 901 digitalWrite(Y3,LOW); 902 digitalWrite(G3,LOW); 903 delay(20); 904 } 905 906 else if (a==d) 907 { 908 909 for (int j = 20; j>=0; j--)// for lopp to pass value from 00-99 910 { 911 912 digit2 = j / 10; 913 digit1 = j % 10; 914 915 916 for ( int k = 0; k < 35; k++)// For loop to control the digit control to print 00-99 917 { 918 digitalWrite(A10, HIGH); 919 digitalWrite(A11, LOW); 920 dis3(digit2); 921 delay(10); 922 923 924 925 926 digitalWrite(A11, HIGH); 927 digitalWrite(A10, LOW); 928 dis3(digit1); 929 delay(15); 930 } 931 } 932 digitalWrite(R4,HIGH); 933 digitalWrite(Y4,LOW); 934 digitalWrite(G4,LOW); 935 delay(20); 936 937 } 938 939 940int s=analogRead(A13); 941 942 while(s<=500) 943 { 944 945 digitalWrite(G1,HIGH); 946 digitalWrite(R1,LOW); 947 digitalWrite(Y1,LOW); 948 delay(20); 949 950 digitalWrite(R2,HIGH); 951 digitalWrite(Y2,LOW); 952 digitalWrite(G2,LOW); 953 delay(20); 954 digitalWrite(R3,HIGH); 955 digitalWrite(Y3,LOW); 956 digitalWrite(G3,LOW); 957 delay(20); 958 digitalWrite(R4,HIGH); 959 digitalWrite(Y4,LOW); 960 digitalWrite(G4,LOW); 961 delay(20); 962 s=analogRead(A13); 963 delay(20); 964 965 } 966 967 digitalWrite(G1,LOW); 968 digitalWrite(R1,HIGH); 969 digitalWrite(Y1,LOW); 970 delay(20); 971 972 digitalWrite(G2,HIGH); 973 digitalWrite(R2,LOW); 974 digitalWrite(Y2,LOW); 975 delay(20); 976 977 978 979 980} 981
Documentation
Density based traffic control design using proteus tool
use proteus8.12 software to view the circuit
Density based traffic control design using proteus tool
Comments
Only logged in users can leave comments
hanzo3r
5 months ago
What's brownboard called?
vardhan000010
a year ago
Sir, can you send me hex file. I need hex file to run in proteus software. Please sir.
kdobrev
a year ago
@vardhan000010 Did @likithasb send you the kindly requested .hex file?
darshan_04
7 months ago
...
hanzo3r
5 months ago
What's brownboard called?