Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Analog to seven segment

(you are viewing a thread; or go back to list of threads)

Analog to seven segment (by Samukelo Shezi)
I added a few lines on Jonathan's and MGP seven segment program to convert analog 0-1023 to 7 segment. Might be handy for beginers. Measure the Position of a Potentiometer.

I never constructed the circuit, but it looks ok under simulation ans oshonsoft simulation. I don't know if such a program already exists elsewhere in this webpage. If it is redundant, kindly delete this post. Thanks.
Wed Oct 26 2016, 04:59:40, download attachment Analogue to 7 segment.ld
(no subject) (by Samukelo Shezi)
I added a few lines on Jonathan's and MGP seven segment program to convert analog 0-1023 to 7 segment. Might be handy for beginers. (See: Interfacing/Measure the Position of a Potentiometer.)

I never constructed the circuit, but it looks ok under simulation ans oshonsoft simulation. I don't know if such a program already exists elsewhere in this webpage. If it is redundant, kindly delete this post. Thanks.
Wed Oct 26 2016, 05:03:13
(no subject) (by Magno Medeiros (Brasil))
Great friend for sure will be useful for many.
Thu Oct 27 2016, 14:48:33
(no subject) (by Samukelo Shezi)
Thank you very much Magno Medeiros. Though I would have loved to make the program a bit compact by using a ladder equivalent of a
FOR....TO....STEP loop. I just haven't figured it out yet how to do that in ladder. Hopefully our wonderful, brilliant friends here will lend a helping hand.
Fri Oct 28 2016, 20:31:26
(no subject) (by MGP)
Here you have a more compact program.
I've made this program a year ago for a speed control with an analogue tacho and have now added some commentary.

I respect your work, but you asked for it so ..

It works with all versions of LDmicro, it was made with V2.3
Sat Oct 29 2016, 03:21:08, download attachment 4digit_voltmeter_CC-displays.ld
(no subject) (by Samukelo Shezi)
Hey MGP thank you my friend. I really appreciate. Your program is quite compact indeed. I see that it was basically a math problem. You were mindful that adding many times is multiplication, and subtracting many times is deviding. That is wHere I fell off the bus. Thank you so much.
Sat Oct 29 2016, 17:07:16
(no subject) (by MGP)
Btw, you where asking...

".. using a ladder equivalent of a FOR....TO....STEP loop."

If you look closely at LDmicro, the "cycle time" is one big, time controlled, for-next loop.

Between the first line (for) and the end you can add, substract,X,/,...(the steps) and compare a variable to do something and then it jumps automatically to the start(next), no need to write"goto start or next".

A way of thinking.
Sun Oct 30 2016, 03:36:42
floting point (by smei)
hello MGP HOW TO USE VOLTAGE MEASURE IN FLOATING POINT..EXAMPLE
1.200V,12.40V,24.60V.000.2V TEL ME
Mon Oct 31 2016, 02:56:47
VOLTMETER (by smei)
hello MGP HOW TO USE VOLTAGE MEASURE IN FLOATING POINT..EXAMPLE
01.50V ,24.12V TEL ME....ITS POSSIBLE TO MAKE PROGRAM
Mon Oct 31 2016, 03:01:30
(no subject) (by MGP)
You're going to need an amplifier to measure smaller voltages.
All you have to do is connect a 7seg.point with an output pin.

Also check this out.

http://cq.cx/interface.pl#7
Mon Oct 31 2016, 03:19:34
(no subject) (by Samukelo Shezi)
Incredible! Again, thank you MGP.
Mon Oct 31 2016, 13:56:20
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):