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 - MAP FUNCTION

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

MAP FUNCTION (by david)
Hello, good evening, I am doing a project and I need to perform the Arduino MAP function in LADDER and I have had several problems in being able to do it. thank you
Sat Jan 27 2024, 20:48:36
(no subject) (by MGP)
The map() statement does not exist in LDmicro, use the PWL statement, much easier and more flexible.

For a joystick??

To everyone: be more specific when asking questions.
Sun Jan 28 2024, 02:43:10
(no subject) (by david)
es para un motor que se posiciona usando un potensiometro de 10 vueltas y cuando el mecanismo se posiciona a la mitad que es su posicion zero el potenciametro se coloca a la mitad de su valor por ejem. gira -10 a la izquierda o se mueve a otra posicion +13 a la derecha ese tipo de funsionamiento
Sun Jan 28 2024, 15:21:22
(no subject) (by MGP)
Here is an example of how you can control a motor forwards and backwards with a potentiometer.
Speeds can be preset using the PWL instruction, better than the MAP() instruction on an Arduino.

If you make that twice you can control a car with an Arduino joystick and 2 motors.

I hope that you can use this for your project.
Mon Jan 29 2024, 02:57:29, download attachment joystick_motor-pwl.zip
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):