First, we did single signal input processing. You know, to get the hang of it.
- connect electronic test cables from computer's signal out put to Arduino (see image 1)
- two cables to Arduino, one in A0 and one in ground
- set up signal on easy scope
- connect Arduino to computer and set up sampling rate
- remember to install the drivers!
- Put in the following code
- Start the signal generator on easy scope
- the signal looked weird. It only looked weird when we plugged it into the Arduino. The solution was to plug the ground into the breadboard. EDIT don't do that.
- 300, 14400, 28800 didn't work.EDIT these still don't work after later edit/solution. The rest worked until anything past 19200 froze the computer:(
- we think this is because the serial monitor couldn't handle those speeds, so we researched alternatives to the serial monitor (standard with the Arduino program.)
- We discovered this in addition to an Arduino graphing library. Why aren't we using this (the graphing library) already? I guess we'll find out!
- The highest sampling speed (115200) works! We copied a bunch of the data and graphed it in MatLab but it looked like a wandering sine wave (sad).
No comments:
Post a Comment