The PIC-IoT WG is a Wi-Fi development board from Microchip based on the PIC24FJ128GA705 MCU and uses the WINC1510 Wi-Fi SmartConnect IoT module. The board features onboard sensors for measuring ambient temperature and ambient light. The board is similar to the AVR-IoT WG, but is designed for more complex applications and offers additional memory and decreased power consumption.
PIC-IoT WG projects start with the following sensor elements imported from the Element Library:
As is standard with any project type that uses Wi-Fi, cloud elements are accessible from both the Embedded and Application tabs in Atmosphere Studio.
Some devices may have limitations or design restrictions that cause unexpected behavior when used with Atmosphere. Specific information and details pertaining to the PIC-IoT WG and its performance on Atmosphere is noted below.
There are no known issues, unexpected behaviors, or hardware limitations while using the PIC-IoT WG with Atmosphere.
Default Pin Mapping
Atmosphere configures each peripheral to a default pin for every supported device, based on ideal pairing of pins and their usage. The default pin configuration is set for convenience and enables each peripheral to work naturally without needing to be modified.
PIC-IoT WG projects start with the following pin configuration:
||Click Connector AN Pin||Maps to
||Click Connector RST Pin||Maps to
||Click Connector SPI CS Pin||Maps to
||Click Connector SPI CLK Pin||Maps to
||Click Connector SPI MISO Pin||Maps to
||Click Connector SPI MOSI Pin||Maps to
||Click Connector PWM Pin||Maps to
||Click Connector INT Pin||Maps to
||Click Connector UART RX Pin||Maps to
||Click Connector UART TX Pin||Maps to
||Click Connector I2C SCL Pin||Maps to
||Click Connector I2C SDA Pin||Maps to
||ERR User LED|
||DATA User LED|
||CONN User LED||Used by Atmosphere to indicate whether or not the PIC-IoT is connected to an access point.|
||WIFI User LED||Used by Atmosphere to indicate that the device has started up properly. Will blink when unprovisioned.|
||Analog pin for onboard light sensor|
The default pin for any peripheral can be changed within an element's properties, from an element that references that particular peripheral.
Below is information regarding the PIC-IoT WG’s exposed peripherals.
This I2C bus is exposed the SCL and SDA pins on the click connector.
This I2C bus is not exposed to the user, and is connected to the device’s internal MCP9808 temperature sensor.
This SPI bus is exposed via the SCK, MOSI, and MISO pins on the click connector. You can use any desired GPIO for your chip select.
UART1 (USB Debug Console)
This UART is exposed via the micro-USB connector on the PIC-IoT.
This UART is exposed via the TX and RX pins on the click connector.
The AN pin on the click connector is the only user accessible ADC input.
Any GPIO pin can be used for PWM output.
Programming the PIC-IoT WG involves downloading its project firmware from Atmosphere Studio and directly transferring it to the device over USB.
Prior to programming a PIC-IoT WG, ensure you have the following setup configuration:
- The device is connected to the computer via USB. It will display as a mass storage device.
- The project to be programmed has been compiled.
With setup complete, you can program the PIC-IoT WG:
- From Atmosphere Studio’s Embedded tab, click the button from the tab’s toolbar. This downloads a .hex file containing the project’s compiled firmware.
- Locate the downloaded file on your computer, and move it into the PIC-IoT WG mass storage device. This initiates programming of the PIC-IoT WG, which is represented by a series of blinking LEDs and then it will reboot.
The blue LED will then turn on, followed by the yellow LED. This indicates the device is programmed with the project’s embedded firmware.
Guides and Tutorials
Get started using the PIC-IoT WG with Atmosphere by walking through the following guides:
|PIC-IoT WG Guides|
|Getting Started with PIC-IoT WG|
Atmosphere includes a variety of PIC-IoT WG demo projects for users of all levels. Check them out by clicking the demo’s name to open the project in Atmosphere.
|Onboard Sensor Demo||An embedded-to-cloud demo that showcases the onboard sensors of the PIC-IoT WG. Measure temperature and light data then send it to the cloud. If the light value exceeds a set limit, the device goes into an alarming state.|
|Mathematical Operation PIC-IoT Demo||The operation element is used within this demo project by converting the temperature in Celsius to Fahrenheit and printing both the values on the debug console.|
|PIC-IoT Condition Element Demo||The condition element is used within this demo project to check whenever a temperature value exceeds a certain limit, and if so sends the user a system notification.|
The Atmosphere video library contains the following videos on the PIC-IoT WG:
Videos for the PIC-IoT WG coming soon!
The following additional resources and downloadable files are available for the PIC-IoT WG: