An algorithm is a sequence of well-defined steps that defines an abstract solution to a problem. Use this tag when your issue is related to algorithm design.
5
votes
1answer
326 views
Compute yaw from magnetometer and accelerometer
I use an Arduino and a 9 DOF sensor (gyroscope, accelerometer and magnetometer) and I'm trying to use the pitch, roll and yaw that the sensor gives me to rotate an object in unity.
I managed to ...
-6
votes
1answer
126 views
How does one write Jacobian algorithms using Arduino IDE?
I've seen some pretty big algorithms online such as this one. How would this type of algorithm be input in Arduino? How would the motor drivers know what this variable means or compute this type of ...
0
votes
1answer
246 views
Algorithm to detect motion using ultrasonic sensor
I have a PIR sensor which sometimes give false readings and I have added a ultrasonic sensor to compensate for that. I think my algorithm can work, however currently it is very prone to give false ...
2
votes
3answers
310 views
Algorithms to reduce measurement error from analogue sensors
When reading analogue sensors - e.g. load cells, accelerometers - via a microcontroller's Analogue to Digital Converter, there are many sources of potential measurement error including:
a) Warm-up ...
2
votes
1answer
224 views
How to detect if more than one button was pressed
I am designing a turn signal bicycle blinker using two pushbuttons as input, one for each side, with a corresponding light for each button.
The idea is this:
Pressing one side makes same side start ...
1
vote
2answers
939 views
Using I2C: Master Reader and Writer
I'm using I2C and the Arduino Library (Wire) to communicate between two Ardunios, and my code isn't working. It's supposed read in an int from the slave, write a value to the slave, then read back ...
2
votes
2answers
829 views
Exoskeleton Motor Control Code
Background:
I have been working on an exoskeleton project with a group of friends, and I need help. I made another post on the robotics.stackexchange site for the drive system: http://robotics....
9
votes
5answers
3k views
Efficient algorithm/data structure to calculate moving averages
Currently I am developing a graphic LCD system to display temperatures, flows, voltages, power and energy in a heat pump system. The use of a graphic LCD means that half of my SRAM and ~75% of my ...