edge-impulse-daemon
The Portenta is now connected to Edge Impulse. I have collected a dataset of real baby crying sounds and some normal room noise.
MaxPooling1D(pool_size=2, strides=2, padding='same')
. This means the pool size is 2, where it takes 2 indices values and outputs the maximum value in that. And the stride length is 2, so it moves the pool layer twice in one direction.
edge-impulse-run-impulse
The above step will tell us whether the model is able to run smoothly on real hardware. After this step, now comes the real challenge! We need to integrate the Portenta H7 into the baby swing rocker!
For this, we need to deploy this model as source code and add our application on top of it.
So, we click the Create Library section in the Studio and select Arduino, then download the source code.
Open the Arduino IDE and select Sketch -> Include library and Add .Zip Library. Then select the downloaded Zip file on your machine.
portent_h7_microphone_continuous
I have written the application code on top of the default code in the example.
https://github.com/Manivannan-maker/smartbabyswingrocker