In order to use code for the stepper motor, I had to install a new library on my Arduino called AF_Stepper. The directions on how to download the library can be found here . A page that I found to be really helpful in getting the motor to just move was this . It gives you the basics and what's required to actually make the thing move. This seems like the website that Alex used last year to get his code, but I ended up making my own code to make the motor do what I want it to do. The code that I came up with starts the motor and makes it move 31.5 steps, about one degree, and then it waits 30 seconds and repeat. The 30 seconds is to give the GM Tube/counter enough time to get an accurate reading of the radiation at each degree around the sample. I'm still in the process of editing it to make it simpler so I'll update that when I'm done with it, but this is what I have for now. When using the system to collect data, the GM Tube will only be able to go ...
Comments
Post a Comment