FRDM‐K64F开发板 ARM Mbed 在线编译器嵌入式和物联网开发

2100

M

H

z

<

2

M

b

p

s

(

3

G

)

,

(3G), LTE (4G), 5G

2.3

,

2.6

,

5.25

,

26.4

,

and

<

10

M

b

p

s

(

4

G

)

58.68

G

H

z

<

100

M

b

p

s

(

5

G

)

Bluetooth

Bluetooth

4.2

2.4

G

H

z

50

150

m

1

M

b

p

s

RFID/NFC

ISO/IEC

18000

3

13.56

M

H

z

10

c

m

100

420

k

b

p

s

6LowPAN

RFC6282

2.4

G

H

z

and

1

G

H

z

<

20

m

20

250

k

b

p

s

ZigBee

ZigBee

3.0

based on

2.4

G

H

z

10

100

m

250

k

b

p

s

IEEE802.15.4

Z-Wave

Z-Wave Alliance

868.42

M

H

z

and

<

100

m

<

100

k

b

p

s

ZAD12837 / ITU-T

908.42

M

H

z

LoRa

G.9959

LoRaWAN

868

M

H

z

and

915

M

H

z

<

15

k

m

0.3

50

k

b

p

s

\begin{array}{lllll} \hline & \text { Standard } & \text { Frequency } & \text { Range } & \text { Data Rate } \ \hline \text { LiFi } & \text { Similar to } 802.11 & 400-800 \mathrm{THz} & <10 \mathrm{~m} & <224 \mathrm{Gbps} \ \text { WiFi } & 802.11 \mathrm{a} / \mathrm{b} / \mathrm{g} / \mathrm{n} / \mathrm{ac} & 2.4 \mathrm{GHz} \text { and } 5 \mathrm{GHz} & \sim 50 \mathrm{~m} & <1 \mathrm{Gbps} \ \text { Cellular } & \text { GSM/GPRS/EDGE } & 900,1800,1900 \text {, and } & <200 \mathrm{~km} & <500 \mathrm{kps}(2 \mathrm{G}), \ & \text { (2G), UMTS/HSPA } & 2100 \mathrm{MHz} & & <2 \mathrm{Mbps}(3 \mathrm{G}), \ & \text { (3G), LTE (4G), 5G } & 2.3,2.6,5.25,26.4, \text { and } & & <10 \mathrm{Mbps}(4 \mathrm{G}) \ & & 58.68 \mathrm{GHz} & & <100 \mathrm{Mbps}(5 \mathrm{G}) \ \text { Bluetooth } & \text { Bluetooth } 4.2 & 2.4 \mathrm{GHz} & 50-150 \mathrm{~m} & 1 \mathrm{Mbps} \ \text { RFID/NFC } & \text { ISO/IEC } 18000-3 & 13.56 \mathrm{MHz} & 10 \mathrm{~cm} & 100-420 \mathrm{kbps} \ \text { 6LowPAN } & \text { RFC6282 } & 2.4 \mathrm{GHz} \text { and } \sim 1 \mathrm{GHz} & <20 \mathrm{~m} & 20-250 \mathrm{kbps} \ \text { ZigBee } & \text { ZigBee } 3.0 \text { based on } & 2.4 \mathrm{GHz} & 10-100 \mathrm{~m} & 250 \mathrm{kbps} \ & \text { IEEE802.15.4 } & & & \ \text { Z-Wave } & \text { Z-Wave Alliance } & 868.42 \mathrm{MHz} \text { and } & <100 \mathrm{~m} & <100 \mathrm{kbps} \ & \text { ZAD12837 / ITU-T } & 908.42 \mathrm{MHz} & & \ \text { LoRa } & \text { G.9959 } & & & \ & \text { LoRaWAN } & 868 \mathrm{MHz} \text { and } 915 \mathrm{MHz} & <15 \mathrm{~km} & 0.3-50 \mathrm{kbps} \ \hline \end{array}

LiFi  WiFi  Cellular  Bluetooth  RFID/NFC  6LowPAN  ZigBee  Z-Wave  LoRa ​ Standard  Similar to 802.11802.11a/b/g/n/ac GSM/GPRS/EDGE  (2G), UMTS/HSPA  (3G), LTE (4G), 5G  Bluetooth 4.2 ISO/IEC 18000−3 RFC6282  ZigBee 3.0 based on  IEEE802.15.4  Z-Wave Alliance  ZAD12837 / ITU-T  G.9959  LoRaWAN ​ Frequency 400−800THz2.4GHz and 5GHz900,1800,1900, and 2100MHz2.3,2.6,5.25,26.4, and 58.68GHz2.4GHz13.56MHz2.4GHz and ∼1GHz2.4GHz868.42MHz and 908.42MHz868MHz and 915MHz​ Range <10 m∼50 m<200 km50−150 m10 cm<20 m10−100 m<100 m<15 km​ Data Rate <224Gbps<1Gbps<500kps(2G),<2Mbps(3G),<10Mbps(4G)<100Mbps(5G)1Mbps100−420kbps20−250kbps250kbps<100kbps0.3−50kbps​​

协议
  • HTTP
  • WebSocket
  • MQTT
  • CoAP
  • XMPP
Node-RED

