{"product_id":"challenger-rp2040-wifi-ble-mkii-chip-antenna-16-bit-accelerometer","title":"Challenger RP2040 WiFi\/BLE MkII (Chip Antenna + 16-bit Accelerometer)","description":"\u003cp\u003eThe \u003c\/p\u003e\u003cp\u003eiLabs\u003c\/p\u003e \u003cp\u003eChallenger\u003c\/p\u003e RP2040 WiFi\/BLE \u003cstrong\u003eMkII\u003c\/strong\u003e is an Arduino\/Micropython compatible \u003cp\u003eAdafruit Feather\u003c\/p\u003e format microcontroller board based on the RP2040 chip used in the Raspberry Pico, equipped with a WiFi\/BLE chip that provides both WiFi as well as BLE functionality.\n\u003cp\u003eThe MkII version is an updated version of the \u003c\/p\u003e\u003cp\u003efirst iteration\u003c\/p\u003e of the board including a new \u003cstrong\u003eBi2C connector\u003c\/strong\u003e. The new MkII version is fully backwards compatible with the original version which means you can use all the available software for it.\n\u003cp\u003eThis is the \u003cstrong\u003echip antenna + 16-bit accelerometer version\u003c\/strong\u003e of the Challenger RP2040 WiFi\/BLE MkII. \u003cstrong\u003eThis version of the board comes with a 16-bit accelerometer (MC3419) onboard\u003c\/strong\u003e. Other versions are detailed below.\u003c\/p\u003e\n\u003cp\u003e\u003c\/p\u003e\u003cp\u003ePlease read the datasheet for detailed information on this board.\u003c\/p\u003e\n\u003ch3\u003eVersions Available\u003c\/h3\u003e\n\u003cp\u003eThree versions of the Challenger RP2040 WiFi\/BLE MkII are available:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cp\u003eChallenger RP2040 WiFi\/BLE MkII (\u003cstrong\u003eChip Antenna\u003c\/strong\u003e)\u003c\/p\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cp\u003eChallenger RP2040 WiFi\/BLE MkII (\u003cstrong\u003eU.FL Connector\u003c\/strong\u003e)\u003c\/p\u003e\u003c\/li\u003e\n\u003cli\u003eChallenger RP2040 WiFi\/BLE MkII (\u003cstrong\u003eChip antenna + 16-bit accelerometer\u003c\/strong\u003e)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003c\/p\u003e\u003cp\u003e...or view the full range of Challenger boards here!\u003c\/p\u003e\n\u003ch3\u003eRP2040\u003c\/h3\u003e\n\u003cp\u003eThe RP2040 is the debut microcontroller from Raspberry Pi. It brings their signature values of high performance, low cost, and ease of use to the microcontroller space.\u003c\/p\u003e\n\u003cp\u003eWith a large on-chip memory, symmetric dual-core processor complex, deterministic bus fabric, and rich peripheral set augmented with our unique Programmable I\/O (PIO) subsystem, RP2040 provides professional users with unrivalled power and flexibility. With detailed documentation, a polished Circuitpython port, and a UF2 boot loader in ROM, it has the lowest possible barrier to entry for beginner and hobbyist users\u003c\/p\u003e\n\u003cp\u003e\u003c\/p\u003e\u003cp\u003eFor more detailed information about the RP2040, click here!\u003c\/p\u003e\n\u003ch3\u003eWiFi\/BLE\u003c\/h3\u003e\n\u003cp\u003eThe Challenger RP2040 WiFi\/BLE MkII board is equipped with a powerful combined single-chip solution that provides the WiFi and BLE connectivity of this board.\u003c\/p\u003e\n\u003cp\u003eThe chip we are using is the \u003cstrong\u003eESP32-C3FN4\u003c\/strong\u003e from Espressif and it is a complete WiFi subsystem that complies with IEEE 802.11b\/g\/n protocol and supports Station mode, SoftAP mode, SoftAP + Station mode, and promiscuous mode. It also implements a Bluetooth LE subsystem that supports the features of Bluetooth 5 and Bluetooth mesh.\u003c\/p\u003e\n\u003cp\u003eThis solution is based on a RISC-V microcontroller core and comes with 4MByte of internal flash and 408Kbyte of internal SRAM as well as the advanced 2.4GHz radio.\u003c\/p\u003e\n\u003cp\u003eThe ESP32-C3 device comes pre-loaded with the ESP-AT interpreter already programmed into flash. This interpreter provides the system with everything from low-level TCP\/UDP functionality up to high-level functions such as an onboard integrated web server, MQTT server and client functions and much more.\u003c\/p\u003e\n\u003cp\u003eFrom the get-go the onboard ESP32 delivers the following functionalities:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eBasic AT Commands\u003c\/li\u003e\n\u003cli\u003eWi-Fi AT Commands\u003c\/li\u003e\n\u003cli\u003eTCP-IP AT Commands\u003c\/li\u003e\n\u003cli\u003eBluetooth® Low Energy AT Commands\u003c\/li\u003e\n\u003cli\u003eMQTT AT Commands\u003c\/li\u003e\n\u003cli\u003eHTTP AT Commands\u003c\/li\u003e\n\u003cli\u003eWeb server AT Commands\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eSetting an MQTT client up for instance is a matter of three lines of code, and couldn’t be easier to use.\u003c\/p\u003e\n\u003ch3\u003eBi2C Connector\u003c\/h3\u003e\n\u003cp\u003eThis board includes a Bi2C connector, a small FFC connection used to connect other Bi2C devices (such as the examples listed below). \u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eThe Bi2C (Bus I2C) concept is a spin-off from the existing Groove, Stemma and Qwiic ecosystems where we use an FFC (Flexible Flat Cable) instead of normal threaded cables to create the connection. This means that we can get away with connectors that have 0.5mm pitch which makes them super thin and compact. \u003c\/span\u003e\u003c\/p\u003e\u003cp\u003eRead more about Bi2C here\u003c\/p\u003e.\n\u003cp\u003e\u003cspan\u003eYou can also use Bi2C with Qwiic\/STEMMA QT boards using the \u003c\/span\u003e\u003c\/p\u003e\u003cp\u003eBi2C Qwiic\/STEMMA QT adapter\u003c\/p\u003e, giving you an ultra-thin cable option for compact projects and enclosures.\n\u003cul\u003e\n\u003cli\u003e\u003cp\u003e\u003cspan\u003eBi2C - Qwiic\/STEMMA QT Adapter\u003cbr\u003e\u003c\/span\u003e\u003c\/p\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cp\u003e\u003cspan\u003eBi2C - Easy NFC\u003cbr\u003e\u003c\/span\u003e\u003c\/p\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cp\u003e\u003cspan\u003eBi2C - 16-bit Accelerometer\u003c\/span\u003e\u003c\/p\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch3\u003eOther cool stuff on the board\u003c\/h3\u003e\n\u003cp\u003eThe board comes with a sturdy USB-C connector, a battery connector that allows you to plug in standard \u003c\/p\u003e\u003cp\u003e1-cell LiPo batteries\u003c\/p\u003e. It also has an onboard charger chip that charges the battery whenever a USB cable is connected or 5V is applied to the USB power header pin.\n\u003ch2\u003ePinout\u003c\/h2\u003e\n\u003cp\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0176\/3274\/files\/challenger-rp2040-wifi-ble-mkII-chip-antenna-pinout_1.jpg?v=1671799596\" alt=\"\"\u003e\u003c\/p\u003e\n\u003ch2\u003eResources\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cp\u003eDatasheet\u003c\/p\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch3\u003eMicroPython\u003c\/h3\u003e\n\u003cp\u003eThe Challenger is fully compatible with both the micropython package\u003cspan\u003e \u003c\/span\u003e\u003c\/p\u003e\u003cp\u003efound at the Raspberry Pi site\u003c\/p\u003e\u003cspan\u003e \u003c\/span\u003eas well as\u003cspan\u003e \u003c\/span\u003e\u003cp\u003eAdafruit's CircuitPython\u003c\/p\u003e. Instruction on how to install the python interpreter of your choice is available on the respective websites.\n\u003ch3\u003eUsing the Arduino environment\u003c\/h3\u003e\n\u003cp\u003e\u003cspan\u003eWe’ve teamed up with Earle F. Philhower\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003c\/p\u003e\u003cp\u003eover at his Github page\u003c\/p\u003e\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003eto provide Arduino support for our Raspberry Pi Pico-based boards. All instructions on how to install the board support package as well as multiple examples on how to use the Raspberry Pi Pico processor can be found there.\u003c\/span\u003e\n\u003ch3\u003e\u003cstrong\u003eShort initialization example\u003c\/strong\u003e\u003c\/h3\u003e\n\u003cp\u003eTo simplify the hardware aspect of the WiFi modem we have included a small helper class in the Arduino IDE that is always available to you as a developer. This new class replaces the previous examples on how to do a proper reset and sync.\u003c\/p\u003e\n\u003cp\u003eThe first thing you need to do in your sketch is to include the HW support library and the WiFi library by entering:\u003c\/p\u003e\n\u003cpre\u003e\u003ccode\u003e#include \n#include \n\u003c\/code\u003e\u003c\/pre\u003e\n\u003cp\u003eAfter this, all you need to do before starting the WiFi manager is the following:\u003c\/p\u003e\n\u003cpre\u003e\u003ccode\u003eif (Challenger2040WiFi.reset())\n    Serial.println(F(\"WiFi Chip reset OK !\"));\nelse\n    Serial.println(F(\"Could not reset WiFi chip !\"));\n\u003c\/code\u003e\u003c\/pre\u003e\n\u003cp\u003eAfter these steps the modem is initialized and is ready to accept your commands. The reset() function of the built-in Challenger2040WiFi library will perform a HW reset of the WiFi modem and wait for it to return the “ready” prompt. After this, a WiFi manager can be started and start communicating with the modem. Here at iLabs we use the WiFiEspAT library and initializing the stack is as easy as:\u003c\/p\u003e\n\u003cpre\u003e\u003ccode\u003eWiFi.init(ESP_SERIAL);\n\u003c\/code\u003e\u003c\/pre\u003e\n\u003cp\u003eMake sure the library is included at the top of the file with: \u003cstrong\u003e#include \u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eAt this point, you can also do a check to make sure that the data link is set up properly:\u003c\/p\u003e\n\u003cpre\u003e\u003ccode\u003eif (WiFi.status() == WL_NO_MODULE) {\n    Serial.println(\"Communication with WiFi module failed!\");\n    \/\/ don't continue\n    while (true);\n}\n\u003c\/code\u003e\u003c\/pre\u003e\n\u003cp\u003eYou are now good to go, so doing something like this will work as expected:\u003c\/p\u003e\n\u003cpre\u003e\u003ccode\u003eSerial.println(\"Waiting for connection to WiFi\");\nwhile (WiFi.status() != WL_CONNECTED) {\n    delay(1000);\n    Serial.print('.');\n}\nSerial.println();\nSerial.println(\"Connected to WiFi network.\");\n\u003c\/code\u003e\u003c\/pre\u003e\n\u003ch3\u003e\u003cstrong\u003eChanging the baudrate\u003c\/strong\u003e\u003c\/h3\u003e\n\u003cp\u003eThe default baudrate between the RP2040 micro controller and the ESP8285 WiFi modem is 115200 and while this is probably good for most IoT applications that normally don’t send very much data it can sometimes be useful to increase the baudrate. The Challenger2040WiFi contains a method for doing this and again it is super simple to use. Just do the following and the baud rate will be altered on both systems and the devices will be synced up.\u003c\/p\u003e\n\u003cp\u003eAfter this you can proceed to communicate with the device as normal.\u003c\/p\u003e\n\u003cpre\u003e\u003ccode\u003eChallenger2040WiFi.changeBaudRate(921600);\n\u003c\/code\u003e\u003c\/pre\u003e\n\u003ch3\u003eSending and AT command\u003c\/h3\u003e\n\u003cp\u003eAfter the modem has been initialzed and it has reported that it is ready you can now send a command to it. Here’s an example on how a simple command can be sent.\u003c\/p\u003e\n\u003cpre\u003e\u003ccode\u003eSerial2.println(\"ATE0\");\n\u003c\/code\u003e\u003c\/pre\u003e\n\u003cp\u003eThis command simply tells the modem not to repeat everything back that you send to it. If you want to enable this again you would simply send the following command:\u003c\/p\u003e\n\u003cpre\u003e\u003ccode\u003eSerial2.println(\"ATE1\");\n\u003c\/code\u003e\u003c\/pre\u003e\n\u003ch3\u003ePass through example\u003c\/h3\u003e\n\u003cp\u003e\u003c\/p\u003e\u003cp\u003eThis example Arduino program\u003c\/p\u003e creates a USB2Serial pass through to the ESP32. This can be used to flash the ESP with new upgraded software or you can write your own code and use this short snippet to flash the device.\n\u003ch2\u003ePackage Contents\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e1x Challenger RP2040 WiFi\/BLE MkII \u003cstrong\u003e(Chip antenna + 16-bit accelerometer)\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003cli\u003e2x pin header\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"My Store","offers":[{"title":"Default Title","offer_id":50006274637979,"sku":"DGHLC 7504620617923","price":10.5,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0793\/4951\/4395\/files\/challenger-rp2040-wifi-ble-mkii-chip-antenna-16-bit-accelerometer-ilabs-105304-39993036701891_567f9dac-2f75-466b-8ed9-ccab10d6949d.jpg?v=1793488878","url":"https:\/\/thepihutshops.com\/products\/challenger-rp2040-wifi-ble-mkii-chip-antenna-16-bit-accelerometer","provider":"The Pi Hut","version":"1.0","type":"link"}