Linear travel monitoring with control, Need Help!
Archiver
Posts: 46,084
Hello everybody,
First, I DID search through the archives and it appears many of you
are programmers who are looking for HW ideas... I am the opposite. I
lack the code skills, but I'm working on this.
I'm new to the list, Micros, and programming. I have some
logic/electronic/mechanical skill.
Primer:
I installed air bags on my truck in order to soften the ride without
loosing the ability to carry weight. I have a ground activated
(relay) air compressor installed. The side benefit is height
adjustment (attitude). This is EXACTLY the problem.
Problem:
The bags require constant adjustment. They cool down at rest (might
leak a little also) causing the the air volume to reduce/ truck sit
low. They also heat up from driving/ compression and the air voulme
expands causing the truck to ride high.
My idea:
I can install a potentiometer to provide a feedback voltage. Since
the voltage is variable amplitude/frequency... I guess I would use an
A/D type of conversion to take samples which would cause a variable
to (average?) approach either a low or high limit. This would cause
either the compressor or solenoid to actuate (respectively). The
absolute accuracy is not important. What is important is the
dampening. I don't want the Sol/AC to be constantly working, just to
limit average ride height.
I have been trying to learn assembly language in order to achieve
this, and in the process have disected much basic/pbasic code. This
allows me to see how different languages work. I'm still so far from
the result, I might NEVER fix the problem.
Question:
Is anyone willing to provide code or a link to some good reference? I
would use any code as a learning platform. It seems easier to learn
by solving a REAL problem most of the time.
Thanks for any help,
Steve
First, I DID search through the archives and it appears many of you
are programmers who are looking for HW ideas... I am the opposite. I
lack the code skills, but I'm working on this.
I'm new to the list, Micros, and programming. I have some
logic/electronic/mechanical skill.
Primer:
I installed air bags on my truck in order to soften the ride without
loosing the ability to carry weight. I have a ground activated
(relay) air compressor installed. The side benefit is height
adjustment (attitude). This is EXACTLY the problem.
Problem:
The bags require constant adjustment. They cool down at rest (might
leak a little also) causing the the air volume to reduce/ truck sit
low. They also heat up from driving/ compression and the air voulme
expands causing the truck to ride high.
My idea:
I can install a potentiometer to provide a feedback voltage. Since
the voltage is variable amplitude/frequency... I guess I would use an
A/D type of conversion to take samples which would cause a variable
to (average?) approach either a low or high limit. This would cause
either the compressor or solenoid to actuate (respectively). The
absolute accuracy is not important. What is important is the
dampening. I don't want the Sol/AC to be constantly working, just to
limit average ride height.
I have been trying to learn assembly language in order to achieve
this, and in the process have disected much basic/pbasic code. This
allows me to see how different languages work. I'm still so far from
the result, I might NEVER fix the problem.
Question:
Is anyone willing to provide code or a link to some good reference? I
would use any code as a learning platform. It seems easier to learn
by solving a REAL problem most of the time.
Thanks for any help,
Steve