Search found 290 matches

by hlreed
Tue Jun 01, 2004 10:25 am
Forum: Robotics
Topic: .help for sience olympiad
Replies: 1
Views: 1536

Re: .help for sience olympiad

If you have steering and speed, send speed to both motors. Add steering to one motor and minus steering to the other. Let motors be ML, MR, steering be D and speed be S. Here is a truth table: S D -D ML MR 0 0 0 0 0 stop 0 1 -1 1 -1 360 right 1 0 1 1 1 ahead 1 1 -1 -2 2 turn right<p>You can turn lef...
by hlreed
Wed May 19, 2004 2:12 pm
Forum: Robotics
Topic: PID
Replies: 6
Views: 3082

Re: PID

Yes, thank you all. I got all I needed to know.
by hlreed
Mon May 10, 2004 2:30 pm
Forum: Robotics
Topic: PID
Replies: 6
Views: 3082

PID

What does the P in PID do?
I have: Out = PE + I*i(E) + D*d(E) where E
is S1 - S2
i is integral function
d is derivative function
What is P?
by hlreed
Wed Mar 31, 2004 10:31 am
Forum: Robotics
Topic: dedicated motor controller protocols
Replies: 8
Views: 2914

Re: dedicated motor controller protocols

Servo protocal is:
Cycle is 20 milliseconds.
At cycle end:
1 millisecond is full counterclockwise (-128)
1.5 millisecond is center (0)
2 milliseconds is full clockwise (127)
1. read number
2. Produce pulse from number
3. produce 20 milliseconds space
4. go to 1.
This is how I do it.
by hlreed
Tue Mar 30, 2004 10:26 am
Forum: Robotics
Topic: dedicated motor controller protocols
Replies: 8
Views: 2914

Re: dedicated motor controller protocols

I don't have a stepper motor controller, but I do have a servo motor controller.
It is SM node on my web page. It is bit serial in and servo out.
Be glad to send you the code if you don't need the hardware. Just ask.<p>
http://www.halbrain.com
by hlreed
Mon Mar 15, 2004 12:10 pm
Forum: Robotics
Topic: Big Darpa race was all did not finish
Replies: 1
Views: 1317

Big Darpa race was all did not finish

The contestants of the 1 million dollar road race all failed to finish. Maybe that will finish conventional robotics.
by hlreed
Wed Feb 11, 2004 8:56 am
Forum: General Discussion
Topic: PIC-12F675 Chip
Replies: 3
Views: 575

Re: PIC-12F675 Chip

Al,
The 12F629 is the companion chip.
The 12F675 has ADC. The 12F629 does not. They both use the same book.
by hlreed
Thu Feb 05, 2004 10:35 am
Forum: Robotics
Topic: General arithmetic with memory
Replies: 0
Views: 1139

General arithmetic with memory

We have had Out = Out + In That can be extended. Out = Out + In1 f In2 ;where f is any arithmetic operator.<p>MP = MP + I1 + I2 MM = MP + I1 - I2 MO = MO + MAX(I1,I2) MA = MA + MIN(I1,I2)<p>Interesting to note that MP + MM = 0 and MO + MA = MP<p>General code, with Out, In and Ref is:<p>BEGIN Marith ...
by hlreed
Wed Feb 04, 2004 1:36 pm
Forum: Robotics
Topic: computer-moved levers and fake digital info (long)
Replies: 5
Views: 2592

Re: computer-moved levers and fake digital info (long)

You are following a long history. In the 1700's it was all gears and levers. The music box is the remainder of the doll mechanism of that time. There are principles involved and the physics must be obeyed, but you can start anywhere. To move anything you need a motor controller, a motor and a gearbo...
by hlreed
Thu Jan 29, 2004 2:40 pm
Forum: Robotics
Topic: Out = Out + In
Replies: 5
Views: 2104

Re: Out = Out + In

It turns out that the uncount is a differentiator with memory.
Out = In - OldIn ; is DNode internals
Out = Out - OldIn ; is Minus (uncount)
Since these are cheap TNodes, they will be on the node list.
by hlreed
Thu Jan 29, 2004 12:38 pm
Forum: Robotics
Topic: Out = Out + In
Replies: 5
Views: 2104

Re: Out = Out + In

Thanks confused B. Turns out this is a counter. Count = Count + countbydifference There is also an uncount which is harder to do.<p>Connect count and uncount in series and you should get countbydifference back. This is getting very close to integration and differentiation which I alread have. So the...
by hlreed
Wed Jan 28, 2004 10:20 am
Forum: Robotics
Topic: Out = Out + In
Replies: 5
Views: 2104

Re: Out = Out + In

Thanks for the comment. The code for this is a PIC 12F629. It has been simulated. I have not cut a chip yet. The input/ output of these nodes is 8 bit binary bit serial. The reason I cannot use an INode here (O = i(I)) is because of the speed. And I do not want to use the difference of the inputs, s...
by hlreed
Tue Jan 27, 2004 2:58 pm
Forum: Robotics
Topic: Out = Out + In
Replies: 5
Views: 2104

Out = Out + In

I have found a need to update data outside as well as inside. I did that with X = X + k where X is modified inside the node and emitted outside. Myfood = Myfood + food hunger = Myfood GT hungerlimit Since data comes in as a solid stream I am using only data that is different from old data. Plus IM =...
by hlreed
Tue Jan 27, 2004 10:29 am
Forum: Robotics
Topic: coupling???
Replies: 1
Views: 1354

Re: coupling???

I buy them already coupled. There are many ways to align a pair of shafts. In small machines a rubber tube of the right size will do. <p>Most small motors come with a small gear that you can press on the shaft. Then you build a structure to hold the other gears. That is why I let the factory do it.
by hlreed
Sat Jan 17, 2004 8:20 am
Forum: Robotics
Topic: More?? - How PWM Works?
Replies: 6
Views: 2681

Re: More?? - How PWM Works?

Think of it this way. For a DC motor to run at full speed you feed it DC.
If you want it to run half speed, feed it half DC and half off. And so on.
The frequency comes from the repetition.
Motor
Read Input
Write pulse related to input
GOTO Motor