loading
2 Comments

Tell us about yourself!

Complete Your Profile
  • MihirC commented on appleman123987's instructable Hc-sr04 Ultrasonic Distance Sensor8 months ago
    Hc-sr04 Ultrasonic Distance Sensor

    ERORRS FACED WHILE USING NEW PING LIBRARY FOR MEDIATEK LINKITONE!!C:\Program Files (x86)\Arduino\hardware\arduino\mtk\libraries\NewPing\NewPing.cpp: In constructor 'NewPing::NewPing(uint8_t, uint8_t, unsigned int)':C:\Program Files (x86)\Arduino\hardware\arduino\mtk\libraries\NewPing\NewPing.cpp:16:47: error: 'digitalPinToBitMask' was not declared in this scope _triggerBit = digitalPinToBitMask(trigger_pin); // Get the port register bitmask for the trigger pin. ^C:\Program Files (x86)\Arduino\hardware\arduino\mtk\libraries\NewPing\NewPing.cpp:19:66: error: 'digitalPinToPort' was not declared in this scope _triggerOutput = portOutputRegister(digitalPinToPort(trigger_pin)); // Get the output port register for the trigger pin. ...see more »ERORRS FACED WHILE USING NEW PING LIBRARY FOR MEDIATEK LINKITONE!!C:\Program Files (x86)\Arduino\hardware\arduino\mtk\libraries\NewPing\NewPing.cpp: In constructor 'NewPing::NewPing(uint8_t, uint8_t, unsigned int)':C:\Program Files (x86)\Arduino\hardware\arduino\mtk\libraries\NewPing\NewPing.cpp:16:47: error: 'digitalPinToBitMask' was not declared in this scope _triggerBit = digitalPinToBitMask(trigger_pin); // Get the port register bitmask for the trigger pin. ^C:\Program Files (x86)\Arduino\hardware\arduino\mtk\libraries\NewPing\NewPing.cpp:19:66: error: 'digitalPinToPort' was not declared in this scope _triggerOutput = portOutputRegister(digitalPinToPort(trigger_pin)); // Get the output port register for the trigger pin. ^C:\Program Files (x86)\Arduino\hardware\arduino\mtk\libraries\NewPing\NewPing.cpp:19:67: error: 'portOutputRegister' was not declared in this scope _triggerOutput = portOutputRegister(digitalPinToPort(trigger_pin)); // Get the output port register for the trigger pin. ^C:\Program Files (x86)\Arduino\hardware\arduino\mtk\libraries\NewPing\NewPing.cpp:20:59: error: 'portInputRegister' was not declared in this scope _echoInput = portInputRegister(digitalPinToPort(echo_pin)); // Get the input port register for the echo pin. ^C:\Program Files (x86)\Arduino\hardware\arduino\mtk\libraries\NewPing\NewPing.cpp:22:75: error: 'portModeRegister' was not declared in this scope _triggerMode = (uint8_t *) portModeRegister(digitalPinToPort(trigger_pin)); // Get the port mode register for the trigger pin.

    Hello Sir! I face a similar problem working with ultrasonic sensors. The data provided by ultrasonic sensor is stuck to out of range!! i.e. 0.. Can you please provide me with some suggestion on how to solve this problem??

    View Instructable »