Skip to content

Add support for Arduino Zero #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 31, 2015
Merged

Add support for Arduino Zero #227

merged 6 commits into from
Oct 31, 2015

Conversation

soundanalogous
Copy link
Member

You will need an official Arduino Pro Zero board. Do not get an M0 Pro board, that will not work with Firmata.

In order to use, you'll have to make sure the Servo library is at least version 1.1.0. Follow these instructions:

  1. In the Arduino IDE (the arduino.cc one), go to Sketch > Include libraries > Manage libraries.
  2. Search for "Servo" and scroll down the results list to "Servo by Michael Margolis..."
  3. Tap on the list item (I wish this was more clear in the UI), then an option to Update will appear
  4. Click on update.

TODO:

  • Ensure only digital I/O pins are reset in systemResetCallback
  • Thorough testing

@soundanalogous soundanalogous added this to the 2.5 milestone Oct 11, 2015
@soundanalogous
Copy link
Member Author

This is going to push out the v2.5 release at least a week while I wait for my Zero board to arrive.

@rwaldron
Copy link
Contributor

Can you link to the Zero you ordered? I don't want to order the wrong thing again.

@soundanalogous
Copy link
Member Author

I ordered direct from arduino.cc: http://store-usa.arduino.cc/products/abx00003

@soundanalogous
Copy link
Member Author

Zero does not seem to be very stable yet. I'm seeing strange issues like digital input pins no longer working when a digital output pin is toggled on the same port. Need to do more experimentation outside of Firmata to better understand the root of the issues.

@soundanalogous
Copy link
Member Author

Zero does not like this: https://github.com/firmata/arduino/blob/master/examples/StandardFirmata/StandardFirmata.ino#L266. Commenting out that line will enable digital input. However it still does not solve all problems I'm seeing.

@soundanalogous
Copy link
Member Author

Issue with Zero per previous comment is describe here: #231

@soundanalogous
Copy link
Member Author

Turns out for Zero, internal pull-ups can only be set by setting the pinMode to INPUT_PULLUP so the last commit does not help the Zero situation since writing HIGH to an input pin will not enable internal pull ups on Zero (but will for all non SAMD boards).

@soundanalogous soundanalogous changed the title add Boards.h definition for Arduino Zero Add support for Arduino Zero Oct 25, 2015
@soundanalogous
Copy link
Member Author

Fixed internal pull-up issue in last commit.

soundanalogous added a commit that referenced this pull request Oct 31, 2015
Add support for Arduino Zero
@soundanalogous soundanalogous merged commit 526fa5f into master Oct 31, 2015
@soundanalogous soundanalogous deleted the zero-support branch November 1, 2015 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants