Makeblock Neuron "delay"code not working?


#1

Hi, I want to make an alarm clock. I will programming with Neuron app and use neuron modules: bluetooth, power, buzzer.

This is my block code:

It means: I take “Now” block. And if hour==12 and min==10, first it will wait 10 seconds and then buzzer will make sound.

But my code does not work. I searched on your neuron web site but i did not find anything about “delay” block code.

Does anyone have any idea?


#2

Do not use the Delay statement but the Hold statement.
After the And statement, add the Interval statement with repetition.


#3

Thanks for reply ! :slight_smile:

I did it like you said.

But the hold statement does not work as I want. Actually it never works.

I used the hold statement and chose “hold for time”. When minutes==48, it did not wait 20 seconds(hold block), sound output at intervals.

It should wait 20 seconds and it makes a sound.


#4

Hi Gungorhilal,

I did not really test because I was outside.
I made you a simple alarm and a double alarm (the condition on the seconds corresponds to the duration)
Is that what you’re looking for ?

AlarmeSimple
AlarmeDouble

Source : https://neuron.kynox.com/autres/astuces-code


#5

Still me and my super english,

For your experience to work without your tablet. If you have a WIFI block, upload your experience.
I advise you to adjust your time in your block.

heure

Still in french as help but there are pictures.
Adjust the time of the WIFI block


#6

hey, really thank you very much !
I tried and it works ! :blush:


#7