Powering a wave paddle motor with Arduino Uno.
- Arduino Uno
- MegaMoto+ H-bridge shield from Robot Power
- Linear actuator from Progressive Automations
- 12V power supply
Get the code
git clone https://github.com/sustain-lab/arduino-wavemaker
Generating the signal
This notebook describes how we generate the sign signal in the range [0-255] to send to the motor. The notebook is for the purpose of illustration. The actual values are computed on the Arduino itself at the start of the program.
See the full code here.
We can currently control:
- Period [s]
- Amplitude (fraction voltage of power source)
- Number of oscillations to perform before stopping
- Cedric Guigand