• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Breathing LED Arduino : Circuit & Code

By Abhishek Ghosh August 27, 2015 5:42 am Updated on August 27, 2015

Breathing LED Arduino : Circuit & Code

Advertisement

LED Never Breathes! MacBook Pro Has Sleep LED Which Pulsates Resembling Human Breathing. Here is Breathing LED Arduino Circuit & Code. Circuit sketch not required. If you can add LED to default BLINK sketch to blink, you can easily use it. It will need only one LED, optionally, you can use a resister for better voltage control. It is suggested to use a resister. Adafruit has a cufflink named iCufflinks which costs $128.00 for a pair (what???). So peoples changed the code a bit to make it working on Arduino UNO or practically any Arduino. We will post later how to make those kind of cufflinks pair at lesser than $1.28. Coding, testing is the main part. Just a hints – fiber optic cable does the work from a Arduino UNO in your wallet, it may be impractical, so practical way also said later in this article.

 

Breathing LED Arduino : Circuit

 

Add that LED on Pin 11 and GND. Do not try to alter the code to make it working for Pin 13, it actually demands good knowledge on C++. Here is a crap quality video from our side to show you how actually the thing breathes :

for a basic testing, who will use a high end camera. Here is how human breathes :

Advertisement

---

Breathing LED Arduino

It is actually not so easy to create that effect. Apple has patent :

Vim
1
http://www.google.co.in/patents/US6658577

The included sketch named Fade demonstrates the use of the analogWrite() function in fading an LED off and on. analogWrite() uses pulse width modulation (PWM), turning a digital pin on and off very quickly, to create a fading effect.

 

Breathing LED Arduino : Code

 

We, indeed have stolen the code. We stolen to make it under GNU GPL 3.0. We said that, we have stolen, we have no credit but our version is under GNU GPL 3.0 :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Distributed under GNU GPL 3.0
int i = 0;
void setup() {
  for(i = 0 ; i <= 15; i+=1)
  {
    analogWrite(11, i);
    delay(5);
  }
}
void loop()
{
  for(i = 15 ; i <= 255; i+=1)
  {
    analogWrite(11, i);
    if (i > 150) {
      delay(4);
    }
    if ((i > 125) && (i < 151)) {
      delay(5);
    }
    if (( i > 100) && (i < 126)) {
      delay(7);
    }
    if (( i > 75) && (i < 101)) {
      delay(10);
    }
    if (( i > 50) && (i < 76)) {
      delay(14);
    }
    if (( i > 25) && (i < 51)) {
      delay(18);
    }
    if (( i > 1) && (i < 26)) {
      delay(19);
    }
  }
  for(i = 255; i >=15; i-=1)
  {
    analogWrite(11, i);
    if (i > 150) {
      delay(4);
    }
    if ((i > 125) && (i < 151)) {
      delay(5);
    }
    if (( i > 100) && (i < 126)) {
      delay(7);
    }
    if (( i > 75) && (i < 101)) {
      delay(10);
    }
    if (( i > 50) && (i < 76)) {
      delay(14);
    }
    if (( i > 25) && (i < 51)) {
      delay(18);
    }
    if (( i > 1) && (i < 26)) {
      delay(19);
    }
  }
  delay(970);
}

Actually peoples who code know who first wrote it. That is why no credit actually required – mere web searching will reveal it. When it is under GNU GPL 3.0, there are problems to mention a snippet without any mention of License. In short, we re-wrote it. You can see in video, it is quite nicely working on Arduino UNO R3.

 

Breathing LED Without Arduino : Circuit & Code

 

Yes, it is possible to make breathing LED without Arduino. For that you’ll need this stuffs which are shown in circuit diagram :

Breathing LED Circuit

Actually, very small ready to use circuits are available at $4 or something like that for getting that effect. This is really practical for creating breathing LED for your iCufflinks. Not always we need coding.

Tagged With breathing led arduino code , breathing led code , heart breathing coding for uno r3 , arduino breathing led , breathing led code c , arduino breathing , what is breath in arduino coding , arduino breathing light code , arduino breathing light , arduino breathing effect

This Article Has Been Shared 240 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Breathing LED Arduino : Circuit & Code

  • Arduino Vs Raspberry Pi

    Arduino is for prototyping, the boards are micro-controllers. Whereas, Rapasberry Pi is actually a computer. Here is Arduino Vs Raspberry Pi

  • Used Mobile Phone’s Display For Arduino & Other DIY Projects

    It Is Not Abnormal To Think About Used Mobile Phone’s Display For Arduino & Other DIY Projects To Save the Total Cost. Here are some details.

  • Basic Electronic Components List and What They Do

    Here is an Illustration of the Basic Electronic Components List and What They Do. This article is helpful for new Electronics Enthusiasts.

  • Arduino GSM Shield : Getting Started With DIY IoT

    Compared to Wi-Fi Shield, Arduino GSM Shield is Practical as It Opens the Door Towards Real IoT. We Need to Control Things Over Internet.

  • DIY LED Dot Matrix Display For Arduino Scrolling Text

    Here Are Many Ways To Build DIY LED Dot Matrix Display For Arduino Scrolling Text and Other Effects. Save Money By Buying Raw Components.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Breathing LED Arduino : Circuit & Code," in The Customize Windows, August 27, 2015, February 1, 2023, https://thecustomizewindows.com/2015/08/breathing-led-arduino-circuit-code/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT