PIC 18F-series MCU dev-board

 

The main aim of this paper is to study and create a general purpose printed circuit board for general application in the field of robotics using a PIC 18F4550(Peripheral Interface Controller) microcontroller as the heart of the circuit. Different types of robots have different requirements. The task at hand is to study these requirements and create a general purpose Printed Circuit Board which can be used as the circuitry of a number of different kinds of robots. An ideal Circuit design would utilize all the functions of the microcontroller being used. The main features of our robot’s brain are analog to digital conversion, pulse width modulation (can be thought of as digital to analog conversion), communication techniques. We also need to provide signals to govern our relay system and a way to connect to mechanical appendages. All these will be inculcated in our design.

Over the years we as human being have fantasized of creating a being as superior as ourselves, which has eventually led to our fascination with robots. A robot is analogous to a human being. Just as we have five senses that govern our actions, every kind of robot has certain requirements including: certain number of sensors, a brain for processing the information from the sensor and certain number of outputs required for performing a task based on the input from the sensors. Let’s take the example of a simple task, such as cleaning a table. Our eyes take images of the table, which are then studied by our brain to determine the dirty parts and tell our hands to clean those portions of the table.

To perform this task our brain employs a certain algorithm which links our eyes to our hands. This same algorithm can be reproduced in our robot. The question is, what kind of inputs do our sensors provide to our robot’s brain (the PIC microcontroller in this case), and in what form will the brain provide us with outputs? The sensors maybe light sensors, ultrasound sensors, heat sensors, infrared sensors etc.The output may either travel to our relay system directly, or we might need to transfer data from one point to another, or transfer data from our brain to a display unit (for example, a 16x2 LCD screen), when our sensors provide a particular input to the brain. Above all, we need to establish a link between the programming platform and our robot so we can program it to perform the given task. All these functions will now be incorporated into our design.

2. Circuit Design


I have selected the PIC 18F4550 as the heart of the controller due to its self-programmability and support for a large number of hardware peripherals. By self-programmability we mean that this device can write to its own program memory space under internal software control. By using a bootloader routine, located in the protected Boot Block at the top of program memory, it becomes possible to create self-modifying applications.

This circuit was simulated in National Semiconductor’s Multisim v10 and the Printed Circuit Board was designed in Diptrace v2.1.The final design of the board can be seen in figure given. 

2.1. Building a basic USB Development Board

To build an USB development board based on a PIC18F4550 we require the following

  1. ·         A 20MHz crystal oscillator & two 15 or 22pF associated capacitors.
  2. ·         A USB-B or USB-A connector powering the PIC (Vss & Vdd) and linked to D- & D+ pins.
  3. ·         A 'decoupling' capacitor between Vss &Vdd (100nF &eventually another between 1 and 10uF )
  4. ·         A 'decoupling' capacitor between Vss &Vusb (220nF min, 470nF is also good)
  5. ·         A switch boot for hard reset on MCLR'
  6. ·         A switch reset for entering in Boot mode on RB4.

 

  1. To introduce self-programmability we have to first program the microcontroller using In-Circuit Serial Programming. The Boot and Reset switches are used to toggle the board between Bootloader mode and Execute mode. In the Bootloader mode, the microcontroller is statically programmed. After that it is transferred into the Execute mode, where the execution of the code takes place.

2.2. Sensors Interfacing

Every kind of robot that we build needs a certain number of sensors, which may be light sensors, heat sensors, ultrasound sensors etc. These sensors require electric power. To maintain the output within a certain range (usually 0-5V), we provide five 3 pin sensor ports with the centre being the output and the rest of the pins being at +5V and GND (for reference). The sensors output are connected to the Analog to Digital Conversion pins* of the PIC 18f4550 IC. The output of the sensors, which was initially analog, will now be converted into a digital from which can easily be understood by the processor. Also, two potentiometers that act as an exterior reference for the microcontroller have been connected to further ADC ports.

2.3. Interfacing with external Controlling Devices

A 38Khz Infrared Receiver Module, with TSOP 1238 IC(produced by Vishay Instruments) as the centre, has also been added to introduce one-sided serial communication with an external device. This provides stimulus from an external device, which governs the functioning of the robot. This board has also been provided with an extra port for pairing it with a wired remote that will offer speed control. The eight pins of the port on the bottom left of the board have been connected to the four input pins of the L293D IC, two pins have been used to offer speed control(the connections can be seen in Table 1)and remaining two pins power the external remote.

Also, as male jumpers have been connected to the pins of the ICs, we can easily connectan external communication circuit to our system for serial or parallel communication.

