Loading Items

About This Project

In this project we will be lighting the rgb led on the pycom different colors.
Request Access

Project Info

Skills

  • Atom
  • Network
  • Python
  • Windows/linux/mac
  • Overall

Meet The Makers

Join Team
  • xjoexripx
    • User:xjoexripx
    • Rank:Master
    • Projects:31
    • Joined:2016
    • From:US
  • James
    • User:James
    • Rank:Master
    • Projects:30
    • Joined:2016
    • From:US
    Interests: Systems Architect. Love making robots and systems with moving parts.
  • Riley.Purvis
    • User:Riley.Purvis
    • Rank:Master Apprentice
    • Projects:12
    • Joined:2017
    • From:US
  • alexswym
    • User:alexswym
    • Rank:Master Apprentice
    • Projects:14
    • Joined:2017

No Comments yet. Why don't you add one?

.Basic setup

You need to get a hard wire connection to the Pycom board in order to set it up properly. To do that you will need any type of USB cable that you don't care about. You will have to cut the opposite end of the USB off and strip the red and black wires. Strip them just enough to wrap around the pins, but not so long that they can touch each other and short out. Wrap the red wire around VIN and the black wire around GND. It should look similar to this:



We chose to solder our connections in, but it is not required. You will just have to ensure that the connections are secure.

.

.

.Installing Atom

In order to start flashing code to your Pycom, you will need to have the Atom IDE installed.

Once you have Atom installed, you will need to open it and install the pycom package so that you can begin interfacing between Atom and the Pycom board.

In order to do so, open Atom and you will need to open "Global Settings"


From which the settings will appear, where you can open the install page and search for Pycom


When searching for Pycom a list of packages will appear, and you will need to install the Pymakr package.

.Connecting to the Pycom

You can connect to the Pycom via its own wifi, as long as the board is being powered. In order to connect to the board, go to networks and connect to

You will need to enter a password to connect to the WiPy, which by default is "www.pycom.io".

.Writing to Pycom

Now that you have successfully installed the Pycom plugin, you are now ready to flash code to the Pycom. Open a new file in Atom by clicking "File" > "New File". You should now have an editor window open.



From here you can paste the following code into the editor
import pycom
import time
pycom.heartbeat(False)
for cycles in range(10): # stop after 10 cycles
    pycom.rgbled(0x007f00) # green
    time.sleep(5)
    pycom.rgbled(0x7f7f00) # yellow
    time.sleep(1.5)
    pycom.rgbled(0x7f0000) # red
    time.sleep(4)
And you should have a screen similar to below:



  Details Downloads Size Get it

Atom download

Last updated on 10/21/2017

by Riley.Purvis

275 -
Qty   Item Where to Find Est. Cost More Info
1 Pycom WiPy 2.0 Item Number: C1015

Pycom WiPy 2.0

Item #: C1015

Powerful CPU, BLE and sta

$29.95
1 Micro USB cable

Micro USB cable

$4.00