Skip to content

Latest commit

 

History

History
51 lines (28 loc) · 2.93 KB

TutorialGuide.md

File metadata and controls

51 lines (28 loc) · 2.93 KB

Full guide on building Clap2Dance device

1. Hardware setup

The hardware used are:

  1. Raspberry Pi
  2. Microphone Module
  3. Bluetooth Speaker

Before the raspberry pi can be worked on, we have to setup by installing and configuring the OS. For this setup, i am using Debian Raspbian Operating system. Load the image on the Raspberry pi the hardware will be ready to be configured. The desktop interface is shown below.

Screenshot 2022-05-01 015552

Using bluetooth, the lousspeaker is connected to the Raspberry pi and the microphone is connected via the GPIO and the USB terminal.

2. Training the model

Using Google cloud machine learning's Teachable Machine, the background noise and the clap samples are collected and the model is trained with these data.

Screenshot 2022-04-30 185610

Screenshot 2022-04-30 185627

Screenshot 2022-04-30 185752

Screenshot 2022-04-30 185919

After training the model, the model is exported as a Tensorflow Lite model with extension .tflite. The model is then used in the code to recognise clap samples

Screenshot 2022-04-30 190248

Screenshot 2022-04-30 152915

Screenshot 2022-04-30 185432

3. Setting up Twilio

To set up twilio, the module to control it is pip installed in the raspberry pi using ""pip install twilio". After twilio has been installed the functionality is tested using a sample code, twiliosms.py

Screenshot 2022-04-30 152856

Screenshot 2022-04-30 152757

4. Finished Work

20220501_063746 20220501_063751 20220501_011823 20220501_011841