Jump to content

Recommended Posts

Geschrieben

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

Geschrieben

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

Join the conversation

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

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...