Jump to content

How to use the Micro Switch


tf_archiv
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...