andreasbaumgart

Happy Halloween! Shocking people with LEGO Mindstorms ;-)

Recommended Posts

Those blinking red "eyes" looks funny. By the way how did you make ultra sonic sensors to blink?

Share this post


Link to post
Share on other sites
Just now, Tomik said:

Those blinking red "eyes" looks funny. By the way how did you make ultra sonic sensors to blink?

I programmed the eyes with LeJOS in Java.
There is a method for the Ultrasonic sensor for switching the lights on or off.

See the line 40 and 57 in the following code: https://github.com/abaumgart/HalloweenEyes/blob/master/src/halloween/Eye.java

 

Andreas

Share this post


Link to post
Share on other sites
Just now, andreasbaumgart said:

I programmed the eyes with LeJOS in Java.
There is a method for the Ultrasonic sensor for switching the lights on or off.

See the line 40 and 57 in the following code: https://github.com/abaumgart/HalloweenEyes/blob/master/src/halloween/Eye.java

 

Andreas

Thank you for explanation. I thought you found some way how to do it in original software from LEGO...

Share this post


Link to post
Share on other sites
5 hours ago, Tomik said:

I thought you found some way how to do it in original software from LEGO...

It is possible with the Lego software - by putting the ultrasonic sensor into listening mode, though it's not possible to control it completely, it only makes it blink.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.