Double Blinking LED

3 years ago 572
  • Description
  • Documents
  • BOM
  • Attachments
  • Members
  • Comments

Description

Arduino MEGA 2560 board to drive the color LED

This article is the use of Arduino MEGA 2560 board to drive some of the color LED digital tube.All of the content is edit in the edit in the easyeda.com

Red and green LED cycle

As a beginner, a single LED display has been introduced in the last article, Arduino Mega2560 is the use of USB interface core circuit board, its greatest feature is having up to 54 digital input and output, particularly suitable for the needs of a large number of IO interface design. Previous experiments we have done experiments LED display, has been known to set the input and output in the setup () function inside. Connection as follows:

program code

 void setup() {
  pinMode(13, OUTPUT); // set pin 13 as output
  pinMode(12, OUTPUT); // set pin 12 as output
}

void loop() {
  digitalWrite(13, HIGH); // set pin 13 as high or 1
  digitalWrite(12, LOW); // set pin 12 as low or 0
  delay(1000); // wait 1000 ms
  digitalWrite(12, HIGH); // set pin 13 as high or 1
  digitalWrite(13, LOW); // set pin 12 as low or 0
  delay(1000); // wait 1000 ms
}
     

easyeda schematic open it in the easyeda editer Double Blinking LED esyeda Project

Documents

2 simple LED

BOM

ID Name Designator Footprint Quantity Manufacturer Part Manufacturer Supplier Supplier Part Price LCSC Assembly Mounted
1 LED D1,D2 LED3MM 2
2 1k R1,R2 R3 2

Attachments

None

Members

Success
The owner does not allow comments in this project now

Comments (0)

goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.