Lily pad to haptic

Greetings from Elgin Illinois.

It just so happens I’ve come across an Arduino book while in sheltering in place and my curiosity has spiked. I recently came across Lilypad online and what I’d like to build is a simple device which takes input from a PIR sensor and sends an output to a haptic buzzer. I believe I could pick out pieces to build this but figured I would reach out to this community first. Ultimately I’d like to be able to adjust haptic intensity based off of distance data from the PIR sensor. Any advice on what Lilypad products would be best for project? As for the PIR, I don’t believe Lilypad makes one, which is best from a wearable standpoint? Thank you for your time.

Cheers!

Hello DRGood.

PIR sensors are usually go/no go type sensors where they are either on or off. They can tell you “something moved!” but not how far away it is.

We don’t have any Lilypad specific parts for something like this, but you could use a IR sensor like the [Sharp IR proximity sensor or a ultrasonic sensor like the [EZ-0 for something like this. Both have an analog output that varies in intensity with how far away an object is to them.

You’d just need to write a sketch that looks at the analog output from the sensors and speeds up or slows down a motor to provide feedback.](Ultrasonic Range Finder - LV-MaxSonar-EZ0 - SEN-08502 - SparkFun Electronics)](Infrared Proximity Sensor - Sharp GP2Y0A21YK - SEN-00242 - SparkFun Electronics)