Step 3The Arduino Firmware
Have a look at the attached .PDE, I've commented the code but if there is anything that you don't understand I'll try and answer it in the comments. I'm not sure about all the map() stuff, I think I'll need to review that in a later release!
There are certainly more things I'd like to do with this code. For a start there should be much more 'interesting' ways of creating the vibration profile. Right now it's as simple as it could be, the magnitude that is passed in is used both to determine the value to pass out of the PWM pins (how fast the motors spin) and the length they spin for. A much more sophisticated function could be used that pulses the motors along a simulation of an actual seismic waveform. This would produce the 'organic' feeling that I've been aiming for.
SReflec.pde1 KB| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|









































