Go Down

Topic: another cnc mill questionaire (Read 32 times) previous topic - next topic

theMPloc

tried that. hmm. doesn´t change that much. first the jog buttons didn do. after pressing one of the endswitches on the x axix, it was possible to move the x-axis in both directions.

mmcp42

are your switches NO or NC (Normally Open or Normally Closed)
or
are they HIGH or LOW when activated?
do you have a voltmeter?
there are only 10 types of people
them that understands binary
and them that doesn't

theMPloc

i checked them with a volt/ohm meter. they are open (0) when not pressed and closed (1) when pressed. i connected all the switches to the 5V on arduino and connected the "other side of the switch" to the pins given at init.pde on arduino.

mmcp42

ah
I wonder if a pull-down resistor (10k) to ground would help!
there are only 10 types of people
them that understands binary
and them that doesn't

theMPloc

i have a 10kohm resistor. where should i put it? (sorry, if you still don´t know i am a total noob ;)

mmcp42

ok no probs
one side of each switch goes to +5volts
the other side goes to the Arduino
connect 10k between the "arduino" side and ground
so when the switch is open the 10k will connect it to ground

rinse and repeat for each switch
there are only 10 types of people
them that understands binary
and them that doesn't

theMPloc

just to make sure: for example the xmin switch gets 5V from the aruino and comes back to pin 14 on the arduino so i connect the wire which goes to pin 14 also with the resistor to gnd on the arduino?

mmcp42

10/10 give yourself a gold star and go to top of the class! ;)
there are only 10 types of people
them that understands binary
and them that doesn't

theMPloc

so basically i connect all switches pins via resistors to gnd. strange but i will try. fact is that i only have 10 10k resistors and some 1k resistors. can i use 1k also?

mmcp42

#84
Jan 11, 2011, 05:39 pm Last Edit: Jan 11, 2011, 05:40 pm by mmcp42 Reason: 1
I would prefer 10k
there are only 6 switches? (only needed on the limit switches)
so 10 should be enough

try it on just the x-axis (for example) to make sure that is the fix
there are only 10 types of people
them that understands binary
and them that doesn't

theMPloc

ì meant i have 5 10k resistors. trying at the moment...

theMPloc

tried it on the y-axis. god and you know why but it works.

mmcp42

that's because
a) noise on an open input can do strange things
b) the input is pulled high internally

suggest use 1k where you need to, but "upgrade" to 10k as soon as you can
keeps the current nice and low
there are only 10 types of people
them that understands binary
and them that doesn't

theMPloc

so! :) basically this helps. all axes move. the x-axis does not always move but thats the one where the 1k resistor sits. have you any idea how i can solve this just for the moment where all the shops have closed?

if i press your wonderful home button the machine goes towards the endposition but stops to early. i guess this is because the machine simply is to slow?

anyway - another big THANK YOU!

mmcp42

#89
Jan 11, 2011, 06:35 pm Last Edit: Jan 11, 2011, 08:15 pm by mmcp42 Reason: 1
HOME works by stepping all the axes -10cm then asking "are you home yet?"
rinse and repeat
if it stops short, that's because it thinks it's there already
You sure they're 1 k resistors (brown red red)
10k is brown black orange
100k brown black yellow
1M brown black green

what colour are yours?
if they were say 1M then they would be close to useless
there are only 10 types of people
them that understands binary
and them that doesn't

Go Up