Pages: 1 ... 4 5 [6] 7 8 9   Go Down
Author Topic: another cnc mill questionaire  (Read 29204 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 95
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Edison Member
*
Karma: 21
Posts: 1339
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Jr. Member
**
Karma: 0
Posts: 95
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Edison Member
*
Karma: 21
Posts: 1339
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Jr. Member
**
Karma: 0
Posts: 95
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Leighton Buzzard, UK
Offline Offline
Edison Member
*
Karma: 21
Posts: 1339
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Jr. Member
**
Karma: 0
Posts: 95
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Edison Member
*
Karma: 21
Posts: 1339
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

10/10 give yourself a gold star and go to top of the class! smiley-wink
Logged

there are only 10 types of people
them that understands binary
and them that doesn't

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 95
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Edison Member
*
Karma: 21
Posts: 1339
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Jr. Member
**
Karma: 0
Posts: 95
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 95
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Leighton Buzzard, UK
Offline Offline
Edison Member
*
Karma: 21
Posts: 1339
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Jr. Member
**
Karma: 0
Posts: 95
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so! smiley 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 Offline
Edison Member
*
Karma: 21
Posts: 1339
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: 1 ... 4 5 [6] 7 8 9   Go Up
Jump to: