How can you translate millis into other incremements?

Hi there,

Newbie here, and really enjoying it, but would really appreciate a little help.

I've created various timers with my Uno, but now I'd like to create a timer where the displayed increments can be defined by the user.

i.e. If I wanted to show how many people were born in the UK every minute, the timer would count in increments of 0.0000255 per millisecond rather than 0.001 per millisecond.

I've looked for similar projects but can't seem to find any.

If anyone knows of any I'd be really grateful.

I am not clear exactly what you are trying to do but are you aware of the micros() function ?

If I wanted to show how many people were born in the UK every minute, the timer would count in increments of 0.000255 rather than 0.01 per millisecond.

Why not just multiply by 100 as I can't imagine who would be interested in the UK birthrate per 100th of a millisecond

teej2: or a simple way to convert millis

If you've never heared of multiplication you should investigate it.

use micros() to increment your counter every 255 usec.

teej2: i.e. If I wanted to show how many people were born in the UK every minute, the timer would count in increments of 0.000255 rather than 0.01 per millisecond.

Isn't a minute 60 * 1000 millisecs?

...R