Skip to main content
6 votes
Accepted

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

You have three options for the silicon-based PTC (peripheral touch controlller). LibrePTC - My own library that targets the SAMD11 but should work with some modifications for other SAMD architectures....
Jeremy Gilbert's user avatar
4 votes

Arduino Zero timer setup

BOTTOM UP The arduino Zero uses an Atmel samd21 µController. This video explains how to program the samd chips in a bottom up fashion, or at least how to gather all required information to do so. In ...
isaias-b's user avatar
  • 141
4 votes

Proper Micro SD card schematic

As per the SD card specification: When an SD card is operating in SPI mode or 1-bit SD mode, the CMD and DATA (DAT0 - DAT3) lines of the SD bus must be pulled up by 10 kOhm resistors. Slaves should ...
Majenko's user avatar
  • 105k
3 votes

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

As @devnull at Electronics Stack has answered, the quiescent current of 5~10 mA from the LDO could be enough to make up for the lost currents. I don't have any specific suggestions on code or parts, ...
angrypig7's user avatar
3 votes
Accepted

Forcing bootloader startup through program

Theoretically it is quiet easy to fake that double-tap with software, but there might be some obstacles in practice. The bootloader uses an unsigned long value in RAM memory to indicate if the double ...
Peter Paul Kiefer's user avatar
3 votes

Library to set internal analog gain of the Arduino?

I would recommend you to check Nick Gammon's example on using the analog comparator by means of configuring the relevant flag bits of registers in the ATmega328. Sample code from the link, by Nick: ...
Enric Blanco's user avatar
  • 2,114
3 votes
Accepted

Arduino zero Error: unable to find CMSIS-DAP device

I had exactly the same error with the same board. Running the IDE as root solved the problem. So, Chris was right pointing out a permission issue. I found more information here : http://bitofahack.com/...
Snark Turne's user avatar
2 votes

Library to set internal analog gain of the Arduino?

You seem to be interested mainly in ATSAMD21. There is an application note from Atmel, AT11480: Analog Comparator Application Examples, which may be of interest for you. From the Getting started ...
Enric Blanco's user avatar
  • 2,114
2 votes
Accepted

High-frequency PWM on an Adafruit Feather M0

For your specific problem: the Feather's D11 is the SAMD's PA16 and on TCC0/WO[6] (use REG_TCC0_CCB2 and PORT_PMUX_PMUXE_F), and also on TCC2/WO[0] (use REG_TCC2_CCB0 and PORT_PMUX_PMUXE_E). An easier ...
ocrdu's user avatar
  • 1,795
2 votes

Arduino Zero to Arduino Zero SPI configuration

A zero has the same number of IO pins then a UNO, they use the same header layout. So I believe you want to use the chips on a self made PCB. (?) Based on this, I think a second SAMD21 is not the ...
Peter Paul Kiefer's user avatar
2 votes

How to change the FFT function of the Arduino Uno for the Arduino Zero?

The Adafruit ZeroFFT library is not a drop in replacement for the FFT Library. You can't easily use the same code for both.
Craig's user avatar
  • 2,120
2 votes

Proper Micro SD card schematic

There's an excellent tutorial on Instructables I recommend one to read. here's the link https://www.instructables.com/Select-SD-Interface-for-ESP32/
Miguel Tomás's user avatar
2 votes
Accepted

Multiplexer 74HC4067, conflict between channels

I gather it is part of a learning experiment. Logically this does not compute however there are many reasons something like this could happen. A bad IC is the first thing that comes to mind but they ...
Gil's user avatar
  • 1,843
1 vote

Strtok operations on Arduino Zero seem to fail in runtime

strtok works by modifying the source string. Your test string points to a constant string. char *mystring = "apples,pears,bananas"; This particular platform may put that into read-only ...
Nick Gammon's user avatar
  • 38.4k
1 vote
Accepted

Temperature is not updated on OLED screen - Grove components