2.4. Interfacing with a Display Unit

With the purpose of establishing a way to communicate with the user via a Digital Display Unit, this board has been made compatible with a 16 by 2 LCD (Liquid Crystal Display) screen.

The 16-pin LCD that i used contains an internal backlight to enhance the display.

2.5. Interfacing with our Relay System

For running our relay system we use the L293D Integrated Circuit that will link our motors to our brain. For Speed control we apply Pulse Width Modulation (PWM) techniques. As they are edge triggered, the enable pins of the L293D are shorted with the PWM pins in our microcontroller (see Figure 3).The four input pins of the L293D have been connected to four Digital pins of the microcontroller, while the output pins are shorted with the connection of the motor.

This circuit can be used to control only Direct Current and Servo motors. DC motors can be connected to port M1 and M2.If we need to run more than 2 motors, an external L293D circuit can be connected to the system using the port on the far right of the PCB. Apart from DC motors, this board also allows us to utilize stepper motors (upto 8 pin). We limit he use of heavy motors due to the current limitation of the L293 D IC.

3.Conclusion:

The board i designed can be used to make the following types of robots:

  1. Line follower
  2. Grid follower
  3. Obstacle chaser/avoider
  4. Manual robots of any kind
  5. Legged Robots-Quadrupedal
  6. Micromouse
  7. Swarm Robots using external communication circuitry

This board will fulfill the needs of any student who is interested in basic robotics. Below is the pin connection of PIC18-F series 40 pins.

Pin number Connection
1 Reset Switch
2 Sensor1
3 Sensor2
4 Sensor3
5 Sensor4
6 Next switch (SPST)
7 Sensor5
8 Potentiometer1
9 Potentiometer2
10 Speed control (down)
11 Vdd
12 Vss
13 Osc1
14 Osc2
15 Buzzer
16 L293D enable2
17 L293D enable1
18 470nf Capacitor
19 L293D input1 / LED1
20 L293D input2 / LED2
21 L293D input3 /LED3
22 L293D input4 / LED4
23 USB connector type B (pin2)
24 USB connector type B (pin3)
25 Unconnected
26 Green LED4
27 LCD data
28 LCD data
29 LCD data
30 LCD data
31 1uf capacitor
32 1uf capacitor
33 Reserved
34 Green LED3
35 Green LED2
36 L293D Speed up
37 Select button (SPST)
38 LCD control
39 Green LED1
40 LCD toggle

 All the pins, which are in red, are the system configuration pin or can say, basic circuitry to operate PIC Microcontroller. Remaining are custom pins, which are set by me. Sensor1 to sensor5 are 5 analog pins which can be connected to any analog output giving device through the male connectors above LCD.

Next and select buttons are push buttons which are used to give active low when pressed. Potentiometers are also connected to analog pins, which are on the left of LCD in orange colour.

One is just connected to LCD, for its brightness. Hence i have not mentioned that in the list.

I hope that L293D pin connection will be clear to you, when you will read my article on L293D motor driver. Apart from this, there are 4 Red LEDs which are connected in parallel to input pins of L293D and 4 green LEDs which are just used for signal and indicating purposes on the board. For example: I used them to show auto caliberation of IR sensor in my code.

To setup and start programming PIC, follow my articles on pic intro and programming setup. I have also made an tutorial for you on blinking LED with  this PIC microcontroller board. You can also see some robotic implementation by this board here

 If you have any doubt or query, just contact me at my email address.

Comments

direct lenders of loans direct payday lenders bad credit payday loans direct lenders easy payday loans online payday cash advance loan direct lender loans direct lender payday loans direct payday loans hot show porn milf show webcam sex chat chat girl research writing research paper research papers research writing easy fast payday loans best cash loan payday loans direct lenders only direct lenders payday loans the best online payday loans easy online payday loans small online payday loans fast payday loans write college essays school papers school papers research papers instant loans online instant payday loans fast payday loans instant loans online payday online payday advance loan payday advance loan online payday advance loan

internet payday loans advance payday loans fast payday loans internet payday loans online payday loans for bad credit online payday loans for bad credit online payday loans for bad credit online payday loans for bad credit free porn show free porn cams free webcam porn free porn shows online payday loan lenders cash advance payday loan online payday loan lenders pay day lenders pay day loans same day loans faxless payday loans cash til payday loan instant online payday loan instant online payday loan best online payday loans direct payday lenders

internet payday loans payday advance loans loans fast payday loans quick loans 100 approval direct lenders payday loans payday loans lenders payday loans direct lenders free cam porn free webcam porn chat video free cam porn

