This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3200: microcontroller won't run Grove sensor pack

Other Parts Discussed in Thread: ENERGIA, CC3200

I'm working on a project that is using the GROVE STARTER KIT for LaunchPad and I'm trying to run one of the sensors/indicators, a buzzer in this case, with the CC3200. I'm programming the CC3200 with Energia. The code successfully compiles and downloads, but then nothing happens (the buzzer doesn't buzz). Here is the code:

#define BUZZER 40
#define LIGHT_SENSOR 24

int analog_value = 0;
int8_t bits[4] = {0};

void setup() {
// put your setup code here, to run once:
pinMode(BUZZER, OUTPUT);
pinMode(LIGHT_SENSOR, INPUT);
}

void loop() {
// put your main code here, to run repeatedly:
analog_value = analogRead(LIGHT_SENSOR);
digitalWrite(BUZZER,HIGH);
delay(10000);
digitalWrite(BUZZER,LOW);
delay(10000);
Serial.print("RUNNING");
}

The pins are correctly numbered and I'm using the proper commands. Any ideas on how to fix this issue?

  • Laura,

    Can you verify that the you are hooking up the Launchpad to the buzzer correctly? I would do a quick check of your hardware setup first before we see if its a software problem.

    If that isn't the problem, are you seeing the "RUNNING" serial print log? If not, then one of your functions could be causing an exception and crashing.

    Regards,
    VR