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. ...
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 ...
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 ...
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, ...
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 ...
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:
...
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 ...
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 ...
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 ...
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.
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 ...
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/
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 ...
1
vote
Accepted
Can i make this circuit smaller?
You may try this:
simulate this circuit – Schematic created using CircuitLab
This should work as a wired and, provided the diode thresholds are lower than the Arduino's input low threshold.
1
vote
Use TCC1 timer to generate PWM on personnal board built with SAMD21E18A
For example, settings for ATSAMR21G18A (it is similar to you MCU), PA08 PWM:
Pin init:
// GPIO PA08 PWM (DO)
PORT->Group[0].PINCFG[8].reg = PORT_PINCFG_PMUXEN;
PORT->Group[0].PMUX[8/2].bit.PMUXE ...
1
vote
Why does my Arduino stop uploading to the Thingspeak server after several hours?
You are most likely exceeding the messages-per-period-of-time limit. Give it some time and then try again, adding some delay() in your main loop.
1
vote
Why does my Arduino stop uploading to the Thingspeak server after several hours?
From the ThingSpeak License Options page:
ThingSpeak is available as a free service for non-commercial small projects (<3 million messages/year or ~8,200 messages/day).
Could you be hitting that ...
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 ...
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(...
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 ...
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 ...
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 ...
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. ...
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.
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 ...
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 ...
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 ...
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.
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
arduino-zero × 56samd21g × 9
spi × 4
arduino-ide × 3
adafruit × 3
bootloader × 3
arduino-uno × 2
serial × 2
i2c × 2
pwm × 2
pins × 2
timers × 2
web-server × 2
sd × 2
atmel-studio × 2
atmel × 2
arduino-mega × 1
sensors × 1
c++ × 1
esp32 × 1
power × 1
wifi × 1
interrupt × 1
usb × 1
library × 1