LoginSignup
0
0

聴覚障害のある方むけ:音量の大小を振動で伝えるしくみ

Last updated at Posted at 2023-07-15

概要

聴覚障害のある方が音を強弱やリズムを感じることが難しいため、それをテクノロジーでサポートする仕組みを試作。

動画

全体写真

onnryou.JPG

処理のながれ

micro:bit v2(内蔵のマイクで音量の大小を感知し、その値をモータードライバに回転数として渡す)

micro:bit用拡張ボードKS0308(モータドライバー)

振動モーター

コード

image.png

soundcheck.js
pins.digitalWritePin(DigitalPin.P14, 1)
basic.forever(function () {
    led.setBrightness(input.soundLevel())
    led.plotBarGraph(
    input.soundLevel(),
    255,
    true
    )
    pins.analogWritePin(AnalogPin.P1, Math.map(input.soundLevel(), 0, 255, 300, 1200))
    pins.digitalWritePin(DigitalPin.P13, 1)
    pins.digitalWritePin(DigitalPin.P12, 0)
})

■micro:bitのProject Link

参考にしたサイト

マイクロビット (micro:bit) v2 マイクの基本

マイクロビット用のモータードライバ拡張ボード「KS0308」の使い方

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0