After my kids and I began to get the hang of some FastLEDing for

After my kids and I began to get the hang of some FastLEDing for our Christmas and New Year’s Eve decoration, we now want to do something interactive and simple - displaying a white or fancy coloured short gradient (on a long-ish APA102C string, like, splicing 2 or 3 together) that follows people as they walk past the fence, using a Pro Trinket and a SHARP IR distance sensor. If it’s not 100% accurate, that’s ok. Would there be some examples we could learn from how to approach this? No 100% finished code, because that’s no fun : )

I don’t have any code at this time, but I do have the following sensors that I’ll eventually get around to playing with:

HC-SR04 Ultrasonic Sensor
GY-9960 Gesture Detection Sensor
MPU-6050 3 Axis Accelerometer

We have a Adafruit VCNL4010 Proximity/Light sensor but will have to buy the SHARP IR because that’s up to 2 metres, which should be ok for a little fun project!

Can you provide some info about the IR sensor?

You’re probably going to use Arduino’s “map” in this project so check that out of you’re not already familiar.
https://www.arduino.cc/reference/en/language/functions/math/map/

I remember seeing a similar project somewhere that had LEDs follow someone as they walked down a hall. I think that ended up using 3 or 4 sensors to get the sensor coverage they needed.

@marmil Mapping - that’s the ticket! Didn’t know about that one. Mapping the zero-to-something output of that SHARP IR sensor https://www.adafruit.com/product/1031to 144 (and later 288 or even 432 LEDs). But before getting too advanced, a single sensor of this type will do, one step (short moving gradient) at a time ; )
https://www.adafruit.com/product/1031

@Andrew_Tuline That sounds pretty advanced, with a gyroscope!