You mix software I2C with hardware I2C on the hardware I2C pins. To use hw I2C with the display use the U8G2_SSD1306_128X64_NONAME_F_HW_I2C constructor. U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(...
Juraj's user avatar
  • 18k
1 vote
Accepted

Problems connecting to WiFi101 access point

The bug seems to be that the server must be started after the wifi has moved into the WL_AP_CONNECTED state. I am not sure why this is, but apparently sockets are invalid (or become invalidated) when ...
David's user avatar
  • 129
1 vote

Proper Micro SD card schematic

There are a couple of "do and don't" when designing an SPI interface. Do add pull-up resistors on SS or set SS HIGH for multiple-slave system SPI is a bus system, means that your device ...
hcheung's user avatar
  • 1,406
1 vote
Accepted

5V pin out, 8 pins and micropython/circuitpython support: does such a board exist?

Both your "requirements" for the board are non-requirements. You do not need PWM pins to drive Neopixel strips. The Neopixel uses its own custom protocol that has nothing at all to do with ...
Majenko's user avatar
  • 105k
1 vote

Linking the Arduino Bootloader In Atmel Studio

This isn't exactly 100% the answer I was looking for, because I still want to know how I can use a static library build, as I mention in my post, and compile everything as a single binary. This method ...
Andrew's user avatar
  • 107
1 vote
Accepted

Multiple variant.cpp entries for same physical pin

The analogWrite function checks the PIN_ATTR_ANALOG attribute from pin description in variant.cpp to determine if the pin has DAC capability. Then it checks if the pin is ADC_Channel0 or DAC_Channel0. ...
Juraj's user avatar
  • 18k
1 vote

Arduino MKR Zero problem with new UART comunication

When a library does not highlight, it might be that the library is not coded to be highlighted (see here). If you installed the library yourself, you may have put it in the wrong path.
MechtEngineer's user avatar
1 vote
Accepted

Multiple I2C devices on Arduino

You'll see that I've used 10k resistors on each devices's SDA and SCL lines, but is this necessary? I've seen it mentioned on a few online documents for certain breakout boards etc... You should have ...
Majenko's user avatar
  • 105k
1 vote
Accepted

How to conect multiple output pin from sensors to a single digital pin on a arduino

If the ICs output 5V and your Arduino is 3.3V, you can simply use one voltage divider at the Arduinos pin to divide the voltage down to 3.3V. But there is still one important thing to connect them ...
chrisl's user avatar
  • 16.3k
1 vote
Accepted

Large(ish) strings failing to send over WiFi101 using WiFiServer

As per my notes the WINC1500 has a limit of 1500 bytes per transmission. But some of this is always taken up by TCP overhead so the payload buffer must be smaller, that's why you see numbers like ...
Geordie's user avatar
  • 195
1 vote

Output clock signal on MKRZERO

The IC on the MKRZERO is an Atmel SAMD21. Look up the datasheet and read the section on timer counter. Yes, it's a long document, but you will find all of the information there.
MichaelT's user avatar
  • 887
1 vote

Arduino Zero timer setup

Where would I find information on how to configure the Arduino Zero's timers? Try the datasheet. What you showed there is fairly typical, may be on the primitive side for chips of its kind. More ...
dannyf's user avatar
  • 2,770
1 vote

Arduino Zero - Stepper control (interrupt)?

As Stepper::updateAll(); isn't shown I don't know what it does. For accurate timing it would make sense to use hardware-operated output-compare output pins like TIOAx and TIOBx, instead of running ...
James Waldby - jwpat7's user avatar
1 vote
Accepted

Arduino Zero: Enable RTTI

It apparently is true that “RTTI (run-time type information) is disabled with the fno-rtti compiler flag”; however, looking at compiler.c.flags and compiler.cpp.flags in platform.txt, no fno-rtti ...
James Waldby - jwpat7's user avatar
1 vote

Is there any way to use a JTAG programmer with the Arduino IDE?

For a one-click upload, you can make a custom hardware definition that calls any executable of your choosing.
Chris Combs's user avatar
1 vote

Arduino Zero (ATSAMD21G) - I2C - continuous wrong data flow

The code had several issues. receiveEvent, on the slave side, contained a millis if condition timer that made it time out. I moved the timer to the master side before calling Wire.requestFrom. ...
kb_'s user avatar
  • 41

Only top scored, non community-wiki answers of a minimum length are eligible