Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
arduino:arduino_mkrzero [2020/12/14 18:21] admin [Simple Audio Player] |
arduino:arduino_mkrzero [2021/01/30 15:16] (current) admin [Li-Po Battery] |
||
---|---|---|---|
Line 4: | Line 4: | ||
[[https:// | [[https:// | ||
- | On Arch Linux it needs more than one attempt to upload the code, the /dev/ttyACM0 can't be opened: **No device found on ttyACM0**!\\ | + | A great description and general information about the SAMD21 one could find here: [[https://learn.sparkfun.com/ |
---- | ---- | ||
==== Installation ==== | ==== Installation ==== | ||
Line 20: | Line 21: | ||
or\\ | or\\ | ||
[[https:// | [[https:// | ||
+ | |||
+ | On Arch Linux it needs more than one attempt to upload the code, the / | ||
---- | ---- | ||
Line 32: | Line 35: | ||
[[https:// | [[https:// | ||
- | The quality of the WAV file needs to be 88200 Hz mono, 8-bit unsigned PCM.\\ | + | The quality of the WAV file needs to be 44100kHz stereo and decoded with 8-bit unsigned PCM.\\ |
The audio signal is on pin DAC0/A0.\\ | The audio signal is on pin DAC0/A0.\\ | ||
**Some bugs are in the original code!**\\ | **Some bugs are in the original code!**\\ | ||
- | - one needs a delay after Serial.begin\\ | + | - one needs a short delay after Serial.begin\\ |
- the SD-card pin is 28\\ | - the SD-card pin is 28\\ | ||
here is the fixed code:\\ | here is the fixed code:\\ | ||
{{ : | {{ : | ||
+ | |||
+ | Unfortunately there is quite some bad humming after playing a file.\\ | ||
---- | ---- | ||
Line 55: | Line 60: | ||
<img src=" | <img src=" | ||
</ | </ | ||
- | //picture from [[https:// | + | //pinout digram by [[https:// |
The onboard LED is on pin 32. One could use LED_BUILTIN instead.\\ | The onboard LED is on pin 32. One could use LED_BUILTIN instead.\\ | ||
Line 74: | Line 79: | ||
</ | </ | ||
//video from [[https:// | //video from [[https:// | ||
+ | |||
+ | ---- | ||
+ | ==== SWD pinout ==== | ||
+ | |||
+ | {{: | ||
---- | ---- | ||
Line 94: | Line 104: | ||
---- | ---- | ||
+ | ==== Further Informations ==== | ||
+ | |||
+ | [[https:// | ||
+ | Adapting Sketches to M0 & M4 by Lady Ada]]\\ | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | - instructable.com]]\\ | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | ---- | ||
+ | |||
==== License ==== | ==== License ==== | ||