• 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 code for breathing , arduino breathing light code , arduino breathing effect

This Article Has Been Shared 748 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (21K Followers)
  • Twitter (5.3k 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 Standard Software February 28, 2021
  • WordPress Link to text Fragment February 27, 2021
  • How to Protect IP Cameras From Hackers February 25, 2021
  • 6 Sectors That Have Undergone Revamps in Digital Landscape February 24, 2021
  • What You Can Control with a Smartwatch and ESP32 February 23, 2021

 

About This Article

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

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

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

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

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