I've got my own Nybble V2 recently and just finished building and configuring it. I did everything like in the tutorial videos and posts at docs.petoi.com. I configrued Nybble with the Desktop App because I'm new to robotics and did not want to mess anything up in the beginning. The standard Mode is working fine, although one of ther servos seems to shiver a bit sometimes, but thats another story. I looked up how to set up the ultrasonic sensor and uploaded the firmware with the ultrasonic configuration.
Nybble stood up and yeeted backwards as if there was something right in front of the sensor. In order to get detailed information I downloaded the Arduino IDE and ran the testRGBLedUltrasonic.ino. The Sensor starts to blink red and gives of a beep sound from time to time.
I opened the Serial Monitor for more Information.
It logs:
distance is :1cm
k
distance is :1cm
k
distance is :1cm
k
in an endless loop. Although there is nothing in front of it. I searched for a similiar experience but could not find anything.
I would be very grateful for someone helping me with this problem. If you need further information/photos just aks me and i try to provide it.
Sensors like this have a minimum range of 2cm, so the 1cm is not an actual reading. There is nothing inside the cylinders that would be affected by outside pressure, but it could be that the pins of the cylinders that are plugged and soldered into the circuit board have a bad connection, or that one of the wires is broken internally. Such a bad connection may be temporarily restored when you bend the wire in a certain place or put pressure on the circuit board directly or indirectly. Typically it costs more time to solder and fix such a sensor yourself than it costs money to replace it entirely.
Could you take a short video about how did you do the test after uploading the sketch testRGBLedUlrasonic.ino? Make sure the Nybblle is powered on by the battery.
Thanks a lot.
UPDATE:
I've taken the head peace apart and now its starting to get really weird.
I let the testRGBLedUltrasonic.ino run during the entire process to see changes if any would happen.
When I gently press the metal cylinders of the sensor together with my fingers, it suddenly works!
However, it falls back to its original position as soon as I release the pressure.
I took it out of the head and cleaned it. Then after some tries it seemed like it would work fine. I did put it back in the head and as soon as it got in the right position it started blinking red again. I assume it has something to do with the pressure on the sensor and I start to think that its just broken because it seems like it should work just fine in that position. Do you have any thoughts about this? Should i try to get a replacement?
That's strange. Have you tested the sensor along without the wooden frame? Try push the cables to ensure good contact.
There are four grove sockets on the NyBoard. Which socket are you connecting the sensor to?