write my paper for me argument essay argument essay argument essay a payday loan payday loan lenders payday advance loan money lender no credit check easy payday loans online payday loans online easy online payday loans easy online payday loans

chat porn erotic chat rooms free adult webcam chat chat rooms live porn cam bbw live cams live porn cams live porn cams best payday loan a payday loan payday loan a payday loan online payday loans direct lenders emergency loans no credit check direct payday loan lenders online payday loans direct lenders loans online instant approval online lenders online payday loan instant approval online payday lenders need assignment help college essay help essay service college essay help payday loans with no credit check direct payday loan lenders online payday lenders payday loan direct lender

essay writing assignment help dissertation help service scholarship essay essay checker best payday loan payday loans lenders best payday loan instant payday loans fast online payday loans fast payday loans cash advance lenders fast online payday loans buy essay online writing a paper buy essay online buy essay online same day payday loans online quick loans small online payday loans best payday loans

online payday loans instant approval fast payday loan best payday loan best payday loan direct payday loan lenders payday loans direct lenders quick loans no credit check bad credit payday loans writing my essay help write essay essays to buy writing my paper payday loans online direct lenders fastest payday loan installment loan payday loan direct lenders web cams porn lesbian show erotic chat rooms online fucking we do your homework essay writing homework help nyc writing a paper direct lenders payday loans payday loans lenders direct lenders payday loans direct lenders payday loans online essay cost accounting assignment help buy essay buy essay online research essay do my college work school papers school papers free xxx webcams free xxx webcams webcams porn free webcams

payday loan near me fastest payday loan a payday loan best payday loan payday loans online payday loans online payday loans online payday loans online free sex webcam chat free sex webcam chat free sex webcam chat free sex webcam chat online payday loan application faxless payday loans online payday loan application online payday loan application direct lenders payday loans direct payday lenders online payday loans online direct lenders payday loans direct lenders only live porn cams live porn webcam porn chat free porn cams online payday loans no credit check best payday loan online best payday loan online quick cash loan fast payday loans best payday loan fast payday loan payday loan payday loans bad credit payday lenders direct online payday loans for bad credit best cash loans online free cam porn free cam porn webcam asian free webcam porn

direct lender loans payday loans online direct lender direct lender payday loans payday loan direct lender paydayloan fastest payday loan online payday loans for bad credit online payday loan application free sex webcam pussy webcam webcam porn free sex webcam sex chat online webcam sex chat live cams sex chat free best essay writing service homework help history writing a college admissions essay do my assignment for me instant payday loans check into cash online payday loan application instant online loans

college essay help college essay help grad school essays college essay help fast payday loans fast online payday loans easy fast payday loans fast online payday loans direct lender loans bad credit payday loans direct lenders loans online bad credit loans online bad credit history essays paper writing writing my essay essay writing service payday loans lenders payday advance online quick cash loans advance payday loans online online payday loan payday loan lenders fastest payday loan fastest payday loan nude chats webcams porn free xxx webcams xxx webcams free sex webcam good chat rooms free sex webcam free webcam sex essay introduction help buy an essay do my assignment essay online

free webcam porn free sex chats free sex chats free webcam porn short term loans direct lenders short term loans direct lenders online payday loans direct lenders online payday loans direct lenders webcam pussy webcam pussy free web cam sluts live sex chat direct lender online payday loan lenders online payday loan application online payday loan lender payday loans online advance payday loans easy online payday loans cash loans writing my paper essay writing best essay writing service latin homework help nude show porn cams live porn cams live cams

payday online payday loans direct lenders payday loans bad credit online payday loans direct lenders free cam porn free porn cams free cam sex chat free cam porn no credit check loans best payday loan online spotloan payday bad credit loan paper writing service best essay writing service best essay writing service best essay writing service best payday loans online payday loans online online payday loans the best online payday loans payday advance loan loan cash payday faxless fast cash loan cash advance loan fuck show cfnm show show girls nude show live porn cams live webcam porn cam live porn bbw live cams help on physics homework argument essays college essay help argument essays

free sex webcam chat free sex webcam chat sex free online free adult webcam chat college paper writing service dissertation writing paper writing service buy research paper cheap payday loan direct lenders loan online payday advance loan instant online payday loan online dissertation writing solve my math problem my homework helper writing a paper payday loan no credit check direct lenders for bad credit online payday loan lenders best payday loan quick loans 100 approval quick loans quick loan quick loans payday loans online fast online payday loans payday loans online paydayloans online easy payday loan online payday loan application a payday loan a payday loan payday loans direct lenders payday loans lenders payday loan payday loans lenders

