博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
PIC Tutorial Hardware
阅读量:7272 次
发布时间:2019-06-29

本文共 6206 字,大约阅读时间需要 20 分钟。

 

The hardware required consists of a number of small boards (built on Veroboard), which connect together via ten pin leads using Molex connectors. The first board () carries the PIC16F628 processor and 5V regulator - the board can be fed from a simple 9V battery. Some of the later tutorials will require two processor boards, this is the reason for the second connector on PortB - the two processors will communicate with each other over a standard 9600 baud serial bus, the second board can be either powered from the first (using a four wire connection lead), or powered from it's own supply (using a three wire connection lead). The lead consists of a ground wire, RB1 to RB2, RB2 to RB1, and an optional 5V wire. RB1 and RB2 cross over so we can experiment with the built-in hardware USART as well as software serial communications.

I've added a , based on the PIC16F876, this adds a third port, and includes 5 channels of 10 bit analogue input - the existing tutorials based on the PIC16F628 should work with a few slight changes, these are explained on the , as I'm running the 16F876 at 20MHz (5 times faster than the 16F628) the delay routines will need altering as well.

The second board () carries eight LED's with associated series resistors, and is used in the first series of tutorials. The third board () provides a row of four switches, and four LED's (so you can do some exercises without needing the previous LED board). The fourth board () only has a variable resistor (contrast) and a single resistor (pull-up for RA4), the actual LCD module is mounted off board and connected via another 10 way Molex connector, this allows you to plug different LCD's in. The fifth board  () provides an interface for a standard PC analogue joystick, giving access to the two analogue controls and the two buttons. The sixth board () has an Infrared transmitter and receiver, using two of them with two processor boards we can experiment with Infrared communication. The seventh board () uses a standard EEPROM 24Cxx series (I used a 24C04 and a 24C256). With I2C there are a great many components you can connect to the bus, the basic software interface remains pretty well the same, except that some chips (like the 24C256) use an extended addressing mode to access more memory, the standard addressing mode can only access 2kB (8 x 256 byte pages). I'll be adding some other I2C based boards later, they will use the same basic I2C routines as the existing I2C EEPROM board does. The eighth board () implements a battery backed clock, using a PCF8583P chip, and the ninth one () introduces analogue to digital conversion, using a PCF8591P chip. The tenth board () is very simple, it provides four push button switches for use with the other I2C boards. The eleventh board is the  board, and the twelfth is an  using the standard MAX232 chip. The thirteenth board is the , a simple board consisting of 4 small NPN driver transistors and associated components, it's intended for use with stepper motors removed from old 5.25 inch floppy drives or similar. The board includes a link to feed the motor from the processor 5V supply, or with that removed you can feed it from an external 12V supply to get more power from the motor - but for demonstrating how to use a stepper motor the 5V supply works fine. The fourteenth board is the , an extremely simple board to connect a 4x4 HEX keypad (or a 4x3 numeric keypad) to one port of a PIC. The fifteenth board is the , this uses a couple of PNP transistors to multiplex the two 7 segment sections - I've used BC177's, but it's not critical, and small signal PNP transistor should be fine. The sixteenth board is the  board. The seventeenth board is the , this provides two analogue inputs of 0-10.23V, and a 2.5V precision voltage reference IC. Boards number eighteen and nineteen comprise a matching pair of, one containing a licence free wireless transmitter module, and the other a licence free wireless receiver module. The twentith board is the, the largest board so far containing an 8x8 matrix of 64 LED's - basically a larger example of multiplexing that the previous 7 Segmant LED Board.

The various boards.
The main 16F628 processor board (two required later).
A 16F876 based processor board.
A 16F877 based processor board.
Eight LED's for displaying the outputs from one port.
Four pushbutton switches for connecting to one port.
An LCD text display board, in 4 bit mode, connecting to one port.
A board for connecting an analogue PC joystick.
An Infrared transmitter/receiver board (two required).
An I2C EEPROM board.
An I2C battery backed clock board.
A four channel A2D converter via the I2C bus.
Four push buttons for use with the I2C boards.
An RS232 interface board.
A stepper motor driver board.
An interface for a HEX keypad.
An interface to a dual 7 segment LED display.
Provides two analogue inputs, and a precision voltage reference.
Two boards, comprising TX and RX wireless modules.
A large board containing an 8x8 matrix of 64 LED's
Next Board To be arranged!.

I obtained the Molex connector parts from , for the PCB part there are two options, the first has fully open pins, the second has plastic locking guides at the back, which means you can't get it on the wrong way round or out of step - use which ever you prefer, I initially used the open ones, but used locking ones on my second processor board and the IR Board. You can buy an expensive crimping tool for fitting the Socket Terminals to the wire, but I simply soldered them in place - it's a little fiddly, but reasonably easy - once the terminals are fitted on the wire they are easily pushed into place in the socket housing. I used a blue wire to mark pin one, and the rest were all white. I made a number of leads up, about 12cm long, with connectors at both ends, and a single ended one which solders to the LCD module. A special longer one, with only 4 wires (two of them crossed over) was made for cross connecting the two processor boards.

Connector parts used.
Part Description RS Part Number Quantity
PCB Header (non-locking) 467-582 1 Pack (10)
PCB Header (locking) 453-230 1 Pack (10)
Socket Housing 467-633 1 Pack (10)
Socket Terminals 467-598 1 Pack (100)

转载地址:http://jqncm.baihongyu.com/

你可能感兴趣的文章
ES6——ECMAScript与Javascript
查看>>
django 1.8 日志配置
查看>>
排序算法
查看>>
什么?财务也要软件测试?
查看>>
JAVA 正则表达式、汉字正则、 java正则代码
查看>>
JS中使用EL表达式
查看>>
Spring之注解
查看>>
oracle之 any、some、all 解析
查看>>
MyEclipse 8.5 快捷键
查看>>
Codeforces A - Bear and Prime 100(交互题)
查看>>
关于爬虫个人认为难度很高的两点
查看>>
vue脚手架初始化的项目 npm run build 无效,没有反应
查看>>
Angular4 —— NgModule
查看>>
Python爬虫(三)--百度贴吧
查看>>
zookeeper+kafka集群的安装部署
查看>>
poj(1458)(最长公共子序列)
查看>>
Source Insight 中文注释为乱码解决办法(完美解决,一键搞定)
查看>>
Ubuntu、Sql Server卸载心得
查看>>
linux系统常用命令(一)
查看>>
NOIP2018提高组省一冲奖班模测训练(二)
查看>>