Skip to main content

Questions tagged [mathematics]

Mathematics is the study of quantity, structure, space, and change. Any math questions on this site should be programming related.

2 votes
2 answers
668 views

I've designed an apparatus that uses stepper motors, and they are linked together so that when armature A turns, it consequently moves armature B by a ratio of 1/4. In order to keep armature B in the ...
AJ_Smoothie's user avatar
2 votes
1 answer
278 views

Here I asked about how to add an hysteresis on ADC readings. The answer received was very good and it worked out of the box. Still I'm having troubles trying to generalize the resample function in ...
Mark's user avatar
  • 393
12 votes
2 answers
4k views

I need to do some math with vars from an attitude sensor (acclerometers and gyroscopes) on an esp8266. int32_t math with those vars does not have enough range and the float math operations are ...
mark-hahn's user avatar
  • 297
1 vote
1 answer
74 views

In python there is the object set that resembles a mathematical set, namely, you can remove elements from it, add elements to it, you can calculate the intersection/union between two sets, etc. Is ...
Schach21's user avatar
  • 121
0 votes
2 answers
2k views

The following code reads the DHT22 temperature and humidity values, assuming the pin value as the sensor's host pin. When the temperature drops below 0°C, this code returns inadequate values in the ...
Starter's user avatar
  • 153
1 vote
0 answers
81 views

I'm trying to execute a math of analog read but I get some weird result.. I searched about int and floats but didn't understand.. My code is : #include <SevSeg.h> SevSeg sevSeg; int bitsChange ...
m sayed's user avatar
  • 11
1 vote
1 answer
569 views

I have an array of hexadecimal values as given below. byte Hexa_Val[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; I want to increase this array from the end. As in, go from {0x00, 0x00, 0x00, ...
C Vith's user avatar
  • 133
0 votes
2 answers
682 views

I have a BEAUTIFUL doppler radar signal here from a 24.050-24.250 GHZ sensor measuring a very small object at 143 fps speed (speed from another 10 GHZ radar) in a measuring area of about 300mm-500mm ...
TommyS's user avatar
  • 71
1 vote
1 answer
315 views

I have this code which provides an erroneous unsigned long number. CODE: char buff[100]; int unsigned long bytes; bytes = 48 * 70 * 144; sprintf(buff,"%lu bytes\n", bytes); BTPort.print(...
Willem Ferguson's user avatar
1 vote
2 answers
3k views

I am looking for a way of generating booleans rapidly. For booleans, one usually uses random(0,2); but in my case I need about 250 booleans and calling random every time is slow. So I thought about ...
Tom-tbt's user avatar
  • 11
0 votes
3 answers
1k views

I am interested in calculating the amp/hour output of a solar panel using an Arduino. I am confident I can get the voltage (with a voltage divider) & the amperage (with an ACS712). My question is ...
RonSper's user avatar
  • 119
0 votes
1 answer
337 views

I am attempting to calculate the time between pulses by comparing the micros() timestamp. I understand that you cannot just simply subtract unsigned longs, but I cannot understand what the alternative ...
Andi Stancu's user avatar
1 vote
0 answers
53 views

Im reading the voltage applied to my microcontroller using the internal voltage reference. Here the topic is talked, and there are some working examples. Im NOT using this examples, im using my own ...
Martin's user avatar
  • 11
1 vote
2 answers
1k views

I have an Adafruit ADS1115 analog-to-digital converter, configured in single ended mode. I want to average over 3 sensor readings to increase the reading stability. //initialize variables int16_t ...
plasma's user avatar
  • 11
2 votes
1 answer
4k views

I am currently working with MPU-6050. Now I want to minus gravity from my accelerometer's value as we minus the offset. Here is the code: #include <Wire.h> #include <MPU6050.h> //read as ...
Maifee Ul Asad's user avatar

15 30 50 per page