
September 30th, 2004, 11:42 AM
|
|
Gone, gone gone
|
|
Join Date: May 2004
Location: in the real world
|
|
|
Hardwired programming
Quote: | Originally Posted by chound How do u name the motors, and control it. |
I think you are asking about hardwired programming... this is the kind of stuff that doesn't necessarily use software to run, because all the functionality is built into the device. For some servomotor systems, for example, the driver has an output (or several) to the motor(s) it drives, no software addressing is needed because the motor is directly wired to the driver.
Now, in an RC vehicle, there are typically a number of drivers. They receive input from a radio receiver which gets its signals from the remote control. I haven't worked on those types of circuits, so I can't tell exactly how the data is encoded or anything like, that, but I can give the theory behind it. The reciever in the vehicle will separate the different signals based on built-in logic and distribute the appropriate stimuli to the different drivers.
In networked devices, then the signal coming to the device will have some sort of addressing in it, commonly the first thing. Each device on the network has a unique address for it listens for. If the address header doesn't match, then the device ignores the data. If it does, then the device receives the data and performs the appropriate functions.
A common example of this would be the IDE bus your hard drive is on. Each IDE channel is an independant data bus the can accommodate two devices. The IDE controller sends an addressing signal down the bus and whichever device is being addressed will respond with an acknowledge signal (part of the "handshaking" process used for most bus communications). The controller then sends the commands and/or data intended for that device. The other device ignores this because it was not addressed. The devices are assigned their respective address by the master/slave straps or their position on the cable if they are cable addressed. If neither device is assigned the address sent then the controller times out with a fault (no acknowledge), if both are addressed, then the controller will get confused because there are too many acknowledgements.
__________________
Yes, it is very possible, in fact, highly probable, that you are wrong.
You would be a better person if you would just admit that.
And I would be less annoyed.
"I like doggies....and apparently dinousaurs, mostly because they eat cats!" --Nilpo
|