Showing posts with label Arduino. Show all posts
Showing posts with label Arduino. Show all posts

Monday, 6 July 2026

Arduino HIIT Exercise Timer

Code is here.

 I know you can just use your phone, but sometimes I like to watch videos, and this little timer thing does the job without being too distracting.

What is it?

/*
    __    _ _ __     __  _                    
   / /_  (_|_) /_   / /_(_)___ ___  ___  _____
  / __ \/ / / __/  / __/ / __ `__ \/ _ \/ ___/
 / / / / / / /_   / /_/ / / / / / /  __/ /    
/_/ /_/_/_/\__/   \__/_/_/ /_/ /_/\___/_/    
                                                                       
_________________________________________________________________________________
A High Intensity Interval Training Timer (HIIT) for exercise
using the built in LED for Arduino Uno/Nano/etc.  Simply plug in
the Arduino, and you'll get the following 10 minute HIIT workout:
_________________________________________________________________________________
Routine:

1. 5 seconds flashing to show start of workout.
2. 1 minute warmup, displayed with slow flashes.
3. 30 seconds high intensity flashes, then 1 minute slow flashes. Repeats 5 times.
4. 1 minute warm down, displayed with the LED ON, turning off every 2.5 seconds.
5. Final flashes for 5 seconds to indicate end of work out
__________________________________________________________________________________
  */



Saturday, 14 November 2020

$20 DIY Arduino Synth Example Sounds through Zoom CDR-70

Here's a video showing some of the sounds capable with the little Arduino synth.  Without doubt the star of the show is the Zoom CDR-70 which massively enhances the depth of the sounds.  The more cynical among you might think playing it through a FX pedal is cheating, but I only ever play through effects, so there.

Controlling the synth is an Arturia Keystep, which has some nice arpeggiator abilities...  and because I can't really play, you'll hear those a lot :-0



Thursday, 9 July 2020

Helios-One Arduino Synth - Part 3.1 - Minor Updates



**Update**
**End of update**

I made a few small changes to the V3 code;

https://github.com/gary909/Helios-Arduino-Synth-V3.1

V3.1 - Minor Updates
*Improved Filter Resonance (?). Apparently After setting resonance, you need to call setCuttoffFreq() to hear the change. Swapped in code.
*Increased note sustain from 10 seconds to 60 seconds
*OSC OUTPUT made louder on audio update>>9; // changed down from 10 to 9 because was louder


Still working on the LFO section, hopefully not too much longer...

Friday, 12 June 2020

Helios-One Arduino Synth - Part 2



**Update**
**End of update**

It's been a while coming, but thanks to lock-down I've finally managed to finish part 2 of my simple Arduino synth, the impressively titled 'Helios-One'.  Don't expect it to sound like it's name.  Although maybe, a bit like lock-down, perhaps it sounds 'sick'.  

Here's part 1 of the tutorial in case you missed it.  In that part we set up an Arduino to work with midi, and also a switch to change between wave-forms.

In this version we add Attack and Release envelopes to the synth.  We could add a full ADSR envelope, but the Arduino only has so many free inputs and I'm trying to keep this simple.  If you still want to, you could figure it out by looking at the code I'm sure, but when we add more features down the line, you won't have enough inputs unless you start using a multiplexer.  Maybe we'll end up doing that anyway, we'll see.

You'll need two potentiometers (I'm using B10k ones)

Connect center pot pin to;

A5: for Atk

A4: for Release

connect the other pot pins to ground and 5v. 



To stop mis-triggering on the attack I have two 1k resistors in parallel (amounting to 500 ohms resistance) on the ground input of the attack pot.  You could put two 200(ish)ohm resisters in series instead (it doesn't have to be exactly 500 ohms), or play with the code...  maybe set the int val of the atkVal to something over 20 instead of 0?  The resistors work for me, so I'm sticking to that.

Here's a link to the code;

https://github.com/gary909/Helios-Arduino-Synth-V2

When you upload the code, remember you need to disconnect the RX pin on the Arduino.  You also need to have the Mozzi and Midi library's installed on the Arduino software.

Hopefully part 3 won't take me quite as long this time around.

Thanks.