Coder Social home page Coder Social logo

democode's Introduction

Industruino demo code

When you receive your Industruino, it will have a demo sketch to show basic functionality. This code is available in this repository.

Also here are example sketches for various functions of Industruino products.

Industruino products documentation has moved here

democode's People

Contributors

tomtobback avatar industruino avatar

Stargazers

 avatar  avatar  avatar Bryan Minarsky avatar John H avatar Gabriel avatar Daniel Pavez-Sandoval avatar

Watchers

James Cloos avatar Bryan Minarsky avatar Sébastien Dominguez avatar  avatar  avatar Daniel Pavez-Sandoval avatar

democode's Issues

Enhancement: Adding a Thingspeak library for Industruino IND.I/O D21G

Hello, I would like to ask if you have ever tried to use the Thingspeak library for Industruino D21G in combination with your GSM module? Since the current Thingspeak library is supported for Arduino MKR GSM 1400 and both the MKR GSM 1400 and the D21G have the same SAMD21 chip, although the GSM modules are different (SARA-U201 for MKR GSM, SIM800H for the D21G)

Byte order of MAC address is extracted incorrectly

The RTC used in the DG21 top board is the MCP79402. This device has a 64bit MAC address stored at location 0xf0 to 0xf8 (see data sheet http://ww1.microchip.com/downloads/en/DeviceDoc/MCP79400-MCP79401-MCP79402-Data-Sheet-20005009G.pdf section 6.3.2) this means the OUI is at 0xf0 (not at 0xF2 as on the MCP79401).

To generate a correct 48bit (6 byte) Mac address. Locations 0xF0,0xF1,0xF2 will contain valid OUI and locations 0xF5,0xF6,0xF7 will contain a unique EI.

modified code snippet to demonstrate:

// the RTC has a MAC address stored in EEPROM - 8 bytes 0xf0 to 0xf7
void readMACfromRTC() {
SerialUSB.println("READING MAC from RTC EEPROM");
lcd.setCursor(0, 7);
lcd.print("MAC ");
for (int i = 0; i < 8; i++) { // get 6 bytes for MAC address from 8 byte version in MCP79402
if (i == 3 || i ==4 ) continue; // skip 1st 2 bytes of EI
mac[i] = readByte(0x57, 0xf0 + i);
SerialUSB.print(mac[i], HEX);
lcd.print(mac[i], HEX);
if (i < 7) {
SerialUSB.print(":");
lcd.print(":");
}
}
SerialUSB.println();
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.