MicroPython WebREPL on the Open Hardware Summit badge

The 2018 Open Hardware Summit badge runs MicroPython firmware which allows for an interactive programming experience known as the REPL:

Getting a MicroPython REPL prompt

REPL stands for Read Evaluate Print Loop, and is the name given to the interactive MicroPython prompt that you can access on the ESP8266. Using the REPL is by far the easiest way to test out your code and run commands.

There is an USB-to-serial adapter board which be used to access the REPL on the badge via the serial port.  However, a simpler option is to use the WebREPL:

WebREPL – a prompt over WiFi

WebREPL allows you to use the Python prompt over WiFi, connecting through a browser. The latest versions of Firefox and Chrome are supported.

For your convenience, WebREPL client is hosted at http://micropython.org/webrepl . Alternatively, you can install it locally from the the GitHub repository https://github.com/micropython/webrepl

Before connecting to WebREPL, you should set a password and enable it via a normal serial connection. Initial versions of MicroPython for ESP8266 came with WebREPL automatically enabled on the boot and with the ability to set a password via WiFi on the first connection, but as WebREPL was becoming more widely known and popular, the initial setup has switched to a wired connection for improved security:

import webrepl_setup

Follow the on-screen instructions and prompts. To make any changes active, you will need to reboot your device.

The MicroPython firmware for the badge has been updated to add WebREPL in the list of available apps.

You can order this USB to serial adapter board for the badge and then follow the instructions to build and flash the new firmware.  The WebREPL option will turn on WiFi and put the badge into AP mode.  Connect to it from your device, such as a laptop, and then connect to the badge using the WebREPL browser-based client.

Resources:

MicroPython WebREPL on the Open Hardware Summit badge

OHS18 badge: accelerometer demo, adapter board, Tindie listing

Updates for the 2018 Open Hardware Summit badge project:

MicroPython demo app for the Accelerometer

Want to use the KX122-1037 Accelerometer (datasheet) on the 2018 Open Hardware Summit badge?

USB-to-Serial adapter board

This adapter board to connects a USB-to-serial cable to the 2018 Open Hardware Summit badge.

Extra badges being sold on Tindie

The extra badges from the Summit are being sold here on Tindie as a fundraiser for the Ada Lovelace Fellowship which provides travel assistance to the Open Hardware Summit. All sales revenue will be 100% donated to the Open Source Hardware Association (OSHWA) for this purpose.

OHS18 badge: accelerometer demo, adapter board, Tindie listing

USB-to-serial adapter board for Open Hardware Summit badge

This adapter board to connects a USB-to-serial cable to the 2018 Open Hardware Summit badge.

DpulizcW0AABn7E

The badge features an ESP32 microcontroller running MicroPython firmware.  The firmware provides a Python interpreter prompt (REPL) on the serial port which allows interactive programming of the badge!

DpuljnbW0AAb7st

A previous blog post describes how to build and flash new MicroPython firmware to the badge:

 

The KiCad design files are shared on GitHub:

oshwabadge2018/adapter-board

Screenshot from 2018-10-20 02-25-11.pngThe board has been shared on OSH Park:

OSH Park: adapter board for USB-to-serial cable

Screenshot from 2018-10-18 00-02-21

Order from OSH Park

Bill of Materials (BoM)

  • Switch for programming mode
    • E-Switch EG1218
    • Slide Switch SPDT
    • Digi-Key: EG1903-ND
  • Pushbutton for reset
    • Omron B3F-1000
    • Tactile Switch SPST-NO
    • Digi-Key: SW400-ND
  • Header for FTDI usb-to-serial cable
    • TE AMP 9-146282-0-06
    • 1×6 Pin Header 0.1″ pitch
    • Digi-Key: A34253-06-ND
  • Header to connect J1 socket on badge
    • Harwin M20-9720345
    • 2×3 Pin Header 0.1″ pitch
    • Digi-Key: 952-1921-ND
  • J1 header socket on the badge
    • Harwin 952-1781-ND
    • 2×3 Header Socket 0.1″ pitch
    • Digi-Key: M20-7830346

Digi-Key shopping cart

Screenshot from 2018-10-20 02-28-43

Resources:

USB-to-serial adapter board for Open Hardware Summit badge

Open Hardware Summit badge: accelerometer demo

IMG_20181016_084030

Want to use the KX122-1037 Accelerometer (datasheet) on the 2018 Open Hardware Summit badge?

Step 1:

Make sure that R12 and R13 are populated.

IMG_20181004_202602 (1)

R12 and R13 are 2.2K Ohm resistors for the I2C bus.  This is needed for the accelerometer to work.  We mistakenly had DNP (do not place) on the BoM (Bill of Materials) for R12 and R13.

IMG_20181004_202414 (1)

Awesome people at Artisan’s Asylum makerspace helped to solder these resistors on the badges right before Open Hardware Summit! 💜✨

