0

MonsterM4sk - SLOW DOWN BLINKING?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

MonsterM4sk - SLOW DOWN BLINKING?

by rarekitchenware on Thu Jul 15, 2021 5:22 am

Hi,

I just purchased the MonsterM4sk and I really love it!

However, I am wondering if there is a way to control the "blinking" speed of the eyes? I would like to make them blink slower.

Also, is there a way to control the direction they are looking? I would like to have the eyes focus on looking upwards.

Thanks a lot in advance!

rarekitchenware
 
Posts: 2
Joined: Thu Jul 15, 2021 5:19 am

Re: MonsterM4sk - SLOW DOWN BLINKING?

by dastels on Thu Jul 15, 2021 9:57 am

Customization is discussed in the product guide https://learn.adafruit.com/adafruit-monster-m4sk-eyes

The eye code is designed to allow user customization of how the code works. You can see that in the various user_*.cpp files in the source https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/master/M4_Eyes. For example, see https://learn.adafruit.com/monster-m4sk-is-watching-you. The user file user_pir.cpp plays with blinking.

Dave

dastels
 
Posts: 6804
Joined: Tue Oct 20, 2015 3:22 pm

Re: MonsterM4sk - SLOW DOWN BLINKING?

by rarekitchenware on Tue Jul 20, 2021 11:13 am

Thanks for the answer, Dave.
It's my first time working with something like this, so please excuse me if my questions are stupid. Do I need a PIR sensor to set the speed of the blinking? Is there an easy way I can specify the blinking speed in the config.eye code?

rarekitchenware
 
Posts: 2
Joined: Thu Jul 15, 2021 5:19 am

Re: MonsterM4sk - SLOW DOWN BLINKING?

by dastels on Tue Jul 20, 2021 11:49 am

You'd only need a PIR sensor if you wanted them to respond in some fashion to movement.

I don't see a way to set blink speed in the config. You would have to write code in c++, in a user_xx.cpp file, e.g. user_slow_blink.cpp. I don't know off hand how you would effect blink speed, but I'm sure you'd be able to. Making them look up should be more straight-forward as you could use the code in user_watch.cpp and HeatSensor.cpp as an example of how to manipulate eyeTargetX and eyeTargetY.

Dave

dastels
 
Posts: 6804
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.