Subject:
|
motor routines in lib_hb.c
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Mon, 14 Apr 1997 23:26:26 GMT
|
Original-From:
|
Rajesh Gottlieb <rajeshg@ccwfSPAMLESS.cc.utexas.edu>
|
Viewed:
|
1402 times
|
| |
| |
Does anyone know why these eight speeds were chosen in lib_hb.c for the
motors and what would happen if the code were re-written to allow any
speed between 0 and 255?
int _speed_table[]= {
0b00000000, /* speed 0 */
0b00010001,
0b01001001,
0b01010101,
0b01010111,
0b01110111,
0b01111111,
0b11111111 /* speed 7 */
};
Rajesh
|
|
Message has 2 Replies: | | Re: motor routines in lib_hb.c
|
| (...) Think of them as repeating binary waveforms (they are clocked out the 'enable' pin of the motor chip at 1Khz) so on an oscilloscope speed 2 (third entry) would appear.. time -> 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (in mS) Vmotor : +--+ +--+ (...) (27 years ago, 15-Apr-97, to lugnet.robotics.handyboard)
| | | Re: motor routines in lib_hb.c
|
| If I'm not mistaken, (someone please corect) those speeds represent the actual shape of the waveform. Let's list some details. 1. Each bit 0 or 1 represents 0V or 9.6V. (or whatever external source) 2. Each bit represents the above voltage for a (...) (27 years ago, 15-Apr-97, to lugnet.robotics.handyboard)
|
Message is in Reply To:
| | (no subject)
|
| Hi, fellow (ro)Botters! Did anyone watch Scientific American Frontiers on Wednesday? If not, or even if you did see it, check out www.pbs.org . PLEASE SEE IT! there's a lot of good links, a complete transcript, and other goodies. But now, onto my (...) (27 years ago, 11-Apr-97, to lugnet.robotics.handyboard)
|
6 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|