Python and Robotics
Hi,
I am writing a Python program to control the Scribbler Robot(it has·a Basic Stamp microcontroller in it). I am using the IPRE Fluke·to connect·it to·the PC(Bluetooth connection). Now I am trying to capture the data·sent to the microcontroller·and upload it in to the Scirbbler robot itself and make it work without the PC.
I would appreciate·help with this. Any·ideas/suggestions?
Thanks!
I am writing a Python program to control the Scribbler Robot(it has·a Basic Stamp microcontroller in it). I am using the IPRE Fluke·to connect·it to·the PC(Bluetooth connection). Now I am trying to capture the data·sent to the microcontroller·and upload it in to the Scirbbler robot itself and make it work without the PC.
I would appreciate·help with this. Any·ideas/suggestions?
Thanks!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
from myro import *
initialize("com4")
def sound():
··· beep(1,880)
def main():
··· sound()
main()
My question here is how will this program look like when it goes to the microcontroller of the scribbler robot, that is when you execute the Python program.
Thanks!
I've never done this, but it should be fairly straight forward. Don't forget that you'll have to check for python syntax errors before you translate it into pbasic.
Thanks!
I would suggest talking to the IPRE folks at their support. I understand they respond pretty quickly.
Their software that you load on your Scribbler turns the Scribbler into a slave that recieves its instructions via the bluetooth from the PC. (I know that you know this already). The Python Programming environment on you PC sends the the converted program instructions to the Scibbler via the bluetooth. And of course, the Scibbler IPRE Fluke Dongle and the PC communicate back and fourth (for the camera and for feedback from the sensors on board the Scribbler).
With the PC as the controller via the Python Program you have a hugh set of brains (memory and program space on the PC)·controlling the Scibbler with its small Stamp brain (so to speak). This amount of info that you have in program and options on your PC is probably too large to load to the Scribbler and have it do all that you can by communicating back and fourth between the two. That is the whole advantage of the system.
If you want the Scribbler to perform autonomously with the Basic Stamp controller it has and no outside help - why not just write its program in PBasic or with the GUI? It will be limited by the on-board storage space of the Stamp.
Otherwise you can have a much more sophisticated program running the Scribbler via the Bluetooth interface between the PC and the Scribbler.
As far as what is sent from Bluetooth at PC to Bluetooth at the Scribbler, I imagine it is more like small sets of individual instructions and data from the the Scribbler's sensors back into the main program on the PC (in small little pieces as needed).
Hope this helps. Let me know if I can clarify in any way.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Whit+
"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
Post Edited (Whit) : 3/15/2009 12:24:55 PM GMT
I can understand the advantage of having the PC (memory plus program capabilities) but wanted to see if this could help in any way.
I will email the Parallax team too and find out if they could help me out in any way.
Thanks!
No problem. To try to say things more simply, Python and the Python program written are all on the PC. The Scribbler becomes a remote control robot being run by the PC using its program. There is no program stored on the Scribbler, except the one making it a slave to the instructions coming from the PC via the Python program (the two do send info back and forth as regards sensor info).
Good luck with your class.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Whit+
"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
Post Edited (Whit) : 3/15/2009 5:08:38 PM GMT