Hacker News new | past | comments | ask | show | jobs | submit login

The Blinking LED,

A simple Hack that still works for me after years:

1. Place a tiny LED (red or yellow) by the side of your monitor or virtually on the screen corner. Basically anywhere almost bordering your field of view.

2. Make it blink like a fast heartbeat (120-150 bpm) and gradually slowdown to around 60 bpm (or your slow heartbeat base). Make the slope approx 20 to 60 minutes (you can adjust the best rate by testing in 10m increments after a few days in one setting).

Now...

3. Get to work regardless if distracted and agitated. Close all apps except what you need to work and BOOM!, let the magic happen. Without realising, your brain will try to sync with the light that you can barely see, calming you down and allowing you to go focus-mode with the task in had.

Works like hypnosis!

It is also a cheap hack... I build my unit with a cheap ESP32 and heart-rate sensor to sync deeper and dynamically adjust the slope...

Will explain better if any interest.

No science behind (only principles), I just hammered a solution like any Ape with the shakes would need!






Fascinating! A few questions:

- once the LED has slowed down to 60 bpm, do you keep it at that tempo for the rest of the day? for a few hours? do you ever go back to 120 bpm and then go back down?

- generally speaking, how did you come up with the idea?

- do you think that a software version (i.e. some blinking pixels in the top right corner of a monitor) would work, or is the intensity of the LED (i.e. the fact that it's not part of the monitor) part of the reason why it works?

- could you also talk about the heart-rate sensor - how do you use it / how does it affect the bpm algorithm?

Thanks!


Sure,

Here is what I did to my current v.3+

- Once it reaches the lowest rate, the LED goes off after a 30min timer set, it fades the light over that time under the same blinking rate. So I won't notice. - The Idea comes from desperation really, mostly curiosity on why sound beats from upbeat music had a effect to improve mood, i.e. work more at gym. Also the idea that your brain will take patterns and try to synch with. Check PubMed (few articles about) - I started with a software version (v.1 and v2) and then a hardware one. No idea why, but hardware (as a side device) works really good. I 3D printed a tiny case and it is discreetly below my iMac screen powered by the USB. Look like an old modem but tiny.

Finally...

- I added the heart monitor (a cheap cable and wrist sensor) to see if I could shorten the time to achieve the lowest rate of blink based on my heart response instead of waiting the time or trying to read brainwave pattern (I try measuring voltage and electric wave form, from a headband I bought and returned after a rapid test) but the signal would mix with the work in front of me, so useless and expensive.

Using heart rate looks cheap, non-intrusive and effective to shorten the time, it goes 1/3 of time to get lowest, could use an apple watch vs cable and sensor but I'm cheap.

; )


Thanks, super interesting!

There was research some time ago (jeez, 10 years ago...) [0] [1] that used video and... computer vision algorithms to detect a person's heart rate without any devices. Wondering if it could be used here i.e. use your webcam instead of an external hardware sensor?

Other thing - would you be open to publishing/sharing your algorithm / esp32 code (on Github or as a blog article)?

[0] https://news.mit.edu/2012/amplifying-invisible-video-0622

[1] https://people.csail.mit.edu/mrub/vidmag/


We use this approach of video heartbeat detection on a real product (recruiting tool) but not for my hack ADHD device,

You can't really do video detection it in real time and properly, without overheating the cheap device. On the SaaS we did we use a recorded segment of video so we can analyse it afterwards, check the colour changes in the face of the subject and try estimate heartbeat with loose accuracy. More like high, Normal, Low after taking a few seconds as base.

The idea of the ADHD device was just a cheap hack done in a day for myself.

Not a product or commercial as I don't feel claiming it can do to others what I looks like does to me.

Happy to share here FREE ; )


I'm definitely NOT attending an interview where this kind of tech is used. My heart rate is irrelevant to whether someone should hire me - and I say that as someone who doesn't even get anxious or nervous during interviews.

Not for interviews, video-applications, is used to sense stress and give extra points (not deducting them) if a person is indeed just too shy of being on video vs talking about something ; )

