Getting input from Arduino to trigger audio

Hello I want to play sound with speaker by the tilt sensor.

I found the tutorial but I want to play sound rather than blinking a LED light.

Would that be possible with ReadyMaker ?

Thanks,

Bongtack

How to use tilt sensor

2 Likes

Hi, this example:

  1. Connect Your an Arduino UNO (Add him from the “Text and Interface” Tab)
  2. Add the another object from your library
  3. Tap to the object and open the Audio Tab
  4. Drag the sound from your library to the Audio Tab
  5. Open the Event Manager and create the new Events:

Connection scheme for the “Tilt Sensor” : https://www.youtube.com/watch?v=6wIVrSnRF6I

2 Likes

Nice Thanks!!

I really appreciate it.

I just have one more question.

It seems the delay time that analog port receive data is 1 second.

Is there any way I can make it 5 seconds by any chance ?

Best,

2 Likes

"It seems the delay time that analog port receive data is 1 second.

Is there any way I can make it 5 seconds by any chance ?"

Hello @bongtack! Yes, We can add to the “2” and “3” events new conditions. System runtime/repeat every/5 sec.
Example:
Arduino Uno/Analog Port 0/Analog Less Than/ 5 units
And
System/Runtime/Repeat Every/5 sec
Kate Music/African Drums String/Stop playing

Also you can add the Timer from the “Text & Interface” Tab and use him.
Example:

Arduino Uno/Analog Port 0/Analog Less Than/ 5 units
And
Timer/Timer Label/ Greater Than/5 sec
Kate Music/African Drums String/Stop playing
Timer/Timer Label/Reset Timer

1 Like