Difference between revisions of "MCookie-CoreRF"
(→Specification) |
(→Development) |
||
Line 130: | Line 130: | ||
==Development== | ==Development== | ||
* 1.To download programs to Microduino-CoreRF, players need to use '''[[Microduino-USBTTL]]''' module. | * 1.To download programs to Microduino-CoreRF, players need to use '''[[Microduino-USBTTL]]''' module. | ||
− | * 2.The tutorial of setting development environment and installing the driver is as | + | * 2.The tutorial of setting development environment and installing the driver is as following: |
**'''[[Microduino Getting start]]''' | **'''[[Microduino Getting start]]''' | ||
Revision as of 08:11, 24 August 2016
mCookie-CoreRF is AVR core board, supporting for 802.15 Wireless Protocol natively. It integrates 802.15.4 Wireless Protocol modules, including ZigBee, MAC/6LoWPAN and RF4CE. ContentsFeatures
SpecificationAdopt ATmega128RFA1 core:
Documents
ATmega128RFA1: http://www.atmel.com/zh/cn/devices/ATMEGA128RFA1.aspx?tab=documents Development
ApplicationMicroduino-Quadcopter Tutorial TestUse the example program “ZigduinoRadioExample” in ZigduinoRadio library to test void loop()
{
if (Serial.available())
{
ZigduinoRadio.beginTransmission();
Serial.println();
Serial.print("Tx: ");
while(Serial.available())
{
char c = Serial.read();
Serial.write(c);
ZigduinoRadio.write(c);
}
Serial.println();
ZigduinoRadio.endTransmission();
}
if (ZigduinoRadio.available())
{
Serial.println();
Serial.print("Rx: ");
while(ZigduinoRadio.available())
Serial.write(ZigduinoRadio.read());
Serial.println();
Serial.print("LQI: ");
Serial.print(ZigduinoRadio.getLqi(), 10);
Serial.print(", RSSI: ");
Serial.print(ZigduinoRadio.getLastRssi(), 10);
Serial.print(" dBm, ED: ");
Serial.print(ZigduinoRadio.getLastEd(), 10);
Serial.println("dBm");
}
delay(100);
}
void errHandle(radio_error_t err)
{
Serial.println();
Serial.print("Error: ");
Serial.print((uint8_t)err, 10);
Serial.println();
}
void onXmitDone(radio_tx_done_t x)
{
Serial.println();
Serial.print("TxDone: ");
Serial.print((uint8_t)x, 10);
Serial.println();
} This example realizes the wireless transmission function. Because Core RF adopts ports to download, you need to stack a Microduino-USBTTL at first: The board card , choose Microduino Core RF. After downloading programs to two Core-RF, open the serial port monitor, and input “Hello Microduino!”, then you will get the following result: The test is completed now. FAQPurchaseHistoryGallery | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||