Programming Arduino Projects with the PIC Microcontroller: A Line-by-Line Code Analysis and Complete Reference Guide for Embedded Programming in C

Ward, Hubert Henry

  • 出版商: Apress
  • 出版日期: 2021-10-29
  • 售價: $1,900
  • 貴賓價: 9.5$1,805
  • 語言: 英文
  • 頁數: 748
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484272323
  • ISBN-13: 9781484272329
  • 相關分類: Arduino嵌入式系統
  • 立即出貨 (庫存=1)

相關主題

商品描述

Preface: The Arduino Programs
Chapter 1: IntroductionThis chapter will set up the basics and cover the following: - What is a microcontroller- What are the main differences between the Arduino and the PIC- What are the aims and objectives of this book- How the book will workEach chapter looks at a different Arduino project creating a practical circuit built of vero board with the full program listing.Each program will have a full line by line analysis of all new instructions detailing how they work and what they are doing.
Chapter 2: What You Will Need- What you will need to use the book, such as a minimal approach; where the reader can just try the programming at no cost by simulation within MPLABX. Then use an inexpensive PIC programming option at around 30 to a full prototype board costing from around 70 to 150.- An introduction to MPLABX as to what it is and how you create a project and simulate a simple program.
Chapter 3: Our First Programs- We start with the first projects: Flashing a simple LED- Running a simple seven segment display.- As we write these programs we will look at creating our first header file for the configuration words.- As we use new instructions; as this is the first program all the instructions will be new, we explain how the instructions work and how they can be used to achieve what we want.- We will look at building the circuit on vero board by drawing the circuit diagram, the vero board plan what components and how they work and how to solder them.
Chapter 4: The 7 Segment Display and the 8by8 Matrix Display- This will look at the next two projects: The 4 seven segment display & 8by8 Matrix Display - This will mean we will look at the ADC module how it works and how we use it. Also we will look at the LCD with a full explanation of how it works and how we use it. We will also make our second header file for the LCD. We will also look at arrays and how we can use them.
Chapter 5: The Joystick Controller, The Ultrasonic and PIR Sensors- This will look at two more projects: the Joystick control and the Ultrasonic and PIR Sensors- The stepper motor linking that with the joystick control.- The ultrasonic sensor linking it with the buzzer.
Chapter 6: The Servo Motor and The Rotary EncoderThis will look at three more projects- The servo motor- The rotary encoder.- The RGB led- This will look at PWM as to how we can use it to create a square wave and the compare aspect of the CCP module.
Chapter 7: Interrupts and a RTC and The DS1307 RTC Module- This will look at a real time clock using interrupts and an external crystal. It will then look at the DS1307 RTC Module.- This will explain what interrupts are and how they work and how we can use them.
Chapter 8: The DHT11 Humidity and Temperature Sensor and SPI and I2C Communication- This will look at the DHT11 humidity and temperature sensor. It will also look at the TC72 and TC74 temperature sensors.- This will look at SPI and I2C comms.
Chapter 9: The USART and Bluetooth Communication With HC-06 Module- This will look at the USART in the PIC. How they work and how they can be used. This will move onto how we can use the HC-06 bluetooth module to send the temperature readings from the TC72 and TC74 to your mobile phone.
Chapter 10: DC Motors and Using a Keypad- This will look at the DC motor and fan.

商品描述(中文翻譯)

前言:Arduino程式
第一章:介紹
本章將建立基礎並涵蓋以下內容:
- 什麼是微控制器
- Arduino和PIC之間的主要差異
- 本書的目標和目的
- 本書的運作方式
每個章節都會介紹一個不同的Arduino專案,使用vero板建立一個實用電路並提供完整的程式清單。
每個程式都會進行逐行分析,詳細說明新指令的工作原理和功能。

第二章:所需材料
介紹讀者需要使用本書的材料,例如最低限度的方法,讀者可以通過MPLABX模擬進行編程,而無需花費任何費用。然後使用價格約為30美元的廉價PIC編程選項,或者使用價格約為70至150美元的完整原型板。
介紹MPLABX,說明它是什麼以及如何創建項目並模擬簡單的程式。

第三章:我們的第一個程式
我們從第一個專案開始:
- 閃爍簡單的LED
- 運行簡單的七段顯示器
在編寫這些程式時,我們將介紹為配置字創建第一個標頭文件的方法。
隨著我們使用新指令,由於這是第一個程式,所有指令都是新的,我們將解釋指令的工作原理以及如何使用它們來實現我們想要的功能。
我們將通過繪製電路圖、vero板計劃、元件工作原理以及焊接方法來建立電路。

第四章:七段顯示器和8x8矩陣顯示器
這將介紹下面兩個專案:4個七段顯示器和8x8矩陣顯示器。
我們將介紹ADC模塊的工作原理以及如何使用它。同時,我們還將詳細解釋LCD的工作原理以及如何使用它。我們還將為LCD創建第二個標頭文件。我們還將介紹數組以及如何使用它們。

第五章:搖桿控制器、超聲波和PIR感應器
這將介紹另外兩個專案:搖桿控制和超聲波和PIR感應器。
將搖桿控制與步進馬達相連接。
將超聲波感應器與蜂鳴器相連接。

第六章:伺服馬達和旋轉編碼器
這將介紹另外三個專案:
- 伺服馬達
- 旋轉編碼器
- RGB LED
我們將介紹PWM以及如何使用它來創建方波和CCP模塊的比較方面。

第七章:中斷和實時時鐘以及DS1307 RTC模塊
這將介紹使用中斷和外部晶體的實時時鐘。然後,將介紹DS1307 RTC模塊。
將解釋中斷是什麼以及它們的工作原理以及如何使用它們。

第八章:DHT11濕度和溫度感應器以及SPI和I2C通信
這將介紹DHT11濕度和溫度感應器。同時,還將介紹TC72和TC74溫度感應器。
將介紹SPI和I2C通信。

第九章:USART和HC-06藍牙模塊的藍牙通信
這將介紹PIC中的USART。介紹它們的工作原理以及如何使用它們。然後,將介紹如何使用HC-06藍牙模塊將TC72和TC74的溫度讀數發送到您的手機。

第十章:直流馬達和使用鍵盤
這將介紹直流馬達和風扇。