Questions tagged [samd21g]

33 questions
10
votes
1 answer

Adding a custom board to the Arduino IDE

I would like to know what is the procedure for adding a custom board to the Arduino IDE? My custom board is similar to the Arduino Zero. Instead of using the ATSAMD21G18, my board is based around the ATSAMC21G18. I also have the Atmel/Microchip…
sa_leinad
  • 3,218
  • 2
  • 23
  • 51
4
votes
1 answer

Built-in capacitive touch detection with SAMD21 development board (Arduino Zero Compatible)

I bought this SAMD21 development board which shows up as an "Arduino/Genuino Zero (Native USB Port)" when plugged in. And I've successfully got a blink sketch running on it all good so far: The reason I picked up this board was to experiment with…
juliusbangert
  • 161
  • 4
  • 12
3
votes
1 answer

Timer interrupt library for new Arduino based on MCU SAMD21

I'm looking for a timer interrupt library for the new Arduinos based on MCU SAMD21. I want to wake up periodically the MCU form sleep state, do some task and go sleep again. Using one timer interrupt Arduino wakes up. For new Arduino MKR family. Do…
jecrespo
  • 75
  • 1
  • 8
3
votes
1 answer

Arduino Zero D0/D1 set output high

I am trying to use D0/D1 as normal IO pins but DigitalWrite does not work as on an Arduino UNO. I know the SAMD21G has SERCOM but I can't seem to find an example of not using D0/D1 as an UART port. EDIT ** Code I have tried: #define MYMASK…
Bertus Kruger
  • 233
  • 1
  • 8
2
votes
0 answers

MPU9250 and MPU6050 not working with SAMD21 board

I am trying to use an MPU6050 with my SAMD21-based board (a LightAPRS W-2), but it doesn't work. The sensor definitely works, as I can get data from another 3.3 Vlogic-level board, and the sensor works with a level shifter with an Arduino Uno. I do…
2
votes
1 answer

Achieving low power with Seeeduino Cortex-M0+ powered from 12V battery

I have Seeeduino Cortex-M0+, which is similar to Arduino Zero, both using Atmel SAMD21 MCU. It is powered from 12V battery directly to 12V PWRIN jack. Current draw for LED blink test is 18mA. I tried two low power…
Paul Jurczak
  • 209
  • 1
  • 8
2
votes
0 answers

Problems uploading arduino zero bootloader to atsamd21g18a

I am trying to upload the arduino zero bootloader (https://github.com/arduino/ArduinoCore-samd/tree/master/bootloaders/zero) to an atsamd21g18 breakout board that I made. The breakout has a 32KHz oscillator hooked to pins 1 and 2 (with 22pF caps). I…
Michaela
  • 21
  • 3
2
votes
0 answers

Arduino SerialUSB.print/println is being interrupted by other prints

I have an Arduino M0 connected to a peripheral device. A PC is connected to the arduino via USB. The mode of operation is that the Arduino receives commands via USB that instruct it to do something with the peripheral device. The data from the…
Tyler P
  • 21
  • 3
2
votes
2 answers

How to determine the source of constants in libraries?

Preamble: I am trying to figure out how to program and use the timers in the Feather M0 using the Arduino IDE. I have seen a number of examples published, but I'm not one to just blindly copy some code and expect it to work. The issue that I'm…
BE-Bob
  • 23
  • 2
1
vote
1 answer

attachInterrupt has no effect on Industruino SAMD21

I'm using Industruino D21G (SAMD21G version) with Visual Studio Code extension for Arduino. attachInterrupt seems to have no effect. I tried Industruino CH1, CH6 and CH7 with the same result. When I poll these channels in a loop, I detect signal…
Paul Jurczak
  • 209
  • 1
  • 8
1
vote
0 answers

UART SERCOM on Pins 11-13 Arduino M0 (SAMD21)

I am a newb at coding. Does anyone have any code laying around or some time to write some to send data over UART SERCOM on pins 11/12/13 on a SAMD21 board like the Arduino M0? I am trying to send a double from my LightAPRS W-2 board but can't use…
1
vote
1 answer

Problems connecting to WiFi101 access point

I currently have two Arduino Zero boards (using the SAMD21 microcontroller), each with an ATWINC1500 wifi module attached. I have established one of these units as a wifi access point with a server running on it, while the other unit is a client…
David
  • 129
  • 5
1
vote
0 answers

Pulse period capture with SAMD21

I need to count the number of pulses in a moving window (e.g. last 60 seconds) using as less CPU time as possible. The first step is to use TCC to capture pulse period. The pulses arrive randomly at PB02 and the average frequency is about 20-100…
7E10FC9A
  • 209
  • 1
  • 6
1
vote
1 answer

Peculiar behaviour of arduino pro micro

I am working with an arduino pro micro and I am facing a peculiar problem. The project I am working with includes arduino MKR NB 1500 as well. I am transferring data from MKR NB 1500 to arduino pro micro through Serial1(Rx/Tx pins). I have added the…
sud.ng7
  • 31
  • 5
1
vote
0 answers

Is SoftwareSerial possible for Samd21 boards?

I have a SAMD21G18A-MUT custom board, which has 6 'grove' connectors, of which two are I2C In and out (sharing the same MCU Pins) and also has 2 'special' 8 pin connectors attaching to Particulate Matter sensors that connect to : PA 14, (9,…
1
2 3