Node-RED是IBM开发的基于Web的开源软件工具,可用于通过互联网连接硬件设备。借助 Node-RED,您可以将 mbed 开发板连接到互联网,读取传感器值,将其显示在图表、网页、电子邮件等消息中。 您还可以将命令发送回开发板以执行一些控制。 它是一种基于图形的编程工具,使用称为节点的功能块来构建程序。 您所需要做的就是连接节点并配置它们。 这使得许多编程任务变得非常简单且易于实现。 下图显示了在 Node-RED 中实现的一个简单的基于 WebSocket 的聊天程序。

嵌入式代码开发

  • 初始代码:闪烁 LED
  • 拓展代码
    • 控制继电器
    • 屏载 QWERTY 触摸键盘的 TFT 显示屏演示
    • SDFileSystem 替代 LocalFileSystem 写入 SD 卡
    • 挤出机/热床PID控制
    • 使用 Steinhart-Hart 方程进行热敏电阻到温度转换的演示
    • 光传感器示例
    • 温湿度传感器示例
    • USB HID 鼠标/键盘示例
    • HTTP SD 卡文件服务器
    • 使用整流器和低通滤波器对数字包络检波器进行测试
    • 使用 Python 编写的 GUI 软件从电脑控制 FRDM-K64F板
    • 2 个线程的矩阵乘法
    • 光和温度控制
    • 使用 mbed websocket 发送由字母和数字组成的消息控制RGB LED
    • 有限状态机
    • 数据记录器每隔几秒读取一次温度、湿度和光照水平,并将数据存储在 microSD 卡中

数字输入输出

  • 使用按钮和 PIR 传感器

数字输入示例:

#include "mbed.h"

DigitalIn  mypin(SW2); // change this to the button on your board
DigitalOut myled(LED1);

int main()
{
    // check mypin object is initialized and connected to a pin
    if (mypin.is\_connected()) {
        printf("mypin is connected and initialized! \n\r");
    }

    // Optional: set mode as PullUp/PullDown/PullNone/OpenDrain
    mypin.mode(PullNone);

    // press the button and see the console / led change
    while (1) {
        printf("mypin has value : %d \n\r", mypin.read());
        myled = mypin; // toggle led based on value of button
        ThisThread::sleep\_for(250);
    }
}

#include "mbed.h"

DigitalIn a(D0);
DigitalIn b(D1);
DigitalOut z\_not(LED1);
DigitalOut z\_and(LED2);
DigitalOut z\_or(LED3);
DigitalOut z\_xor(LED4);

int main()
{
    while (1) {
        z_not = !a;
        z_and = a && b;
        z_or = a || b;
        z_xor = a ^ b;
    }
}


数字输出示例:

#include "mbed.h"

DigitalOut myled(LED1);

int main()
{
    // check that myled object is initialized and connected to a pin
## 最后

**自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。**

**深知大多数Java工程师,想要提升技能,往往是自己摸索成长,自己不成体系的自学效果低效漫长且无助。**

**因此收集整理了一份《2024年嵌入式&物联网开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。**

![img](https://img-blog.csdnimg.cn/img_convert/c8e6811f2df940523b163859d51283ba.png)

![img](https://img-blog.csdnimg.cn/img_convert/5546f45b1fab5c487e871e31b1083e5b.jpeg)

![img](https://img-blog.csdnimg.cn/img_convert/7f61184ba3323f6222278c608c30244d.png)

 ![img](https://img-blog.csdnimg.cn/img_convert/60c436950a25994aec3a0b1b2f97db5d.png)

![img](https://img-blog.csdnimg.cn/img_convert/c032053d077b0e324d92f1de5dd1dbdb.png)

![img](https://img-blog.csdnimg.cn/img_convert/a24750decf73aee0f4181f6ddad87533.png)

![](https://img-blog.csdnimg.cn/img_convert/02e1fd65a9f84d9ce7b4804a3a936a9f.png)

 

**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上嵌入式&物联网开发知识点,真正体系化!**

[**如果你觉得这些内容对你有帮助,需要这份全套学习资料的朋友可以戳我获取!!**](https://bbs.csdn.net/topics/618654289)

**由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新**!!


 while (1) {
        z_not = !a;
        z_and = a && b;
        z_or = a || b;
        z_xor = a ^ b;
    }
}


数字输出示例:

#include "mbed.h"

DigitalOut myled(LED1);

int main()
{
    // check that myled object is initialized and connected to a pin
## 最后

**自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。**

**深知大多数Java工程师,想要提升技能,往往是自己摸索成长,自己不成体系的自学效果低效漫长且无助。**

**因此收集整理了一份《2024年嵌入式&物联网开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。**

[外链图片转存中...(img-PosV2CLK-1715575218934)]

[外链图片转存中...(img-7yN3bfE1-1715575218934)]

[外链图片转存中...(img-vBl5OEm8-1715575218935)]

 [外链图片转存中...(img-5lJ3QAVu-1715575218935)]

[外链图片转存中...(img-5okDhi9U-1715575218936)]

[外链图片转存中...(img-gtzJKWU5-1715575218937)]

[外链图片转存中...(img-Ht4DH0ks-1715575218937)]

 

**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上嵌入式&物联网开发知识点,真正体系化!**

[**如果你觉得这些内容对你有帮助,需要这份全套学习资料的朋友可以戳我获取!!**](https://bbs.csdn.net/topics/618654289)

**由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新**!!


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
>