Code Monkey home page Code Monkey logo

arduino's People

Contributors

justinstallknecht avatar kwbueler avatar twbf avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

arduino's Issues

Cloud Server Discussion

//send scan[] or a list of the obstcles (ones under 10 cm) to map_data.php
//sending scan[] will mean that more of the processing power is on the sever

//Then when it comes time to update intended location the script can update it
//     - this would mean all array math would be done in the cloud

//Thomas probably can figure out how to make the php script work but not how to get server space
//and thus ip/mac adresses to use. A couple years ago I set up a sever on my laptop but that
//isn't going to work this time

//is php or python the right route to go? We need a server side language. Python is maybe
//better because it has better syntax and can do matrix math better and in the future any
//machine learning is impossible to do in php. 
//  - for python I have found "Django" a high level library that will make comunicating
//    simpler, assuming a wifi module will work

Function distance() Issues

  • Function potentially returns negative values, which need to be filtered out in a non-damaging way.
  • Function potentially returns zero, which may be damaging (divide by zero).
  • Function needs to be calibrated for accuracy, potentially with configuration values.
  • Function uses ultraSensor.distanceCm() as a source, which likely returns spurious values that we could potentially filter out as noise.

Semi-related question: Are our units of measurement centimeters? If so, I would not mind converting to millimeters.

Left/Right Remains Unknown

It is concerning that we still do not know (in code) whether we are turning left or right when we turn. We know that we are turning and that one direction is not the other (meaning that we can consistently turn in the same direction should we wish to), but we do not know which is which because it is dependent upon which pin is connected to which motor, which is unrecoverable by the code and not described in code anywhere (although we pretend it is, accepting that it might be wrong).

I think we should handle this by changing the referenced Objects ...

//objects used
MeUltrasonicSensor ultraSensor(3); //Object used from MeMCore
MeDCMotor motor_9(9); //Objects used from MeMCore
MeDCMotor motor_10(10);

... to take values based on a configuration setting (or more likely, settings).

I believe this would have to take a form like ...

// hardware configuration
#define ultrasonicsensor_pin 3
#define leftdcmotor_pin 9 
#define rightdcmotor_pin 10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.