Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting a microphone (with amplifier) to mCore and program by using Makeblock-Libraries? #78

Open
csanyipal opened this issue Apr 24, 2023 · 2 comments

Comments

@csanyipal
Copy link

csanyipal commented Apr 24, 2023

Hi,

we in our school made a microphon module with amplifier so it can sense clap's loudness;
so far we try it on an Arduino UNO board where it works.

Today we connect this module to mBot.
We do program mBot - mCore by using Arduino IDE 2.
The code snippet is this which include the MeMcore.h library:
#include(MeMCore.h);

Here we found some informationsabout usingArduino IDE to program mCore:

But this is for the RGB LED module; we wonder how to tell mCore that we did connect our microphon module to the Port 4?

Any advices will be appreciated!

--
Best, Paul

@csanyipal
Copy link
Author

csanyipal commented Apr 24, 2023

I think I could use the following code:

#include"MeMCore.h";
MeSoundSensor mySound(PORT_4);

I shall try this out tomorrow.

@csanyipal
Copy link
Author

#include"MeMCore.h";
MeSoundSensor mySound(PORT_4);

Sorry, but this code above does not work at all.
What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant