The Irritator: An IoT Noise Generator

Introduction

The point of the irritator is to be just that, irritating. This device uses a haptic motor and a speaker to create random tones and vibrations. The bluefruit bluetooth device will allow the machine to connect to a smartphone, which will then allow us to play randomly generated sounds and vibrations when certain buttons are pressed on the bluefruit smartphone app.

Import programIoT_Haptic_Noise_Irritator

Code to control a device which produces annoying tones and haptic motor pulses over bluetooth.

Overall Circuit

/media/uploads/MatthewJGTate/imag0537_1_ewnY0bA.jpg
The overall circuit uses an external 5v voltage source to power the multiple devices used in the circuit such as the haptic feedback motor, the mbed microcontroller, the audio amplifier and speaker, and the bluefruit bluetooth device.

Bluefruit - Low Energy Bluetooth Controller

/media/uploads/MatthewJGTate/bluefruit.jpg

mbedAdafruit BLE
gndgnd
VU(5v)Vin
ncRTS
gndCTS
p27 (Serial RX)TXO
p28 (Serial TX)RXI

The Bluefruit bluetooth device connects to the transmit and receive signals on the mbed which allows for a smartphone to connect to bluefruit which will then allow the smartphone to control different parts of the code implementation using various buttons on the smartphone app.

Bluefruit - Smartphone App

/media/uploads/MatthewJGTate/screenshot_20161102-163532.jpg

  • Button 1: Random tone between 8kHz and 2kHz.
  • Button 2: Continued haptic pulsing untill button is released.
  • Button 3: Turns on random mode which both haptic pulses and tones at 0.5s and 1.5s time intervals respectively.
  • Button 4: Turns off random mode

Speaker and Speaker Driver

/media/uploads/MatthewJGTate/speaker.jpg /media/uploads/MatthewJGTate/speaker_driver.jpg

mbedTPA2005D1Speaker
gndpwr - (gnd), in -
Vout (3.3V) or 5Vpwr +
p21 (PWM)in +
out ++
out --
Any DigitalOut px(optional)S (low for shutdown)

The speaker is driven by an audio amplifier to increase the power of the speaker and also allows for possible volume control on the speaker. The speaker will play annoying randomly generated frequencies when certain buttons are pressed on a smartphone connected to bluefruit.

Haptic Motor Driver

/media/uploads/MatthewJGTate/haptic_motor_driver.jpg

mbedDRV2605Lmotorbattery
VinVinVcc
gndgnd
gndIn
p10(SCL)SCL
p9(SDA)SDA
motor ++
motor --

The haptic motor will generate loud annoying vibrations that correspond to various buttons on a smartphone device connected to bluefruit


Please log in to post comments.