radio control
Bill SC
Posts: 17
what I am currently using is a stamp/rc receiver, but what I want to move to, and I feel that many others here would benefit from the answer of this question, is the propellor.·I am struggling to find a way to make a bot radio control and autonomous as well. I have a 7 channel radio (spectrum) and I want the bot to know if I want it to be autonomous or Remotely operated. The gear switch strikes me as a great way to do this, although I am not totally sure how. A poll query seems right, but I don't know much about the prop. One of the great things about the propellor, it seems to me, is prop objects can be written for all that don't understand the subtleties much as people can use applets without a clue as to their true power. Any help here would be greatly appreciated.
Comments
Jim
the members of this forum will surely help you.
But YOU have to provide more specific information about your project.
You wrote that you are currently using a stamp rc-receiver. What kind of signal
does this receiver have? Simple TTL-Logic low/high 0V/5V ? or any other ?
What do you want to do IN SUMMARY. Which functions shall be controlled via the rc-receiver
The suggestions will depend on these functions.
How much do you know about programming ?
a.) newbie
b.) I made some easy and short basic-stamp programs
c.) I'm an advanced programmer in Stamp-basic but new to programming the propeller in SPIN
best regards
Stefan
Post Edited (StefanL38) : 11/26/2008 8:28:39 PM GMT
I happen to have a BS2p UAV program that monitors the rudder, and elevator channels which are pass through, and the gear switch channel to determine whether to be under manual control or be autonomous. I have attached the code below. I did not write the code and downloaded it from DIY Drones during their early attempts to develop an autopilot with the BS2p. It might help you to visualize an algorithm for the same process in Spin.
Therefore monitoring the grear switch to determine the mode of operation is very viable.
I also have some BS2 code that I downloaded off of the Robotic Forum that allows a user to·program a robot with GPS coordinates and then have the robot traverse the course autonomously. I have been working on converting the PBasic code to Spin, but since I am a Spin·beginner, it is going to take a while.
I would like to have manual control·of the robot by R/C control and at appropriate locations record the GPS coordinates of the robot by using the gear switch channel as a record switch. Then in the normal operational mode, I could drive the robot to the starting coodrinates manually and then put it in the autonomous mode to run the GPS coordinate course. This would allow me to operat a camera on the robot or some kind of weapon system while the robot autonomously traverses the course.·I have also thought about using a TPA81 to track thermal targets in an autonomous mode. We have a problem with skunks here in North Texas and I would like to use a robot to ward them off without having to kill them.
I also have a Spektrum R/C transmitter, DX6i, and a BR6000 receiver and I am planning on using them with the Propeller Control Board, used on the QuadRover, to provide manual and autonomous control of my rover robot.
Parallax has made available Propeller code to decode R/C servo channels, process them, and then retransmit the necessary pulse widths. You can find the code here: http://www.parallax.com/Store/Robots/RollingRobots/tabid/128/CategoryID/3/List/0/SortField/0/Level/a/ProductID/502/Default.aspx
Download the QuadRover Example Code Version 1.0.
I hope that this helps and will encourage other programmers to help get this project going so that we can move it to the Completed Projects Forum.
Have a happy Thanksgiving.
Regards,
TCIII
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If you are going to send·a Robot·to save the world, you·better make sure it likes it the way it is!
Post Edited (Tom C) : 11/27/2008 2:33:22 AM GMT
as english is not my native language I'm not sure if I understand your posting right in all details.
you wrote "servo-signals essentially.."
Does this mean your receiver's output are standard-servo-signals (rectangle pulses of 1.0-2.0 Milliseconds every 20 Milliseconds)?
In the obex there is an object for READING servosignals
Search for "servo" and you will find it.
A step at a time is very good. So first step is to load a demo-program into the propeller and play around with it
I recomend to integrate the FullDupkexSerial-object for debugging purposes right from the beginning
This gives you the possability to get a detailed feedback from the propeller about what your program is doing
The detail-depth is only limited by your patience to write the debug-messages and the 32kB RAM
A step at a time is also a basic principle of good programming
develop ONE thing at the time. Test ist until it works properly and then develop ONE next thing
One thing here means: a sub-program (called "method" in SPIN) that does one senseful thing.
As you described above: detect RC-switch position remote or automious
first "one thing" integrate FullDuplexSerial" in a small demo program with a repeatloop sending "Hello World" to the PC
(using pins 31,30 for rx,tx)
second "one thing" send a value of a variable with a text-headline to the PC
third thing replace the "vga_text"-object by FullDuplexSerial in the ServoInput_Demo.spin
This is a short description of a starting point. It does NOT explain all details.
I KNOW that this description leaves questions open.
Try to follow this way and feel free to ask any concrete question on this way.
Feel free to even ask VERY basic things. Indeed as more basic the question will be the faster you will get answers
just bevause MORE people do know the answer and then even 5week-prop-programming-still-almost-newbees will
enjoy to have the possabilitiy to write an answer to a posting too.
(maybe your question is "where do I find the FullDuplexSerial-object?" or "how works this object where can I find a little demo-prg?"
etc. etc. etc.
feel free to aks all these questions.
best regards
Stefan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
You have peeked my interest.Are there any Clubs or organization that could pool the skills of different individuals towards building homeland security bots ? I am much better at just plain powerful robots, wheel Chair motors, and snow blower trac dive and the such like. For now it has the brains of the boebot with ping and IR running the basic roaming program.IT is switchable to a 7 channel RC for the bigger can't get around problems. It uses two 7 channel receivers. One to run in RC mode and the other uses FIRMTRONICS switches ( from the Robot Market Place ) to go back and forth into the basic stamp roaming program. For auto mode my next plan is to hack my dogs invisible fence and wire the collar into either basic stamp or propeller. So the bot will follow the fence line with senors at certain points for different chores. Inside the fence it should patrol and wart off the unfriendly with loud alarms all the while feeding live video to my site. Big robots come easy for me because I work for one of the best machine shops in my area. I am so happy that Parallax has this forum and hope it get's more people interested in the future.
If you like big robots, you might want to also visit the Projects sub-forum on the Lynxmotion Forum: http://www.lynxmotion.net/phpbb/viewforum.php?f=20&sid=4ac0c97342c57d4d71dc61ee9b1fae1c
Some of the robots on the Projects forum are designed and built·by people who are in the security business. You will have to do a search to find them, but it will be well worth the effort.
Regards,
TCIII
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If you are going to send·a Robot·to save the world, you·better make sure it likes it the way it is!