paper writing paper writing do my math problem writing my paper buy essay online buy essay online buy essay online buy essay online cash advance loan cash advance loan advance cash payday loan payday advance loan advance payday loans payday loan direct lender payday loans online direct lender loans online instant approval school papers research papers essay writer school papers argument essay argument essay writing a college essay argument essay research writing research report research report research writing good college essays writing a synopsis for a research paper college essay prompts argument essays free sex video chat porn live chat online sluts lesbian show

online loans no credit check instant approval best payday loan online advance payday loans quick loans 100 approval online payday advance loan online payday loans for bad credit online payday advance loan advance cash payday loan quick loan payday cash loan quick loans instant online loans easy payday loan installment loans no credit check 15 minute loans direct lenders best payday loan

online payday loan application online payday loan application online payday loan application online payday loan application online payday advance loan advance cash payday loan loans online payday loan application direct loan lenders pay day loans same day loans pay day loans dissertation research and writing for construction students essay writing service essay writing service essay writing my homework help research essay research writing research writing fast payday loans fast payday loans best cash loan fast online payday loans

cash advance lenders cash advance loan cash advance loan payday advance loan pussy webcam lesbian show online slave training webcam porn payday advance loans internet payday loans payday loans on line payday advance loans small payday loans no credit check payday loan payday loans direct lenders only direct payday loan lenders homework help woodlands history assignment help paper writing paper writing best cash loans online payday advance no credit check best payday loan best payday loan online

ЭкоЛес

Круглый лес
Круглый лес подразделяют на бревна и кряжи. Бревно - это отрезки ствола разной толщины. Диаметр которых бывает разный. Круглые лесоматериалы в зависимости от толщины (диаметра) делят на 3 группы: мелкие, средние и крупные. У хвойных пород мелкие в верхнем отрезе имеют диаметр 6-13 см, средние-14-24 и крупные - 26 см и более, у лиственных мелкие - 8-13 см, другие размеры, как у хвойных. В каждой группе бревна делят на сорта.
Длина бревен - 3-6,5 м с градацией через 0,5 м. В строительстве применяют бревна 2-го и 3-го сортив.Кряж - это отрезок от нижней части ствола длиной до 4 м.Тонки стволы деревьев толщиной в верхнем сечении могут быть 8-11 см, 3-7 см.Кряжи бревен на месте заготовки рекомендуется очистить от коры, чтобы они быстрее сохли и не завелся жук-короид.Зберигаты круглый лес надо поднятым от земли минимум на 50 см. При этом лес охраняют от намокания, заражения грибами и жуками-короедами. Торцы круглого лесоматериала рекомендуется замазать глиной, известью или мелом, чтобы они не растрескивались, а бревна, уложенные в штабеля, надо держать под навесом в тени, закрыв со всех сторон. Лесоматериал периодически надо осматривать и обрабатывать антисептиком против грибов и жуков-короедов.

Вагонка Киев

ИМИТАЦИЯ БРУСА Эко Лес

вагонка

ДОСКА ДЛЯ ПОЛА

вагонка ольха

Блок-хаус Киев

Имитация Бруса Киев

ДОСКА ДЛЯ САУНЫ ЭКО ЛЕС

Имитация Бруса Киев

https://eco-les.club/news/tip_vagonka_kiev
https://eco-les.club/news
https://eco-les.club/news/doska_dllya_pola
https://eco-les.club/news/bloc-hous
https://eco-les.club/news/vagonka_kiev
https://eco-les.club/news/doska_pola
https://eco-les.club/news/vagonka
https://eco-les.club/news/imitacia_brusa
https://eco-les.club/news/zagholovok_stat_i
https://eco-les.club/news/zakon
https://eco-les.club/news/host

essay online buy essay online ontario.ca homework help do my assignment free sex webcam online sex cam free web cam sluts free webcam sex free adult webcam chat free adult webcam chat free adult cam to cam free adult webcam chat research essay research paper research essay research paper best payday loans online the best online payday loans payday loan lenders emergency loans no credit check webcam amateur hot webcam girls sex free online bbw webcam

программа для поиска автомобилей в украине
Спекулянт

Для того что менеджер+по+поиску+автомобилей бы увидеть все возможности нашего сервиса в адресной строке браузера вашего компьютера введите : Spekulyant.in.ua и пройдите регистрацию, после чего вам будет доступно 2 дня бесплатного пользования. Если вы уже прошли регистрацию с телефона просто введите ваш емеил и пароль который вы указали при регистрации. Что бы получать уведомления о новых авто, Вам нужно
установить телеграм на свой смартфон.
Программа для автоматического поиска автомобилей.
сайт перекупщико в авто
сайты по продаже подержанных автомобилей
https://spekulyant.in.ua - сайты для перекупщиков авто
https://spekulyant.in.ua - автоматический поиск машин в интернете
https://spekulyant.in.ua - программа для поиска автомобилей в интернете
программа для перекупов Украина
программа для поиска автомобилей
программа для перекупщиков авто

