Author Topic: How to use the Micro Switch  (Read 1718 times)

tf_archiv

  • Sr. Member
  • ****
  • Posts: 292
    • View Profile
How to use the Micro Switch
« on: December 30, 2011, 17:14:08 »
Hi

I want to use the Stepper Brick to control something similar to a conveyer belt but I need to be able to "reset" the position to a known position after a full action has been taken. You can compare it to the calibration a printer does from time to time to verify that the printer head is at the right position. Can I use the Micro Switch to do this and if so, how do I connect the Switch to the Master Brick/Stepper Brick?

/A

tf_archiv

  • Sr. Member
  • ****
  • Posts: 292
    • View Profile
Re: How to use the Micro Switch
« Reply #1 on: December 30, 2011, 17:14:14 »
Hi!
Typically you connect a switch to an IO Bricklet by connecting one pin with the logic pin (A0...A7, or B0...B7 in case of IO16) and the other pin to GND. When you enable the internal pullups of the IO Bricklet, all pins are logical "high". If you now press the switch, it will short the logic pin to GND and your pin gets logical "low".
Hint: Its important that you switch the internal pullups. If you do not, the signal is floating when the switch is not pressed and you get random behaviour.
I hope thats helps.
Cheers,
Bastian

tf_archiv

  • Sr. Member
  • ****
  • Posts: 292
    • View Profile
Re: How to use the Micro Switch
« Reply #2 on: December 30, 2011, 17:14:21 »
I think you need to connect the Switch to the IO Bricklet. Then you should be able to calibrate the stepper when the switch is pushed.
Not sure though, since i'm new to all this.