I agree with @Railroader, words do a poor job of describing circuits. The schematic diagram is the language that we use to describe electronic circuits. A hand drawn, photographed and posted schematic is perfectly acceptable. If you would like to do a CAD generated schematic the how to make a schematic you can post tutorial will get you started.
Please add comments to your code so we can know what it is supposed to do.
map(10, 0, 180, 150, 600)
Why the map? What do you expect it to do? That is just an over complicated way of saying 175.
And so this:
constrain(map(10, 0, 180, 150, 600), 150, 600);
is just constrain(175, 150, 600); Since 175 is already between 150 and 600, that does nothing.
Did you read this part of the constrain reference?
Notes and Warnings
Because of the way the constrain() function is implemented, avoid using other functions inside the brackets, it may lead to incorrect results.
The map function would fall into the category of other functions.