What's new

Help Arduino Sound + Ultrasonic Sensors for Mp3 Player

Aviatrix

Eternal Poster
Established
Joined
Jan 15, 2018
Posts
510
Reaction
440
Points
265
Hello po. I'm new to Arduino. Kung pwede po sana makahingi ng help kasi di ko na po alam next na gagawin.

Eto po yung mechanics ng finals project ko.
  • Device that can play christmas songs. (1 song lang po samin na nakamedley)
  • Can be activated by sound and motion sensor.
  • No christmas lights during daytime and with lights during nighttime (nakasabay sa beat ng music)

Nagtry po muna aKo paganahin yung sound and ultrasonic sensor separately. Nagwork naman sya, kaso nung icocombine ko na, dun na sya di nagwork.

SOUND SENSOR (1 CLAP SWITCH) - Can turn on and off music


ULTRASONIC SENSOR - Can only turn on music


COMBINED CODE - not working


Di ko pa po natatry isama yung coding for dancing lights kasi baka lalo wala pong magwork sakin kahit isa huhu. If may nakita po kayong mali, please let me know po. Or if may marerecommend po kayo na code sakin, I would really appreciate it po.

IMG_20221212_214204_437.jpg IMG_20221212_214010_323.jpg IMG_20221212_213817_419.jpg
 

Attachments

More info, post mo yung mga actual model ng module mo. Anong Arduino version?

Try mo i-refactor yung code mo tas gawin mong method na pwede i-callback for checking ng flags.
 
Back
Top