Adafruit Flora Bluefruit LE

You will be redirected back to this guide once you sign in, and can then subscribe to this guide.

Intermediate Project guide

ATCommand

The ATCommand example allows you to execute AT commands from your sketch, and see the results in the Serial Monitor. This can be useful for debugging, or just testing different commands out to see how they work in the real world. It's a good one to start with!

Opening the Sketch

To open the ATCommand sketch, click on the File > Examples > Adafruit_BluefruitLE_nRF51 folder in the Arduino IDE and select atcommand:

adafruit_products_Screen_Shot_2015-04-30_at_23.10.01.png

This will open up a new instance of the example in the IDE, as shown below:

adafruit_products_atcomm.png

Configuration

Check the Configuration! page earlier to set up the sketch for Software/Hardware UART or Software/Hardware SPI. The default is hardware SPI

If using software or hardware Serial UART:

Running the Sketch

Once you upload the sketch to your board (via the arrow-shaped upload icon), and the upload process has finished, open up the Serial Monitor via Tools > Serial Monitor, and make sure that the baud rate in the lower right-hand corner is set to 115200:

adafruit_products_atcomman.png

To send an AT command to the Bluefruit LE module, enter the command in the textbox at the top of the Serial Monitor and click the Send button:

adafruit_products_Screen_Shot_2015-04-30_at_23.20.46.png

The response to the AT command will be displayed in the main part of the Serial Monitor. The response from 'ATI' is shown below:

adafruit_products_Screen_Shot_2015-04-30_at_23.22.33.png

You can do pretty much anything at this prompt, with the AT command set. Try AT+HELP to get a list of all commands, and try out ones like AT+HWGETDIETEMP (get temperature at the nRF51822 die) and AT+HWRANDOM (generate a random number)

adafruit_products_othercomm.png

Text editor powered by tinymce.

Related Guides

FLORA TV-B-Gone

STEAM-Punk Goggles

Getting Started with FLORA

Wearable Piezo Tones with Flora

Flora Snaps

LED Stego Flex Spike Hoodie

Intermediate

Adafruit Arduino Selection Guide

Heart Rate Badge

Chameleon Scarf

Intermediate

Haptic Headband

<a href=FLORA Pixel Brooch" />

Flora TSL2561 Lux Sensor

Flora Accelerometer

Experimenting with NeverWet + Electronics

Citi Bike Helmet

Intermediate
OUT OF STOCK NOTIFICATION

You have been successfully subscribed to the Notification List for this product and will therefore receive an e-mail from us when it is back in stock!

For security reasons, an e-mail has been sent to you acknowledging your subscription. Please remember that this subscription will not result in you receiving any e-mail from us about anything other than the restocking of this item.

If, for any reason, you would like to unsubscribe from the Notification List for this product you will find details of how to do so in the e-mail that has just been sent to you!