misc/watchy-experimentation#1: Setup Arduino IDE



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Created: 14-Jun-23 15:45


Labels: Task

Description

Need to get the Arduino IDE setup so that it can build and install firmware onto the Watchy



Toggle State Changes

Activity


assigned to @btasker

Docs are here but broadly

  • Go to Arduino IDE downloads
  • Download the Linux x86_64 zip into ~/programs/arduino
  • Unpack it (unzip arduino-ide_2.1.0_Linux_64bit.zip)
  • Fire up the IDE ./arduino-ide
  • Choose File -> Preferences
  • Add an additional board manager URL (https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json) Screenshot_20230614_164700
  • Close that
  • Go Tools -> Board -> Board Manager
  • Search for esp32
  • Install the esp32 platform
  • You wait... time passes
  • Go to Sketch -> Include Library -> Manage Libraries
  • Search for and install watchy
  • When prompted, choose Install All

Also need to go

  • Tools -> Board -> ESP32 -> Watchy (it is in there, hit W until it shows up)
  • Tools -> Board Revision -> Watchy 2.0
  • Tools -> Partition Scheme -> Huge App

On my first build attempt, I got

ModuleNotFoundError: No module named 'serial'

So

pip install pyserial

Receiving

WARNING: library Rtc_Pcf8563 claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).

Is apparently fine

In order to upload to the watch:

  • Plug in the USB cable
  • Go Tools -> Port -> select /dev/TTYUSB0 (or whatever showed up)
  • Ensure that your user has permission to write to that serial port (on Ubuntu, make sure you're in the dialout group)
  • Click the Upload button

Wait whilst the Sketch compiles and uploads Screenshot_20230614_174207