Skip to main content

Questions tagged [calculation]

A mathematical determination of the size or number of something.

Filter by
Sorted by
Tagged with
2 votes
1 answer
344 views

I have a really simple snippet of code wherein the same calculation outputs different values depending on how I do the calculation. The platform that I am running this code on is an Arduino Uno - with ...
Archit K's user avatar
2 votes
4 answers
906 views

First post here. So I have an issue, which I have identified, but I'm not quite sure how to fix it. I'd really appreciate some input and suggestions. I realize that my "pwmDelta" is the problem, but I ...
gfritz25's user avatar
0 votes
1 answer
2k views

I want to enable user to change the duration of PWM from 0 to 255, the number should be in minute and increase/decrease with two push buttons. (X) x 255 / 60000 = minute In above example each time ...
ElectronSurf's user avatar
0 votes
1 answer
210 views

I'm mapping a potentiometer from 0-1023 to 1000-120000 (1 sec to 2 minutes) for a timer, like: maxDelay = map (pot2, 0, 1023, 1000, 120000); Both variables are integers. Now I would like to convert/...
Emerson's user avatar
  • 105
0 votes
2 answers
1k views

I want to wrap a random number using modulo, so that values exceeding 11 starts over from 0 and greater. However, i would also like numbers less than 0 to dividend 11 or less. Please correct me if i'...
Erik's user avatar
  • 271
2 votes
1 answer
1k views

I am using an Arduino Uno, and I need to create a program that calculates the actual baud rate and the percent error for all standard baud rate in Arduino monitor program.
jasmine's user avatar
  • 21
-1 votes
3 answers
579 views

I want to create an integer whose total value cannot go beyond a range of numbers when added to and subtracted from. For example, if the "total_value" started at 0 (of a total possible range between -...
Liam's user avatar
  • 167
2 votes
4 answers
14k views

I'm using a Arduino Uno to read pressure and I want to know if I have wired/coded the sensor correctly. I'm not sure I'm getting the correct readings (it could be the right readings - I just want to ...
resolver101's user avatar