instant payday loans instant online loans instant payday loans best payday loans online payday loan fast payday loans short term loans direct lenders online payday loans direct lenders good college essays good college essays good college essays write essays college paper college paper science homework help ks3 research paper

college essay help college essay help cpm.com homework help macroeconomics homework help quick loans quick loans quick loans payday advance live porn cam free cam porn free porn shows free cam porn essay writing homework online help where can i buy essays online write essay papers free webcams free bbw webcams free xxx webcams free sexy webcams no credit check payday loans instant approval a payday loan online payday loan application payday express

bad credit payday loans direct lenders online payday loan application payday online payday advance loan critical essay critical essay essay checker need help with essay payday loans online direct lender payday loan direct lender get a loan payday loan direct lender write my essay help me with homework research essay research essay fastest payday loan best payday loan emergency loans no credit check fastest payday loan

online payday loan application bad credit online payday loan application online payday loan application website that write essays for you critical essay buying an essay essay helper best payday loans online easy online payday loans easy online payday loans advance payday loans online easy online payday loans direct lenders of loans payday advance loans cash loans online same day loans same day loan paydayloans same day loans

free sex webcam chat chat webcams nude show free adult webcam chat online payday loans advance payday loans internet payday loans cash loan advance a payday loan payday loan a payday loan best payday loan homework help egypt essay writing dissertation writing essay writing service payday loans online direct lender online payday loan lender online payday lenders online payday lenders sex chat cam cam porn webcam amateur webcam pussy online payday loans payday loans payday loans online small payday loans

instant online loans payday loans online direct lenders instant online loans instant payday loans good college essays good college essays order research paper college essays best payday loan easy payday loan loans with no credit check bad credit payday loans installment loan internet payday loans no credit check loan internet payday loans direct lenders payday loans payday loans online direct lenders payday loans online direct lenders payday loans direct lenders

payday advance loans easy fast payday loans best online payday loans payday loans online no credit check payday loan cash loan lenders best payday loan online best payday loan online free webcam porn free webcam porn free live sex shows cam girl payday loans online direct lender online payday advance loan online payday loans direct lenders loans online research paper heading best essay writing service best essay writing service best essay writing service college essay writing services good college essays college essay websites that do your homework free adult webcam chat bbw live cams free adult webcam chat porn chat online payday loans direct lenders easy loans check into cash online payday loans direct lenders

payday advance no credit check small online payday loans small payday loans payday loans online free webcam porn live porn cam sex chat free virtual sex fast payday loans same day payday loans no credit check online payday loans direct lenders loans with no credit check free adult chat free porn chat erotic chat rooms free chat rooms college essay help college essay prompts transfer essays buy essays online installment loans no credit check online payday loans instant approval direct lenders payday loans payday loan direct lender

bad credit payday loans direct lenders easy cash payday loan bad credit payday loans direct lenders payday loans bad credit research paper writer college essay help college essay help college essay help fast payday loans fast payday loans quick cash loan fast payday loans payday loan direct lender payday loan direct lender online payday loans no credit check easy cash payday loan argumentative essay argument essay argumentative essay argumentative essay free webcam sex adult chat room free webcam sex free webcam sex buy essay online buy essays online art homework help need help on homework sex chat chat sex erotic sex chat sex chat cfnm show free porn show cam online nude show free sex chat cams amateur webcam girls live porn webcam web cam porn

payday advance loan payday loan direct lenders cash advance loan cash advance lenders homework help writing my paper writing my paper algebra help girl cams free porn cams free cam porn live porn cams buy essays online reviews grad school essays college essay help college essay help payday loans for bad credit a payday loan online payday loans direct lenders cash payday loans online

history homework helper math help online homework help essay writer free adult webcam chat free adult webcam chat free sex webcam chat free live sex shows getting a loan cash loans paydayloans quick loans

http://cialisbrx.com
cialis pharmacy discount
buy generic cialis online
buy tadalafil online cialis
cheap cialis online

http://personalloansx1.com/
online lending companies
personal loans
long term loan for bad credit
personal loans

http://genericviagraonlinerx.us.com/
viagra 100mg street price
generic viagra online
how to get viagra online
generic viagra

Pages