Ultrasonic sensor and ledstrip color problem #1787
Replies: 4 comments
-
Posted at 2018-11-18 by Robin Sun 2018.11.18 Hello @user95613, Welcome to Espruino, a 'Javascript' microcontroller. May I ask what board you are using, and would you post here the results of running |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-11-18 by user95613 I'm using the Arduino Uno |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-11-18 by Robin Wouldn't your post serve you better in the 'Arduino' community as this forum is for those that support Espruino? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-11-19 by @gfwilliams Yes, I'm afraid you have the wrong forum. This forum is purely for JavaScript code on the Espruino microcontrollers - what you've posted is Arduino code for an Arduino |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-11-18 by user95613
So I've made a parking sensor with the Ultrasonic sensor and a ledstrip. But the ledstrip doesn't turn yellow or green. I think it has to do with the Thresholds. Can anyone help me to set this up? I also want a longer distance greater than 1 meter. This is my code:
Beta Was this translation helpful? Give feedback.
All reactions