Hi,
I've just installed Arduino IDE and bought a Grove Beginner Kit, trying to make a mini car race game with Unity. Since I'm learning Arduino, I clicked the Example sketches and clicked the 01.Basics - AnalogReadSerial. So as I suppose, the values of sensors should appear on my Serial Monitor for each millisecond, but it's blank, although I've connected the Grove Beginner Kit to my pc (PWR light on).
Also I have downloaded the CP210x_Universal_Windows_Driver, since I'm using Windows. I also checked in the Device Manager that it's put on COM5, thus I modified my Arduino setting to:
Board: Arduino Uno (checked a tutorial)
Port: COM5
I also checked the Bits per Second: 9600, which is exactly the same to 9600 Baud in Serial Monitor.
Can someone help me??
Down below the codes:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// print out the value you read:
Serial.println(sensorValue);
delay(1); // delay in between reads for stability
}
I only have the Grove Beginner Kit (for Arduino) which has things like Buzzer, OLED Display, Pushbutton, Rotary Potentiometer etc.. I don't have the Arduino UNO, which I suppose they are the same kind of kit to use for programming on Arduino IDE.
I have connected the Grove Beginner Kit to my pc via USB, and since the light of PWR was on, I assume it's connected...
But aren't they the same kind of kit, where you can connect wires between cables? Or is Arduino UNO a special necessary kit that functions like a connector between my Grove thing and pc?
My mistake! I thought the "Grove Beginner Kit (for Arduino)" was a set of accessories that you can connect to an Arduino UNO. On closer inspection it appears that the main board in the kit has a processor on it. I think the main board should be treated like an Arduino UNO. If you uploaded the sketch without problems I don't know what could be keeping it from displaying text on Serial Monitor.
Dw. I think I found the problem. It seems that I need some codes to integrate with Arduino made by Grove... Searching the right ones on Github now. Hoping that this time everything will be fine.
Lol I found the problem. I have set the wrong Sketchbook location in the Preferences. That's why nothing is appearing in the Serial Monitor.
Thanks for your help tho, sorry for occupying your time.