I assume you are measuring the pulse/stress level of a candidate. Is this a proxy measurement for a lie detector?

Sounds a bit like a Voigt-Kampf machine to see if they’re a replicant to me.

Greedo shouldn’t have asked about Han’s mother!


Dear Lord, hope not.

ChatGPT coded up a simple python script to do this for me if anyone would like to test it out.

Here's the script: https://gist.github.com/dpinney/a3c0b1f333ef89748fa12d057a55...


OMG. I could not do this. I hope it's useful to others, but not for me...at all.

The biggest distraction for me, when working/focusing, is movement at the edge of my vision. You know, like most websites with their moving ads, or fly-out videos that no one asked for, etc.

I'm glad you found your silverbullet, but that specific approach would wreck my productivity.


I don't recommend my solution BUT

Your description is close to what I experience at times, that blinking thing may help you ignore outside the monitor distractions as it is there forcing you to ignore?

Interesting,

Do one and tell me ; )

I cost me $25 or less.... all spares ESP32 (most of them has a LED pinned anyways) and don't bother the heart monitor initially, just set time and rate of descent for the blink.

Cheap test...


I'm fortunate in that I can control my office enough that I can simply eliminate the distractions. For the rest, there's pihole, Brave and Ublock. ;)

I may try this, as an experiment, but going into it, I'm expecting a fail. If I do try it, I'll follow up.


You can't lose as even if it does not work much for you, you will get the building pleasure for sure.

Agreed and part of why I'm a career long SysAdmin is I like to tinker. :)

Same. I can't stand people hovering around my desk. Every little thing they do or say distracts me.

Inspired by this post I threw together a new open source desktop app that has an annoying always on top window that has a flashing timer, this seems to accomplish the same thing. https://github.com/timsayshey/cringe-clock

That's cool! I get stressed just looking at it ; )

Jokes aside, whatever works...

For me a side device with a pulsating red light with a heart sync for the lope do the gig!

Deadlines comes free.

Nice one!


How were you able to manage the window always being on top? I thought you had to disable SIP for that on MacOS.

In Electron it's super easy. Just set alwaysOnTop to true: https://github.com/timsayshey/cringe-clock/blob/main/src/bac...

Seems likely to be a placebo. You have a vested interest in it working, admit its not based on any sort of science, and one of the setup steps is to overcome distraction (which is the problem that’s trying to be solved).

> Seems likely to be a placebo. You have a vested interest in it working, admit its not based on any sort of science, and one of the setup steps is to overcome distraction (which is the problem that’s trying to be solved).

Fundamentally, if it works for the OP, who the hell cares?

And how would you even double-blind test this anyway?


> And how would you even double-blind test this anyway?

Get lights that either start fast and slow down or blink at speeds that randomly change then use serial numbers to track which lights are which, but send them out at random to test subjects?


Which treatment you're in is relatively easily detectable, so unfortunately that wouldn't work.

I like the approach though, it would be a reasonable control condition (assuming that the 60bpm is a core part of the effect).


you would blind the participants to the effect you are looking to measure. If they don’t know what to expect or what conditions there are, they can still get a placebo effect from random patterns.

> you would blind the participants to the effect you are looking to measure. If they don’t know what to expect or what conditions there are, they can still get a placebo effect from random patterns.

Maybe. Generally you'd do a manipulation check at the end to ensure that people couldn't identify what condition they were in.

Additionally, that's single blind rather than double blind.


Trivially, given a small amount of money.

He sees a correlation, correlations are amongst the easiest thing to test.

Causation is the difficult one


Not to be too confrontational, but why did you feel the need to point this out? When someone has a solution that works for them, why possibly ruin it for them by pointing out placebo?

Mind you, pointing out placebo could be useful if the OP made the claim that their solution could cure a disease or something (such claims could discourage someone from getting effective treatment).


> When someone has a solution that works for them, why possibly ruin it for them by pointing out placebo?

