初识 Arduino

in #steemit7 years ago (edited)

最近要和用android连接obd2读取汽车的vin等相关信息,公司采购了块obd模拟器提供开发使用,感觉硬件也挺好玩的,之前也学过一些硬件创客的知识,也买过像arduino,树莓派的开发板子折腾过。用这些开源硬件的好处就是不过多的关心硬件的设计(硬件设计其实要考虑的挺多,对于搞软件的来说也是比较难的),只需关注自己的创意,至于功能嘛,有好多现成的模块能用了。老早写的一遍文章了,自己又拿过来重新学了一下又顺便分享以下。

介绍

官网
(html comment removed: more)

型号

  • Arduino Uno
  • Arduino Nano
  • Arduino Nano
  • Arduino Nano
  • Arduino LilyPad
  • Arduino Mega 2560
  • Arduino Ethernet
  • Arduino Due
  • Arduino Leonardo
  • ArduinoYún

硬件结构

headware

  • 模拟量端口
  • 数字两端口
  • 串口通信端口
  • 微控制器
  • 电源输出接口
  • 程序下载通讯接口
  • 复位按钮

界面:

soft

周边模块-LED-显示部件

  • LED的使用
  • LED点阵的使用
  • LEDRGB的使用

LED原理

LED是会发光的二极管,它具有单向导电性,两边加电压,即将电能转化为光能

需知

  • 如何区分正负极
  • 应在那一极加电阻

数字电平:电压的另一种解读方式

Arduino的数字端口

LED的使用

面包板的使用方法

Arduino程序的一般结构

代码

int led=8;
void setup()
{
  pinMode(led,OUTPUT);
}
void loop()
{
  digitalWrite(led,HIGH);
  delay(100);
  digitalWrite(led,LOW);
  delay(100);
}

使用到的库函数


LED点阵的使用

原理

LED点阵图形原理

计算机显示字符的原理

如何在Arduino程序中储存字库

显示的字形


参考: 百度百科

Sort:  

Microprocessors are very interesting and Arduino boards are great for beginners and even good starting point for amateurs.

I'm not good at embedding, but arduino can make an amateur enthusiast make this easy attempt

Congratulations @hiquanta! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published a post every day of the week

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Coin Marketplace

STEEM 0.20
TRX 0.12
JST 0.028
BTC 64252.58
ETH 3495.24
USDT 1.00
SBD 2.50