Jump to content

Recommended Posts

Posted
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

Posted
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...

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...