Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
**broken link removed** also seems to be a nice solution. You just communicate with your PC through the UART interface of your PIC, which is very easy. It has a standard pitched connector so you can just plug the module onto a breadboard or solderboard.
Just download the source code (written in C) for the picKIT2 from the site of microchip. Open it in MPLAB and recompile it for the 18F4550. The picKIT2 schematics are available, or use a simplified schematic.
Hi
It is possible to use larger variables in the 16F and 18F PIC series too, with a trick in the linker script. A detailed explanation on how this can be done is described for example **broken link removed**.
Another link that explains some basic but useful sensors and how they can be used for robotic obstacle avoidance: **broken link removed**. This **broken link removed** might also be helpful, it explains a very basic robotic task using, tracking the light, using 2 light sensors.
Hi
Programming the internal EEPROM is not that difficult. For MPLAB, this is for example explained in **broken link removed**.
An external EEPROM is just external non-volatile memory. Normally, you don't put program code here, only data.
My experience is that if you have already some programming skills, it is pretty easy to switch from one programming language to another. You just have to get used with the new syntax.
To quickly get used to the basic of some language, you can try following some simple tutorials. There are...
Hi
You can find the basics to program your microcontroller and to independently drive two motors using the hardware PWM generator **broken link removed**. It explains everything you need to know to drive a motor and shows a simple example of a robot tracking the light. The motor driver used on...
Hi ptte
you can have a look at these tutorials, they use the same PIC as you do and explain how to configure and use the ADC with multiple channels and how to communicate with the PC through RS232:
**broken link removed**
**broken link removed**
Hope this helps
Re: 16x2 LCD
When you are programming in c, you can have a look at **broken link removed** which explains how to initialize and drive an lcd display using an easy to use library. Although the tutorial uses an PIC18Fxx, the code should also work on your PIC.
You can purchase a PICkit2 (clone) on a online shop. The original can be bought directly on the site of Microchip, or clones for example **broken link removed**.
In the end, everything you place on the PIC is translated into assembly code...
So, you can write your program code in whatever language you want. But you have to take care that the interrupt vectors and program vectors are defined correctly and match between the bootloader code and the program...
With one sensor, if the sensor looses track, you have to guess in which direction the object has moved. But if, as you say, the object can only move into one direction, the problem is very easy to solve:
repeat forever:
while (no objected is detected)
turn
end while
end repeat
The...
Re: PWM frequency ??
It depends on the goal... My experience is that it works with both low frequencies (100..1000Hz) and high frequencies (10..50kHz).
Most motors still run smoothly with low PWM frequencies. With low PWM frequencies, you will have less switching losses if you use cheaper...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.