arduino

使用Arduino和RF射频模块制作无线门铃

旧巷老猫 提交于 2020-07-28 20:51:59
我们都知道有线门铃系统需要电线和合适的插座才能正常工作。由于有线门铃系统需要复杂的布线,因此需要有经验的人来完成工作,并且无论从工作还是在外观上都做得不好。另一个问题是,如果要为现有房屋安装有线门铃系统,则需要更多的精力和时间来安装。由于温度和湿度以及其他环境因素,电线会损坏,并会导致短路。这是些正是无线门铃系统的优势。尽管无线门铃系统的成本较高,但与有线门铃系统相比,无线门铃系统的常规维护成本较低,前者需要经验丰富的人员进行维护。安装时,无线门铃系统的安装非常简单,不需要任何经验的人员。除此之外,无线门铃系统还具有摄像头,录像机等其他功能,外观时尚,并且完全是无线的,因此可以轻松安装在房屋的任何地方。 在本篇文章中,我们将使用Arduino制作一个无线门铃。我们将使用一个按键,按下该按键时将无线播放我们选择的旋律,以指示有人在门口。对于无线连接,我们将使用433 MHz RF模块。通常,RF模块必须始终随附有解码器和编码器模块,但代替解码器和编码器模块,我们还可以使用本文中使用的微控制器,例如Arduino。 所需的硬件 ● 射频模块 ● Arduino ● 蜂鸣器 ● 按键式 ● 面包板 ● 连接线 433 MHz射频模块 我们将在这个Arduino无线门铃中使用433 MHz无线RF模块。射频模块(Radio Frequency)由两个模块组成,一个模块接收数据,称为接收器

【华为云技术分享】盘点物联网常用开发板

扶醉桌前 提交于 2020-07-28 13:30:13
摘要: 本文主要介绍物联网中目前较为常用的几款开发板,为大家带来不同开发板在功能和使用上的一些差异性功能。 1 引言 众所周知开发板是物联网架构中的感知层智能设备,这类设备通常有芯片、通信模组、以及操作系统组成。当然不同的开发版在功能以及使用上可能存在着一定的差别,下面为大家介绍几款常用的物联网开发板。 2 常用开发板 2.1 Arduino开发板 2.1.1 简介 Arduino开发板本着让用户简单使用而且开源的设计理念,具有灵活便捷、入手门槛低、同时具有丰富接口、多功能、易扩展等优点,因此在电子设计领域应用较广。目前市场上Arduino开发板的种类非常多,如Arduino UNO/UNO R3,Arduino101/Intel Curie,Arduino Micro,Arduino Ethernet,Intel Galileo 开发板等。该类开发板上手极快,操作简单,价格相对要便宜一点。 2.1.2独特优势 开放性,Arduino是起步较早的开源硬件项目,它的硬件电路和软件开发环境是完全公开的。 易用性:简单易用,无需安装额外驱动,采用类C语言,主函数中只涉及setup和loop连个模块。 易交流:Arduino已经划定了一个比较统一的框架,一些底层的初始化采用了统一的方法,对数字信号和模拟信号使用的端口也做了自己的标定,初学者在交流电路或程序时非常方便。 2.1.3

学编程不知如何入门?10 年经验的底层开发程序员,教你如何入门!

我只是一个虾纸丫 提交于 2020-07-26 09:20:35
“师傅领进门,修行在个人”。Github上一位拥有10年底层开发经验的老程序员gurugio,整理了一套适合嵌入式或底层开发(Low-Level Programming)的程序员入门指导。来帮助众多的初学者成为一名初级的底层开发程序员和Linux内核工程师。 他在底层开发拥有超过10年的从业经验,一直从事以下的工作: 80x86汇编编程 硬件设备与Atmel芯片和固件 Unix的C语言系统编程 Linux中的设备驱动程序 Linux内核:页面分配 Linux内核:块设备驱动和md模块 一、什么是底层开发? 底层开发是非常接近机器的编程,使用底层开发语言(如C或汇编)。这与使用高级语言(例如Python,Java)的程序员进行编程不同。 维基百科:底层开发 系统编程与底层开发的一个非常接近的概念。该页面包括系统编程中未包含的硬件设计和固件开发。 维基百科:系统编程 系统编程包括从硬件组件到Linux内核的内容。这里你能通过文档落得理论基础,但一页文档永远不会覆盖所有层的细节,因此本文档的目的是作为底层开发的起点。 二、理论 底层开发有两个背景理论: 计算机体系结构 操作系统 可以在网上找到很多好的课程。理论是理论,只需了解课堂上的内容大纲,打好理论基础。 三、编程语言 1.部件 8086汇编编程与emu8086包涵: CPU和计算机体系结构的基本概念 C编程语言的基本概念