It is possible that some badges were not reworked.  Please email [email protected] if they are missing from your badge.

This photo shows what is will look like when R12 and R13 are missing:

IMG_20181004_213549

Step 2:

Download the Python file named accelerometer.py from the ohs18apps repository on GitHub:Screenshot from 2018-10-17 23-35-18.png

Start the FTP server and connect to the SSID listed on the badge:

Open your FTP client application and connect to 192.168.4.1:
Screenshot from 2018-10-03 23-58-59

After the transfer completes, power cycle the badge by removing the batteries and reinserting.

Press the left application button (with the paintbrush and pencil icons) to enter the menu.  accelerometer.py should then be listed under Available Apps menu.  Press the down cursor until accelerometer.py is selected and then press the application button again.

IMG_20181016_083924

Step 3:

The KX122-1037 Accelerometer datasheet describes the 3 different axis:

Screenshot from 2018-10-17 21-25-45

Here are examples of the X, Y and Z axis of the accelerometer for reference:

Resources:

Open Hardware Summit badge: accelerometer demo

Live from Artisan’s Asylum!

Dn-jpibXkAI2O2q

@Alex Camilo @AVR @Jimmie Rodgers @Andrew Sowa and Drew Fustini are all at Artisan’s  Asylum tonight and the badge firmware is coming together quite nicely!

Thanks so much to Artisan’s Asylum for giving us space to bring this badge project to completion!

Live from Artisan’s Asylum!

Open Hardware Summit: learn-to-solder badge add-on

41931822_10217675772634508_6864049649649451008_n

The Open Hardware Summit is coming on Thursday, September 27th at MITOSH Park and Screaming Circuits are producing an electronic conference badge this year for the Summit.  The badge features an e-paper display and an ESP32 microcontroller.

 

The OHS18 badge also features the DefCon 26 #badgelife add-on header.  Andrew Sowa designed this OSHWA-themed Learn to Solder add-on board to connector the badge add-on header:

Learn-to-solder OHS18 badge add-on

The board is a shared project on OSH Park:

Screenshot from 2018-09-20 10-04-11

Order from OSH Park

 

Open Hardware Summit: learn-to-solder badge add-on

Open Hardware Summit badges have arrived

4663241536763907298 (1)

The Open Hardware Summit is coming on Thursday, September 27th at MITOSH Park and Screaming Circuits are producing an electronic conference badge this year for the Summit.  The badge features an e-paper display and an ESP32 microcontroller.

All 300 badges assembled by Screaming Circuits have arrived!

Thanks to Duane Benson and the rest of the team at Screaming Circuits for all the support on this project.

Follow the Open Hardware Summit 2018 badge project on Hackaday.io!

Open Hardware Summit badges have arrived

Ada Lovelace Fellowship deadline is April 30th

The application deadline is Monday, April 30th, for the Ada Lovelace Fellowship to attend the 2018 Open Hardware Summit:

30576304890_f4bcf49df9_z (1)

Ada Lovelace Fellowship

The Ada Lovelace Fellowship was founded in 2013 prior to the annual Open Hardware Summit at MIT by Summit Chair Addie Wagenknecht and OSHWA Director Alicia Gibb as a way to encourage women,  LGBTA+ and/or other minorities in open technology and culture to actively participate and foster a more diverse community within open source.

For the sixth year, we are excited to offer up to ten Open Hardware Fellowships to members of the community which includes a $500 travel stipend and entrance to the Open Hardware Summit.

By offering the annual travel and summit conference assistance to community members,  the Open Source Hardware Association hopes we as a community can encourage more women, LGBTA+ and/or people of color to participate in open source. We have many strong leaders and speakers in our field and we personally want to continue the trend upward.

Ada Lovelace Fellowship deadline is April 30th

Applications Open: Ada Lovelace Fellowships For 2018 Open Hardware Summit

From  on the Hackaday blog:

ada-lovelace-featured

Ada Lovelace Fellowships For 2018 Open Hardware Summit

The Open Source Hardware Association is now accepting applications for the Ada Lovelace fellowship which provides free admission to the Open Hardware Summit and a $500 travel stipend. One of OSHWA’s goals is to foster a more diverse community within open source. As part of this, Ada Lovelace Fellowships are open to women, LGBTA+, and people of color. There are a total of 10 fellowships available and applications are due by April 30th. The Open Hardware Summit will be held on September 27th at MIT.

Screenshot from 2018-04-07 21-57-01

The fellowship program, founded by Addie Wagenknecht and Alicia Gibb in 2013, builds on the ideal that Open Hardware is one way to reduce the barriers associated in access to technology. Removing some of the financial barriers associated with attending the Summit will help to ensure more people of diverse backgrounds are involved in shaping the Open Hardware world. In addition to the talks shared at the gathering, over the last several year OSWHA has been evolving the Open Hardware definition and an Open Hardware certification.

Applications Open: Ada Lovelace Fellowships For 2018 Open Hardware Summit