Let something vibrate via a button

Hello! We have to do a schoolproject with an Arduino. We basically have to let something vibrate and when you press a button the vibration stops and it starts again in 3 minutes (and repeat). Can someone help us with this case?

Thanks in advance!!!

-Eva

Welcome to the forum

Do you know how to read an input pin and determine its state, HIGH or LOW ?

Do you know how to set an output pin HIGH or LOW ?

If you are stuck on doing the required timing then take a look at Using millis() for timing. A beginners guide, Several things at the same time and the BlinkWithoutDelay example in the IDE

Do you have a means of making the vibration, like a vibrator motor as used in mobile phones? You can't hook such a motor up to a digital pin direct- come back with details of the hardware you have.

But controlling (as opposed to powering) such a motor is really no different from controlling an led so you don't really need a vibrator to prove that it works.

Not sure how much you are permitted to buy but look at the two products on this page.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.