Python Serial communication Arduino (Teensy) to Raspberry Pi

十年热恋 提交于 2020-07-19 08:50:39
问题 I have managed it to write from my arduino (Uno) to my Raspberry Pi 3 via Serial. If I use the same python script on the pi side, and the same Sketch on arduino side, but using a Teensy instead, I cant read any output from my Arduino. Is there any difference between thes arduino Uno and the teensy depending on Serial communication? Arduino sketch: void setup() { Serial.begin(115200); } void loop() { delay(1000); Serial.println("10.7;0.7;FFFF:FFFF:FFFF:FFFF:"); } Python script on my Pi: import

Python Serial communication Arduino (Teensy) to Raspberry Pi

这一生的挚爱 提交于 2020-07-19 08:49:03
问题 I have managed it to write from my arduino (Uno) to my Raspberry Pi 3 via Serial. If I use the same python script on the pi side, and the same Sketch on arduino side, but using a Teensy instead, I cant read any output from my Arduino. Is there any difference between thes arduino Uno and the teensy depending on Serial communication? Arduino sketch: void setup() { Serial.begin(115200); } void loop() { delay(1000); Serial.println("10.7;0.7;FFFF:FFFF:FFFF:FFFF:"); } Python script on my Pi: import

Java based Microcontrollers? [closed]

二次信任 提交于 2020-07-17 06:16:47
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Improve this question I have been looking into micro-controllers and was wondering if the majority of them are C/C++ based? I am quite proficient in java and want to ask you guys if anyone knows of a good cost efficient, java-based micro-controller I could look into. All answers are

Is there a way or tutorial for converting Arduino code to C code?

十年热恋 提交于 2020-07-17 05:50:20
问题 I know that this question is general, but I couldn't find a tutorial or a good coding way to convert Arduino code (I mean the code that we are writing on Arduino software and it doesn't matter for Arduino Uno or Mega or ... ) even if a small sample. Is there a tutorial? I just want to learn the technique, and I know that it depends on the project. 回答1: Arduino code is , more or less, C code. The unique things that happen with Arduino is that the code is preprocessed (for example, they give

Android app not synchronized with Arduino Serial communication

走远了吗. 提交于 2020-07-08 22:25:48
问题 I have a simple sonar arduino project so that it prints the distance every second. I have implemented an android app using UsbSerial to communicate with my arduino. So far so good, I am able to receive data and the data I receive is correct, but the problem is that the values are sometimes not properly sent. Here is the sample output I receive: data: 7 data: 1 data: data: 71 and here is the code that generates output: private UsbSerialInterface.UsbReadCallback mCallback = new

Arduino IDE (Win10) crashes when I launch the program

為{幸葍}努か 提交于 2020-07-01 17:01:37
问题 My Arduino IDE (ver 1.8.12 on Win10) crashes when I launch it. Running the arduino_debug.exe I get this error message. C:\Program Files (x86)\Arduino>arduino_debug.exe Set log4j store directory C:\Users\volke\AppData\Local\Arduino15 Loading configuration... Initializing packages... java.lang.NullPointerException at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:134) at processing.app.BaseNoGui.initPackages(BaseNoGui.java:483) at processing.app.Base

Arduino IDE (Win10) crashes when I launch the program

房东的猫 提交于 2020-07-01 17:00:51
问题 My Arduino IDE (ver 1.8.12 on Win10) crashes when I launch it. Running the arduino_debug.exe I get this error message. C:\Program Files (x86)\Arduino>arduino_debug.exe Set log4j store directory C:\Users\volke\AppData\Local\Arduino15 Loading configuration... Initializing packages... java.lang.NullPointerException at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:134) at processing.app.BaseNoGui.initPackages(BaseNoGui.java:483) at processing.app.Base