A new and funky looking G_Bot. Now capable of sweeping the lower regions of space. Not bad
And how is the coding (and your understanding here of) coming along? One thing is copying Fritzl’s code but at some point you’re gonna have to get your hands dirty and making your own code from scratch…
I would never have been able to do it without referring to Fritsl’s Start here program, So thanks a heap Fritsl I have posted it as an image to keep the layout in tact as I am too lazy to reformat it for html. I must say after doing this I do believe I have a good understanding of how the entire program works and why it does. I think that if I had used a GP2D120 instead of a GP2D12 things would be a little better as sometimes when he is in a tight corner he turns the wrong way.
Let me know if anyone want a copy of the .bas file.
It looks perfect to me but i await some professional opinions.
Note the addition of line 14, I had to ad this line in to keep the head still, without this line the head tends to do a little jig while the robot moves forward.
I also had to connect the servo to pin 2 because it is only on pin 0 that the servo was drifting while there was no program loaded and the robot powered on. I am still baffled by that. I tried connecting to pin 1 but there it would just not work, baffled by that too.
I am still not marking the robot as finished as I will only do this once I master the clean navigation with my GP2D12 IR sensor, and that’s a long way away unless I get some extensive help from one of you guys.
The latest video is also up now
As you can see below I neatened up the controller too. Larger images can be viewed at www.izars.com/robo at the bottom of the page.
I’m not sure about your navigation issues in corners or the GP2D120 vs the GP2D12.
It is odd that you had issues with driving the servo on pins 1 and 2. Pins 4-7 are being used for the motors, but you should be able to use any of pins 0-3 for the servo.
Can you try loading some test code that just moves the servo around without any other commands, and test that it works on ping 0 through 3? This should isolate if you are having an issue with any of the outputs on the Picaxe itself. Or even more basic, just connect an LED through a resistor and test high/low output on pins 0-3, then do the servo test.
Nice work, the Nice work, the new-and-improved G_Bot is looking very clean. Seems like you have ample room on top for extra modules, got any future upgrades in mind?