Jump to content
Forum sending old emails Read more... ×

MikeSchem

Members
  • Content Count

    8
  • Joined

  • Last visited

  1. MikeSchem

    Problem reading accelerometer over WiFi with CC3200

    Solved my own problem. For some reason you cannot use the LED's while polling the accelerometers.
  2. Hello, I am having a problem getting the CC3200's built in accelerometer to transmit data over WiFi. I have the BMA222 example working perfectly and I can send static data from the CC3200 easily, but when I combine the two I cannot send accelerometer data over WiFi faster than once every 10 seconds. #include <WiFi.h> #include <Wire.h> #include <BMA222.h> char ssid[] = "private"; char password[] = "vastcartoon245"; unsigned int localPort = 2390; IPAddress ip; long rssi; WiFiUDP Udp; BMA222 mySensor; void setup() { mySensor.begin(); uint8_t chipID = mySensor.chipID(); pinMode(RED_LED, OUTPUT); pinMode(YELLOW_LED, OUTPUT); pinMode(GREEN_LED, OUTPUT); digitalWrite(RED_LED, LOW); digitalWrite(YELLOW_LED, LOW); digitalWrite(GREEN_LED, LOW); Serial.begin(9600); WiFi.begin(ssid, password); while ( WiFi.status() != WL_CONNECTED) { digitalWrite(YELLOW_LED, HIGH); delay(150); digitalWrite(YELLOW_LED, LOW); delay(150); } digitalWrite(YELLOW_LED, HIGH); while (WiFi.localIP() == INADDR_NONE) { digitalWrite(GREEN_LED, HIGH); delay(150); digitalWrite(GREEN_LED, LOW); delay(150); } digitalWrite(GREEN_LED, HIGH); Udp.begin(localPort); } void loop() { ip = WiFi.localIP(); rssi = WiFi.RSSI(); int8_t acclX = mySensor.readXData(); int8_t acclY = mySensor.readYData(); int8_t acclZ = mySensor.readZData(); Udp.beginPacket("192.168.2.197", 42679); Udp.print("{ rssi: '"); Udp.print(rssi); Udp.print("', ip: '"); Udp.print(ip); Udp.print("', accl_x: '"); Udp.print(acclX); Udp.print("', accl_y: '"); Udp.print(acclY); Udp.print("', accl_z: '"); Udp.print(acclZ); Udp.print("' }"); Udp.endPacket(); delay(10); } Any help would be appreciated! Also, this is my output. Obviously rssi and accl are all wrong, but the main problem is it took about a min to get all of that. { rssi: '0', ip: '192.168.2.90', accl_x: '-8', accl_y: '-8', accl_z: '-8' } { rssi: '0', ip: '192.168.2.90', accl_x: '-8', accl_y: '-8', accl_z: '-8' } { rssi: '0', ip: '192.168.2.90', accl_x: '-8', accl_y: '-8', accl_z: '-8' }
  3. MikeSchem

    I2C on CC3200

    I have been attempting to work with serial communication between the board and other devices, but cannot get them to communicate while on connected to the booster pack rails. The only time I have ever gotten any Serial communication to work is by connecting a UART device to J6 & J7 in the middle. Is there a different Pin configuration I need to get those to work? I switched the jumpers on J6 & J7 down after downloading my code to the CC3200.
  4. MikeSchem

    Servo Control

    The example "servo sweep" program under "education" does not seem to compile it gives the error ServoSweep.ino:20:20: fatal error: Servo.h: No such file or directory Anyone able to get a servo to be controlled by the cc3200 with energia?
  5. MikeSchem

    Using a Camera with the CC3200

    So are you saying retrieve the data serially? The documentation for the CC3200 mentions support for an 8-bit camera. Is there a way to leverage this?
  6. MikeSchem

    Serial Communication with External Devices

    Awesome! Thanks greeeg! I connected the Jumpers on the J6/J7 block to the top two pins for downloading firmware, then connected my GPS module's TX to the RX pin on the CC3200 (middle left pin on r6/r7 block of pins) to receive serial data from the GPS module.
  7. MikeSchem

    Using a Camera with the CC3200

    I would like to use a camera with my CC3200 and transmit the feed over WiFi using enregia. Has anyone done this before? I fount a Booster pack for the camera here, but it doesn't seem to be out yet. I am also found the MT9D111 which seems to be the camera to use with the booster pack. As far as code, I don't see anything in the energia references for image processing.
  8. I am having trouble getting an external serial GPS device (GY-GPS6MV2) to communicate with my CC3200. I have this pin mapping set-up and I have connected pin 3 on the CC3200 to the TX pin of the GPS device. I have uploaded code that should make a test light turn off if it is receiving data, but the light remains on unless I type into the serial monitor. #define LED RED_LED void setup() { pinMode(3, INPUT); pinMode(4, OUTPUT); Serial.begin(9600); pinMode(LED, OUTPUT); Serial.println("GPS Module"); } void loop() { if (Serial.available()) { digitalWrite(LED, LOW); delay(100); Serial.println((char)Serial.read()); } else { digitalWrite(LED, HIGH); } } Please help!
×