0
Offline
Jr. Member
Karma: 0
Posts: 95
Arduino rocks
|
 |
« Reply #75 on: January 11, 2011, 10:18:01 am » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
Leighton Buzzard, UK
Offline
Edison Member
Karma: 11
Posts: 1047
|
 |
« Reply #76 on: January 11, 2011, 10:47:43 am » |
are your switches NO or NC (Normally Open or Normally Closed) or are they HIGH or LOW when activated? do you have a voltmeter?
|
|
|
|
|
Logged
|
there are only 10 types of people them that understands binary and them that doesn't
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 95
Arduino rocks
|
 |
« Reply #77 on: January 11, 2011, 10:54:12 am » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
Leighton Buzzard, UK
Offline
Edison Member
Karma: 11
Posts: 1047
|
 |
« Reply #78 on: January 11, 2011, 11:13:32 am » |
ah I wonder if a pull-down resistor (10k) to ground would help!
|
|
|
|
|
Logged
|
there are only 10 types of people them that understands binary and them that doesn't
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 95
Arduino rocks
|
 |
« Reply #79 on: January 11, 2011, 11:18:39 am » |
i have a 10kohm resistor. where should i put it? (sorry, if you still don´t know i am a total noob 
|
|
|
|
|
Logged
|
|
|
|
|
Leighton Buzzard, UK
Offline
Edison Member
Karma: 11
Posts: 1047
|
 |
« Reply #80 on: January 11, 2011, 11:27:16 am » |
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
|
|
|
|
|
Logged
|
there are only 10 types of people them that understands binary and them that doesn't
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 95
Arduino rocks
|
 |
« Reply #81 on: January 11, 2011, 11:34:19 am » |
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?
|
|
|
|
|
Logged
|
|
|
|
|
Leighton Buzzard, UK
Offline
Edison Member
Karma: 11
Posts: 1047
|
 |
« Reply #82 on: January 11, 2011, 11:35:28 am » |
10/10 give yourself a gold star and go to top of the class! 
|
|
|
|
|
Logged
|
there are only 10 types of people them that understands binary and them that doesn't
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 95
Arduino rocks
|
 |
« Reply #83 on: January 11, 2011, 11:38:19 am » |
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?
|
|
|
|
|
Logged
|
|
|
|
|
Leighton Buzzard, UK
Offline
Edison Member
Karma: 11
Posts: 1047
|
 |
« Reply #84 on: January 11, 2011, 11:39:56 am » |
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
|
|
|
|
« Last Edit: January 11, 2011, 11:40:26 am by mmcp42 »
|
Logged
|
there are only 10 types of people them that understands binary and them that doesn't
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 95
Arduino rocks
|
 |
« Reply #85 on: January 11, 2011, 11:43:18 am » |
ì meant i have 5 10k resistors. trying at the moment...
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 95
Arduino rocks
|
 |
« Reply #86 on: January 11, 2011, 11:51:02 am » |
tried it on the y-axis. god and you know why but it works.
|
|
|
|
|
Logged
|
|
|
|
|
Leighton Buzzard, UK
Offline
Edison Member
Karma: 11
Posts: 1047
|
 |
« Reply #87 on: January 11, 2011, 11:52:58 am » |
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
|
|
|
|
|
Logged
|
there are only 10 types of people them that understands binary and them that doesn't
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 95
Arduino rocks
|
 |
« Reply #88 on: January 11, 2011, 12:28:20 pm » |
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!
|
|
|
|
|
Logged
|
|
|
|
|
Leighton Buzzard, UK
Offline
Edison Member
Karma: 11
Posts: 1047
|
 |
« Reply #89 on: January 11, 2011, 12:35:26 pm » |
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
|
|
|
|
« Last Edit: January 11, 2011, 02:15:19 pm by mmcp42 »
|
Logged
|
there are only 10 types of people them that understands binary and them that doesn't
|
|
|
|
|