You are likely aware of this already, but for others readers, it's important to know that placebos are still effective even when you know they are placebo. The term is "open-label placebo".

https://pubmed.ncbi.nlm.nih.gov/33594150/


the first time I tried antidepressants I had this effect. I even knew about the placebo effect, and I knew they take multiple weeks to do anything. but yet the day after I took the first pill I started wondering if things were getting better and I was trying to deny it, but it felt like a change. (spoiler: it had the opposite effect and once they took effect I could barely get out of bed lol). It was just incredible knowing that it was placebo but still feeling the effect.

I wonder if the placebo effect is actually hope.

I wouldn't be surprised if you felt better even before you took your first dose; I can imagine you started feeling better just having a prescription in hand.


Because it's a discussion about science and their comment is totally valid.

One of the biggest parts of placebo is going through the motions, whether you believe it or not. The original commentor appears to be aware that their approach may not have any scientific basis so mentioning the potential of placebo is fine.


It’s not. It’s called brainwave entrainment and it’s well studied with both sound and light having a strong effect that’s measurable on EEG.

Music BPM has the same effect. For me personally the right cadence can almost induce a flow state immediately.

I find music distracting when I work because I listen to it too actively, but I can imagine that a subtle regular pulse or beat might help. It would beed to be quiet and plain enough that it would not dominate my attention.

For me it's a question of whether it has lyrics or not. No lyrics? Absolutely fine. Lyrics? Instasquirrel.

Even music without lyrics is distracting to me, but lyrics (if in a language I understand) definitely make it much worse.

Oddly enough, non-musical sounds (like birds or cars) don't affect me at all. I think it's the complex pattern-matching in music that is a problem for me. Of course, that's also what makes it so delightful to listen to.


Messed my earlier response...

YES, it can be the placebo effect, but still placebo can works wonders ; )

I detailed better aspects on questions above, also not doing it commercially or claiming it can be helpful for anyone other than me.

In placebo, one needs to trust it will work (or see a figure of authority to believe it does), in my case I wasn't expecting much and got not far from it on v.1 (software), but by v.3 (hardware) I was surprised and used to it.

So, I'm happy to share it here FREE ; )


Yes, it could be the placebo effect, but placebo works wonders ; )

I detailed better aspects on a question above,

Placebo need you to trust it works (or see a figure of authority to believe it does), in my case I expect nothing and got not much on v.1 (software) by v.3 (hardware) it is surprising.

; )


I believe there is research into rapid eye blinking followed by slow blinking causing the brain to "calm", so perhaps an external source has a similar effect?

I didn't look too much into it but I too have seen something long time past about patterns with light from a TV on some of those documentaries from the 80's, basically about people trying advertising with subjective flashes to induce a certain mood.

Seems unlikely to be a placebo.

> Get to work regardless if distracted and agitated. Close all apps except what you need to work and BOOM!, let the magic happen

Isn't this the part that actually does the heavy lifting to get stuff done?


No really what I was trying to say but get your point.

The idea is that you sit at your desk even if too agitated and remove the visual distractions that aren't work so your eyes will either look at work or the blinking led. I have an iPad by the side so I can't see the screen but will open from time to time to check emails.

So, stare at the screen even if you don't feel like it and try 1o-15min.... if you forget and realised an hour passed and the blink stoped it... then it worked!

; )


This part seems like "draw the rest of the fucking owl"

Most productivity hacks are window dressing around this.

Yeah, but this blinking light is still at another level. I'm glad it works for the OP, but to me this really stood out as pretty absurd.

Sounds a bit like: I have a hard time falling asleep, so I have this blinking light next to my bed. I take a sleeping pill and let the magic happen. My heart rate then syncs to the light and I fall asleep. This light works great!


great.

i am trying this now with a chrome-shortcut, window size 50x50, stay on top, js with blinking background on the bottom rigth corner of the screen.

If it helps, i will use a esp32. thanks.


Nice, Let me know how if works for you, for me only the hardware (led outside the screen perimeter) works best.

Fascinating, but I have photo-sensitivity and continuous blinking would give me an headache.

