loading
1Instructables139,975Views28CommentsJoined July 10th, 2013

Tell us about yourself!

Complete Your Profile

Achievements

10K+ Views Earned a bronze medal
Contest Finalist Runner up in the Arduino Contest
Show 1 More »
  • burstolava commented on burstolava's instructable DIY 360 Degree SODAR Device2 months ago
    DIY 360 Degree SODAR Device

    Sorry to say, but this won't work. A compiler will overwrite a function when another function has the same name. So only the second function will exist. The variable "buffer" is not initialized in the second function, which would break the program. And even if you fix this, you are only sending the angle to the Processing code, so your data won't visualize correctly. Did you do what I asked in the last comment? If in your Arduino IDE terminal there isn't a number being output, then the motor.getAngle() function is not working for some reason. If a number is being output, then the only other thing I saw in your error was that line 62 was written as "void writeData(float cm, angle)" instead of "void writeData(float cm, float angle)". On GitHub it is written t...see more »Sorry to say, but this won't work. A compiler will overwrite a function when another function has the same name. So only the second function will exist. The variable "buffer" is not initialized in the second function, which would break the program. And even if you fix this, you are only sending the angle to the Processing code, so your data won't visualize correctly. Did you do what I asked in the last comment? If in your Arduino IDE terminal there isn't a number being output, then the motor.getAngle() function is not working for some reason. If a number is being output, then the only other thing I saw in your error was that line 62 was written as "void writeData(float cm, angle)" instead of "void writeData(float cm, float angle)". On GitHub it is written the correct way, but could this be your issue?

    View Instructable »
  • burstolava commented on burstolava's instructable DIY 360 Degree SODAR Device2 months ago
    DIY 360 Degree SODAR Device

    Alright, your error seems to originate from line 49 and line 54 in sodar.ino where it is saying that it is only getting one argument (cm) when it should be getting two arguments (cm, angle). In both cases the variable angle is being set by motor.getAngle(). My guess is that motor.getAngle() is returning void instead of the current motor angle, possibly because the Arduino and stepper are not communicating correctly. Can you check this? Maybe by putting Serial.print(motor.getAngle()) at line 48?

    View Instructable »
  • burstolava commented on burstolava's instructable DIY 360 Degree SODAR Device2 months ago
    DIY 360 Degree SODAR Device

    This is probably happening because the compiler is trying to use the default Stepper library instead of our edited one. We altered the Stepper library to support some basic angle functions that we wanted to use in this project. As stated in Step 7, you should replace the libraries/Stepper directory with the Stepper folder from our repository. This libraries/Stepper directory should be in the Arduino program files (where the executable is for the actual Arduino program). As a side note, we did not alter any of the default functions in the library, so you do not have to worry about our version messing up your other projects that involve the Stepper library. If this does not work, please let me know.Also, this has been asked before in the comments, so I would like to make this more obvious...see more »This is probably happening because the compiler is trying to use the default Stepper library instead of our edited one. We altered the Stepper library to support some basic angle functions that we wanted to use in this project. As stated in Step 7, you should replace the libraries/Stepper directory with the Stepper folder from our repository. This libraries/Stepper directory should be in the Arduino program files (where the executable is for the actual Arduino program). As a side note, we did not alter any of the default functions in the library, so you do not have to worry about our version messing up your other projects that involve the Stepper library. If this does not work, please let me know.Also, this has been asked before in the comments, so I would like to make this more obvious in the Instructable itself. Would making Step 7 more descriptive have been helpful or should I add a comment to the Arduino code to remind others to use the Stepper library we edited?

    You'll need to open both files in a single sketch. They are both required.

    View Instructable »
  • burstolava commented on burstolava's instructable DIY 360 Degree SODAR Device2 months ago
    DIY 360 Degree SODAR Device

    You'll need a visualization program called Processing to open the radar UI for this project. In the GitHub files, the code for this is under the folder "UI."See Step 7 for links to Processing. You should be able to run our code and at least see the UI, even if you don't have the rest of the project done yet.

    View Instructable »
  • burstolava commented on burstolava's instructable DIY 360 Degree SODAR Device10 months ago
    DIY 360 Degree SODAR Device

    Hey, so I've downloaded both Processing 2.2.1 and Processing 3.0.2, and the UI seems to work okay on my windows machine. I wrote the tab completion just to make the "console" feel more like a console. But it doesn't have every feature of a console because I wrote this from scratch. If you haven't typed anything, hitting tab will not "complete" because it doesn't know what you are trying to say. But if you type "sp" and then hit the tab key, it should tab complete to "speed."

    View Instructable »
  • burstolava commented on burstolava's instructable DIY 360 Degree SODAR Device11 months ago
    DIY 360 Degree SODAR Device

    Hello! If I'm reading this correctly, you are having issues with the Tab completion in the Processing code? Is the program not completing the tab correctly or the command is not executing correctly? The only software you should need would be from Processing and Arduino to run the code. We've only tested on Linux and Windows though.

    View Instructable »
  • burstolava commented on burstolava's instructable DIY 360 Degree SODAR Device11 months ago
    DIY 360 Degree SODAR Device

    There is a set of comments on this page that parameshwarnp asked me regarding these errors. My responses to his questions and step 7 should be useful in getting your program entirely functional.

    Hi, the accuracy of this device will be entirely dependent upon the PING sensor specifications. The furthest distance measurable by this sensor is ~3 meters, but the PING sensor manual would be a better reference for the sensor accuracy and such.

    View Instructable »