Getting Started for Arduino IDE users - with xChip Core CW01 (ESP8266) and IP01 programmer

Getting Started for Arduino IDE users - with xChip Core CW01 (ESP8266) and IP01 programmer

This is the first in a series of blogs to help Arduino users get started quickly with XinaBox. Will will cover the basics of assembling xChips, and programming simple operations to demonstrate the power of our xChip prototyping range. Please see our getting started page for a full list of resources supporting Arduino IDE users.

We will be programming in Arduino onto our CW01 core, which carries the popular ESP8266 from Espressif. These xChips are part of several convenient XinaBox kits (including the XK01 STEM Starter kit), which provide a range of selected sensors, output, power and control xChips for various user groups, as well as a pack of xBus connectors. 

The next blog will cover programming the core to drive the Red, Green and Blue LEDs. We hope you enjoy.

 

Getting started for Arduino IDE users - with xChip Core CW01 (ESP8266) and IP01 programmer

Contents:

1. What you need

2. Installations

3. To do

4. When things don't work as expected

5. What to do next

 

1. What you need

 

2. Installations

    • download and install the Arduino IDE that suits your workstation and operating system version
    • start the Arduino IDE, and install support for the ESP8266 , this will include support for the CW01
      • one of the simplest ways in which to add support for the ESP8266 is as follows 
        • open File->Preferences and add the following text to the

    "Additional Boards Manager URLs:" text box - note: this is text, not a hyperlink
    http://arduino.esp8266.com/stable/package_esp8266com_index.json

                     

        • click OK, and then select Tools->Board:->Boards Manager
        • type esp8266 into the text box at the top in order to find the esp8266 package
            
        • click the install button to install the package

     

    3. To do

      • lay the boards on a non-conductive surface so that you are able to see the board names, and join the IP01 and CW01 using one of the xBUS connectors - if you are can read the board names as below, they are in the right position, and cannot be joined together incorrectly
                                            
            IP01 - switches                                         IP01 - solder pads   
      • set the switches on the IP01 so that responses from the CW01 can be read 
        • the first version of the IP01 has two small slide switches - make sure that SW1 is set to position A, and SW2 is set to the DCE position
                                               
      top view                                      side view
        • the second version of the IP01 does not have switches
      • select "Generic ESP8266 Module" under Tools->Board in the Arduino IDE
      • although higher programming speeds can be used, setting the upload speed to 115200 is recommended
      • select DIO under under Tools->Flash Mode:
      • select 4Mb(1MbSPIFFS) under Tools->Flash Size: , all CW01 modules use an ESP8266 having 4Mb of flash memory

                

      • prior to plugging the IP01 board into the USB port, open Tools->Port in the Arduino IDE, and write down all the listed port numbers, for example, "COM1","COM2" etc
      • NOTE: device drivers for the FTDI USB chip on the IP01 board may differ depending on your workstation operating system
        • on Linux, device drivers are typically built into the operating system
        • on Mac, although installation steps are not normally required, if issues arise, instructions in the following document should be considered (https://www.ftdichip.com/Support/Documents/InstallGuides/Mac_OS_X_Installation_Guide.pdf)
      • plug in the IP01 and write down the new COM port number that is reported
      • select this port number under Tools->Port in the Arduino IDE
        • if only the port numbers as previously noted above are listed, it means the FTDI driver for the IP01 has not loaded - proceed to the links relating to installing the the FTDI device drivers listed in the above note

       

      4. When things don't work as expected

        • the two best approaches, in this order, are, Google the issue, and ask folks on forums
          • a word of caution when asking folks on forums - it really irritates folks if they see you have not attempted to find out what the cause of your issues may be prior to asking
          • if you do not first do some research yourself, your question will very rapidly attract the question: well what have you tried?
          • make brief notes about the steps you have attempted so that the forum reader can see what you have tried, this typically allows the reader to make the best recommendations

         

        5. What to do next

          • select Tools->Board Info in the Arduino IDE
            • even though some board information may not be available yet, the labels BN, VID, PID, and SN should appear
            • if the VID and PID fields contain numbers, it indicates that the Arduino IDE is able to communicate with the IP01 board 

                              

            • click OK to close the dialog
          • click OK to close the dialog
          ----- 
          Please see our getting started page for a full list of resources supporting Arduino IDE users, and the XK51 Arduino Zero Compatible Kit to build devices in minutes.
           
          XinaBox is a rapid electronics development solution for developing, making products and learning. Without soldering, wiring, breadboarding, or hardware knowledge, the developer can assemble a circuit in a matter of minutes, and get straight to coding in their choice of language.
          Previous article Win a fantastic XinaBox IoT Starter Kit, powered by Zerynth, with our competition in Electronics Weekly
          Next article XinaBox kits at The Things Conference Italy – explore LoRaWAN and Python with Zerynth

          Leave a comment

          Comments must be approved before appearing

          * Required fields