To test the prototype, I used some tricks to simulate the baby: I got the crying sound on the Internet and simply reproduced it with an audio player. Regarding the breath, I used doll, manually pressurizing its chest in time with my breathing. I admit it's not the best test, but my children are too big to help me in these experiments!
To set up all peripherals and drivers, we can use
SYSINIT.sh, as in the following command:
root@beaglebone:~# ./SYSINIT.sh done!
This command can be found in the
chapter_06/SYSINIT.sh file in the book's example code repository.
Then, I executed both the
lcd.sh programs by using the following command line in order to send all outputs to the terminal that runs on the tiny LCD: