We are trying to program the extreme hexapod 1 with IRPD. We were instructed to use the h1walk1.bas program from the webstie, after we upload it the IRPD light up and detect light but the robot begins to twitch instead of walk? If you have any suggestion, maybe a change to the program that will help please reply. Thanks!
We’ll need to see your code before we can help much. I have an IRPD on my W.A.L.T.E.R. robot and have never had any problems with it. It has always given proper detections. Let’s have a look at your IRPD code and the code that responds to it. It would be better if we can see the entire program and how everything works together.
8-Dale
Dale can certainly help with the code he’s quite the programmer. However there are physical requirements that need to be in place. The plastic case of the IR detector is somewhat transparant. You must prevent the light from the LED from getting to the sensor directly. This is normally done by wrapping black electrical tape around the back of the sensor. If this is not done the IRPD will falsely detect the light from the LEDs directly without the benefit of bouncing off an obsticle. Not a good property for an obsticle detector.
Thank you, Jim! I also have a pretty good library of code for several sensors you sell, including the IRPD. I’d be happy to work on more code for more sensors, for a sample of eac I could keep.
This would all be for the Basic Atom, since I no longer have a working Atom PRO.
That’s what I did to mine, and even though it doesn’t look cool at all, it works great.
With your great suggestions, my IRPD subroutine works great. One should also do several readings on both left and right, as you suggested to me, as this definitely works better. My IRPD subroutine does 4 readings on each side before processing them.
8-Dale
I’m PM’ing you… 8)
Thank you so much for replyign so quickly. We are physics students trying ot get this robot to work and we do not know much about programming other the simple basics. Both programs we tried came right from the lynxmotion website. The first was found in our assembly guide, it was called h1walk1.bas, and the direct link to the program is, lynxmotion.com/images/files/creeper1.bs2. We are going to try to cover with the black electric tape to see if that works. As I said before we are not familiar with programming so I can not really tell where they might be going wrong, or maybe it is just our little guy . Thanks so much, if the links do not work I will try somehting else.
Team KULK