As a starter, trying to find out how to connect a sensor with Grove-connection to the base.
I would like to connect the sensor to one of the available ports (0/1, 2/3, 6/7,8/9).
I would like to recieve a “standard piece of code” to get it working.
I quess the code has to have input like “enable pin 11” and some more.
I found this sample code:
// test code for Grove - Sound Sensor
// loovee @ 2016-8-30
const int pinAdc = A0;
//Serial.println(“Grove - Sound Sensor Test…”);
long sum = 0;
for(int i=0; i<32; i++)
sum += analogRead(pinAdc);
sum >>= 5; Serial.println(sum); delay(10);
I hope someone can help me out.
Some other samples allreaydy worked fine. Just don’t know how to enable the right “port”.