But I used to reproduce a similar behaviour with music (repetitive)


I just listened to a podcast, Huberman, that discussed how to improve your ability to task switch. Apparently, there’s some connection to how your mind perceives time. He mentioned an exercise to improve your ability to task switch that manipulates how your mind perceives time, switching back-and-forth between slowing it down and speeding it up.

I think the inability to task switch is a big part of ADHD and this thing you’re describing really sounds similar to what Huberman was discussing.

Now, I’m not a doctor and I have no idea what I’m talking about here. Every time I start talking about this stuff I imagine my doctor friend sitting in the corner of the room shaking his head (maybe some of you saying it’s placebo should do the same).


I like Binaural Beats for this, plenty of Apps on offer.

Started out with this one and hacked a bit on it, never published my version though: https://f-droid.org/en/packages/com.github.axet.binauralbeat...

Now i'm pretty content with this one: https://play.google.com/store/apps/details?id=com.project.rb...

And this tune, it now is on my phone and every PC thanks to NewPipe.

https://www.youtube.com/watch?v=-6WNB9JN_2o


Yes, it could be the placebo effect, but placebo works wonders ; )

I detailed better aspects on a question above,

Mostly when I added the heart monitor, somehow I can measure that the time to lowest blink got shorter and I'm not paying attention to the device at all.

When I realise it us OFF I can see the logs and see how long it take vs the heartbeat to sync.

Also, I build myself so I like there was no marketing or product to trust, just test and adjust.


My daughter suffers from functional seizures due to FND and we do something similar with counting. When she is suffering from a complex motor tic we will ask her to count at a "comfortable speed" - which is always 100+ counts per minute. She will then slow down the counting until we reach 60 counts per minute at which point she has usually transitioned to a less intrusive tic or she has ceased ticcing altogether.

> I just hammered a solution like any Ape with the shakes would need!

This is an underrated approach. Following hunches and suspicions often leads to solutions that a pure evidence-based approach might miss or delay; especially if your suspicion goes against the prevaling wisdom.


Really interesting to learn about your solution for you daughter, great to see it works and appreciated the comment of my approach being an underrated one.

My case isn't anything as relevant as yours and maybe that's why I did not much of research, easy going for a crude trial.


I don't get this at all. What does the little flashing light achieve?

I find minor irritations like this very distracting so I'm not really sure what the theory is



What would be really useful is a follow-up study that used GPs LED optical trick to influence the brainwave frequency.

IOW, set the frequency to a known external stimulus, and see if the effect still holds.


Interesting stuff indeed!

i coded up an entire program to blink according to what you described before i it occurred to me my screen only runs at 60hz lol

Thankfully, heartrates are only in the single digit frequencies, so that shouldn't be a problem. 60 BPM = 1 Hz

thank you for the correction. i blame one or all of fever delirium, lack of coffee, and allergy to math for this mistake. thank god i'm using a shitposting account.

; )

Would some blinking pixels in a corner of the screen not also work?

Sounds like a time timer. The ventromedial pfc is the culprit here. Time blindness.

It's like a maestro, guiding you down with light not sound or words. So, yes. Done at PFC level probably ; )

Why does the rate have to start high and slow down?

You could probably just implement this in software on a side monitor even...

I explained above on another question, did started as Software (v.1 and v.2) but I guess my brain tried to ignore and sabotage the work on the screen, so I placed as a tiny device underneath (gotcha F brains!).

Like tricking the brain to see as not part of the work.

; )


Nice tip. Thanks for sharing. I'll probably try this by making a cheap one with one of my kids' microbits. This seems like the perfect board for doing this.

Its a simple project and yes, microbit will be fine!

Good luck!


This should be a product.

Thanks for the complement,

I guess you would be a client (few comments)

I have hundreds of things I do and very few go to product or build phase.

Not my view for this one as it is a personal issue. I would not be comfortable claiming it could do anything for others like it does for me. Also I'm not basing it on anything scientific other than raw experimental data from 1.

