Skip to content

Add support for Arduino MKR WiFi 1010 #418

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 1 commit into from
Apr 5, 2019

Conversation

gdsports
Copy link
Contributor

@gdsports gdsports commented Apr 4, 2019

@dowlingw @eccoscreen
The board uses the U-Blox WiFi NINA chip which has an ESP32 inside running
NINA firmware. The SAMD21 is connected to the U-Blox chip via SPI. The
WiFININA library is used to communicate between the U-Blox chip and the
SAMD21. Other boards use the same U-Blox chip such as the MKR Vidor 4000
and the Uno WiFi Rev2. Additional changes will be required to support
those boards. See #407

The board uses the U-Blox WiFi NINA chip which has an ESP32 inside running
NINA firmware. The SAMD21 is connected to the U-Blox chip via SPI. The
WiFININA library is used to communicate between the U-Blox chip and the
SAMD21. Other boards use the same U-Blox chip such as the MKR Vidor 4000
and the Uno WiFi Rev2. Additional changes will be required to support
those boards.
@soundanalogous
Copy link
Member

Which manual tests have you run against this configuration?

@gdsports
Copy link
Contributor Author

gdsports commented Apr 5, 2019

So far only this code. LED blinks and floating A0 returns random garbage.

var Firmata = require("firmata").Board;
var EtherPortClient = require("etherport-client").EtherPortClient;

var board = new Firmata(new EtherPortClient({
	host: "192.168.1.116",
	port: 3030
}));

board.on("ready", function() {
  console.log("READY!");
  console.log(
    board.firmware.name + "-" +
    board.firmware.version.major + "." +
    board.firmware.version.minor
  );

  var state = 1;
  var lastVal = 0;

  this.pinMode(6, this.MODES.OUTPUT);

  setInterval(function() {
    this.digitalWrite(6, (state ^= 1));
  }.bind(this), 500);

  this.analogRead(0, function(value) {
    if (value != lastVal) {
      console.log(value);
    }
  });

});

@soundanalogous
Copy link
Member

Ok looks good. Thanks!

@soundanalogous soundanalogous merged commit 90bc51a into firmata:master Apr 5, 2019
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