Difference between revisions of "Audio Sensor"
Line 9: | Line 9: | ||
We have connected the sensor with BoSL board, VIN connected to 3.3v, GND connected to GND, and we accidently found that when REC is connected to GND, it started to change to Record mode just like press REC button. And when PLAY pin connected to GND, it has the same function as pressing PLAY button. So we thought the easist methond is to connect an Digital pin with the REC pin and PLAY pin, pull them up or down to control that :) | We have connected the sensor with BoSL board, VIN connected to 3.3v, GND connected to GND, and we accidently found that when REC is connected to GND, it started to change to Record mode just like press REC button. And when PLAY pin connected to GND, it has the same function as pressing PLAY button. So we thought the easist methond is to connect an Digital pin with the REC pin and PLAY pin, pull them up or down to control that :) | ||
+ | |||
+ | [[File:PCB layout.jpg|400px]] | ||
Revision as of 02:41, 17 February 2024
This page is used for talking about the tests of the audio sensor.
The audio sensor we want to test is DFRobot Voice Recorder V1.0, the link is https://www.dfrobot.com/product-2185.html
From the sensor instructions, it seems that the audio sensor is compatible with Arduino, so we would like to use the BoSL board to control the sensor and applied in some projects. For example, we can implement the audio sensor in the pits for illegal discharge detection project in Stony Creek catchment, the idea is we record the audio every 6 minutes and each time take 500 milliseconds recording. Then we can analyse the audio we recorded and see if we can capture the water flow frequency.
Before 2023 Christmas
We have connected the sensor with BoSL board, VIN connected to 3.3v, GND connected to GND, and we accidently found that when REC is connected to GND, it started to change to Record mode just like press REC button. And when PLAY pin connected to GND, it has the same function as pressing PLAY button. So we thought the easist methond is to connect an Digital pin with the REC pin and PLAY pin, pull them up or down to control that :)
January 2024
We wrote a code for BoSL board which regularly pull up/pull down the pin connected to the audio sensor, tried to make the sensor under BoSL boards control. However, the audio senosr cannot be controlled well, the sensor status ranmondly changed Record mode and Play mode which did not make the sensor work. We thought it was the connection issue of the jumber wire, so we solder wires on the audio sensor pins, that should not have any problem. Same thing happend. And I did not use the BoSL board to control that, just manually use a jumper wire connecting to the GND and try to touch the REC pin on the sensor, it sometimes work and sometimes not work. This method is not stable!
February 2024
After we found the sensor not working by pulling down the pins to GND, we follow the sensor instructions from the offical website, which using arduion code, installed the library and connected TX and RX pins to control the sensor. However, after we using this method and follow the connections, the sensor did not work. The serial monitor output said "Init failed, please check the wire connection". We checked all the connections, but no problem was found.
Actually we checked everything, all of them look as same as the instrucion says, the only different is we are using BoSL board and the insruction used DFRduino UNO R3, which is very similar to Arduino UNO board, so we replaced the BoSL board to Arduion UNO board, and after we changed that, the audio sensor worked!
I thought maybe because of the AT-mega on the Arduino UNO board is the big one, not the mounted one, so I found a BoSL v0.3 board, this version has big AT-mega chip, but after I changed to BoSL v0.3, it still does not work.
So there are some problem with our current BoSL board. I will talk with the designer.