I'm happy to share it here and FREE for everyone.

I run a tiny tiny tech incubator in the UK, so hands full : )


Oh no, now this is going to distract me until I built such blinking LED :(

"Make the slope approx 20-60 minutes", to be clear does this mean it should take that period of time to gradually go from 120 to 20-60?

Yes, I started with a 1 hour slope... from 150 to 60 over that time.

Also it is not really a blink but a quick fade in/out effect not a flash.


Have you considered building this as a product and selling it? I could see this with a kickstarter or even Shark Tank!

Hi thanks for complement,

I guess you would be a client ; )

No, I have hundreds of things I do and very few go to product or build phase.

For this personal issue, I would not be comfortable claiming it could do anything for others like what it does for me. Also I'm not based on anything other than experimental data.

I'm happy to share it here and FREE.

I run a tech incubator in the UK, so hands full : )


Found an use to my m5stick C+ , will try this

Great little device, and you don't need to 3D print a case : )

Intriguing. Wonder if sound would work also.

I used to hear to Hucci alot back in the day because most of his songs would hover around 60-70 BPM, I'd gather it was having a similar effect.

I use Erik Satie a lot (https://www.youtube.com/watch?v=5pyhBJzuixM). Also ASMR videos of mechanical keyboards (https://www.youtube.com/watch?v=_zq5blZL1P4). Wonder what a light with some randomness would do.

You could hook up some physiological monitors and try all kinds of light patterns.


Nice idea, but sound distracts me very much, I just wanted to suggest a package deal: blinking led with a pair of noise canceling earbuds :)

It does, but the blinking was better in my case.

I used to do beats high to low, instrumental music basically.

; )


Try Endel! Works great for this type of stuff IMO.

Does seem good. I laid it on top of some typing sounds, and it's a bit elevator muzak but that might be why it works.

brain.fm really seems to help me out, when I remember to use it!

Do you have a script you could share?

Just use any blinking LED template code that your OEM offers for your particular board (ESP32 or alike) as it will be specific for the PIN the LED is wired and libraries available, etc.

Basically a function slope with a value from 150 to 60 that calls "blinks" over an hour, when at the end it turns off LED.

You can make it smoother, add the heartbeat sensor, make it pulse instead of blink, that stuff will be particular to whatever you have at hand.

GPT for such simple code after explaining the device and pointing to documentation should be a 3-4 shot process.

My one is horribly inefficient and shameful to share : )


What if I don't know what any of that means? I only know how to code, never used a "board" but I want to try this

Great idea, where can I buy one?

Explained before under another comment ; )

...

Thanks for the complement, I guess you would be a client (few comments)

I have hundreds of things I do and very few go to product or build phase.

Not my view for this one as it is a personal issue. I would not be comfortable claiming it could do anything for others like it does for me. Also I'm not basing it on anything scientific other than raw experimental data from 1.

I'm happy to share it here and FREE for everyone.

I run a tiny tiny tech incubator in the UK, so hands full : )


oh sh*t. here we go again. another IoT that I would love to start and then abandon for some reason knowing full well how fix it but not find the "time" to do it.

IOT? It's a blinking LED, pretty much always the first thing you learn in embedded. No need for internet, just an LED and a microcontroller.

I Did't get this one...

It is not broken, it works, I just don't feel it should be a commercial product as I'm not comfortable in claiming it can do what it does for me.

Happy to share FREE here,

; )


Do you have pictures of the set up?

Do share for the benefit of the masses.


Sure,

May do a pic later when back home, meanwhile... I used this ESP32 board, it has RGB LED right in the middle, here is a web picture of one: https://dfimg.dfrobot.com/nobody/wiki/8a1de42ec21a99f36f69da...

Its a Fire Beetle ESP32 E V.1.0, I bought cheap <$15 don't remember when or from who anymore... The heart monitor is from a study kit (Chinese brand)

My whole set is similar (not the same, not my picture) to this: https://pic-microcontroller.com/wp-content/uploads/2018/04/B...

Enjoy !

; )




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: