极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: swim

Arduino 播放音乐教程

  [复制链接]
发表于 2016-7-11 12:46:52 | 显示全部楼层
真不错能放音乐了
回复 支持 反对

使用道具 举报

发表于 2016-10-6 17:22:48 | 显示全部楼层
收藏了    不错
回复 支持 反对

使用道具 举报

发表于 2016-10-7 16:01:19 | 显示全部楼层
有点意思,普通的UNO可以么?
回复 支持 反对

使用道具 举报

发表于 2016-12-9 20:26:17 | 显示全部楼层
谁能把程序代码发给我一下嘛???急用啊
回复 支持 反对

使用道具 举报

发表于 2016-12-12 00:13:03 | 显示全部楼层
你好,这个东西能不能用UNO做??
回复 支持 反对

使用道具 举报

发表于 2016-12-20 14:49:36 | 显示全部楼层
还有块板是什么
回复 支持 反对

使用道具 举报

发表于 2017-6-9 22:18:35 | 显示全部楼层
批处理命令做多能转换多大的wav文件?一首歌转换出来的wav文件都三十多M,批处理命令却转换个空文件,最大能转多大??
回复 支持 反对

使用道具 举报

发表于 2017-9-7 14:18:22 | 显示全部楼层
請問程式要怎麼改才可以像影片中一樣開機直接播
回复 支持 反对

使用道具 举报

发表于 2018-2-15 00:43:02 | 显示全部楼层
error code : 4,8,5
分別是啥意思?
回复 支持 反对

使用道具 举报

发表于 2018-2-16 01:00:07 | 显示全部楼层
這些是錯誤代碼
// error codes
/** timeout error for command CMD0 (initialize card in SPI mode), signal problem */
#define SD_CARD_ERROR_CMD0          0x01
/** CMD8 was not accepted - not a valid SD card */
#define SD_CARD_ERROR_CMD8          0x02
/** ACMD41 initialization process timeout */
#define SD_CARD_ERROR_ACMD41        0x03
/** card returned an error response for CMD58 (read OCR) */
#define SD_CARD_ERROR_CMD58         0x04
/** card returned an error response for CMD16 (set block len) */
#define SD_CARD_ERROR_CMD16         0x05
/** card operation voltage range doesn't match (2.7V - 3.6V) */
#define SD_CARD_ERROR_VOLTMATCH     0x06
/** timeout while waiting for start of read data */
#define SD_CARD_ERROR_READ_TIMEOUT  0x07
/** card returned error token when tried to read data */
#define SD_CARD_ERROR_READ          0x08
/** card returned an error response for CMD17 (read single block) */
#define SD_CARD_ERROR_CMD17         0x09
/** card returned an error token when tried to write data */
#define SD_CARD_ERROR_WRITE         0x0a
/** card returned an error response for CMD24 (write single block) */
#define SD_CARD_ERROR_CMD24         0x0b
/** timeout while waiting for writing data */
#define SD_CARD_ERROR_WRITE_TIMEOUT 0x0c
/** card returned an error in status after a data writing command */
#define SD_CARD_ERROR_WRITE_PROGR   0x0d
/** card returned an error response for CMD9  (read CSD) */
#define SD_CARD_ERROR_CMD9          0x0e
/** card returned an error response for CMD10 (read CID) */
#define SD_CARD_ERROR_CMD10         0x0f
/** card returned an error response for CMD18 (read multi block) */
#define SD_CARD_ERROR_CMD18         0x10
/** card returned an error response for CMD12 (stop block operation) */
#define SD_CARD_ERROR_CMD12         0x11
/** card returned an error response for ACMD23 (set pre-erase count) */
#define SD_CARD_ERROR_ACMD23        0x12
/** card returned an error response for CMD25 (write multi block) */
#define SD_CARD_ERROR_CMD25         0x13
/** card did not become ready for a multiple block write */
#define SD_CARD_ERROR_WRITE_MB      0x14
/** timeout after sending STOP_TRAN_TOKEN after write multi block data */
#define SD_CARD_ERROR_STOP_TRAN     0x15

// SD card commands
/** GO_IDLE_STATE - init card in spi mode if CS low */
#define SD_CMD0 0x00
/** SEND_IF_COND - verify SD Memory Card interface operating condition.*/
#define SD_CMD8 0x08
/** SEND_CSD - read the Card Specific Data (CSD register), response R1 */
#define SD_CMD9 0x09
/** SEND_CID - read the card identification information (CID register), response R1 */
#define SD_CMD10 0x0A
/** STOP_TRANSMISSION - end multiple block read sequence, response R1b */
#define SD_CMD12 0x0C
/** SEND_STATUS - read the card status register, response R2 */
#define SD_CMD13 0x0D
/** SET_BLOCKLEN arg0[31:0]: block length, response R1 */
#define SD_CMD16 0x10
/** READ_SINGLE_BLOCK - read a single data block from the card, response R1 */
#define SD_CMD17 0x11
/** READ_MULTIPLE_BLOCK - read a multiple data blocks from the card, response R1 */
#define SD_CMD18 0x12
/** WRITE_BLOCK - write a single data block to the card, response R1 */
#define SD_CMD24 0x18
/** WRITE_MULTIPLE_BLOCK - write blocks of data until a STOP_TRANSMISSION, response R1 */
#define SD_CMD25 0x19
回复 支持 反对

使用道具 举报

发表于 2018-3-4 18:02:12 | 显示全部楼层
为什么我发送文件名没有反应,只是上面Free Ram是692
回复 支持 反对

使用道具 举报

发表于 2018-3-4 22:00:35 | 显示全部楼层
阴天 发表于 2018-3-4 18:02
为什么我发送文件名没有反应,只是上面Free Ram是692

要注意大小寫!
大小寫錯誤輸入會失敗
選擇檔案先按 "f"
選擇檔案(以1.AFM為例)
在序列監控窗右下角選擇"NL(newline)"
上方輸入"1.AFM"
回复 支持 反对

使用道具 举报

发表于 2018-3-5 17:54:42 | 显示全部楼层
danieltoka 发表于 2018-3-4 22:00
要注意大小寫!
大小寫錯誤輸入會失敗
選擇檔案先按 "f"

我是直接复制的下面显示的文件名,要发送两次才会出现播放p暂停s这些,再发送播放p时,喇叭没有声音
回复 支持 反对

使用道具 举报

发表于 2019-3-25 22:47:41 | 显示全部楼层
我按照上面说的做了,最后串口打印显示的是乱码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2019-3-26 13:22:04 | 显示全部楼层
厉害,学习了!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-4-26 00:19 , Processed in 0.048604 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表