My mistake Dave///not sure how PICaxe came up come to think of it.
Git er done!
My mistake Dave///not sure how PICaxe came up come to think of it.
Git er done!
Last edited by John_Mac; - 19th November 2009 at 05:41.
I did it. I am not sure what I did, but it will get me started. In addition there is a local Radio Shack just a couple miles down the road.
The Microchip Store WEB page said:
DV164121 - PICkit 2 Debug Express
23-Nov-2009 25-Nov-2009 49.99 1
I will need more, but at least I will have something.
Ken
Did you order a PIC or two?
Dave
Always wear safety glasses while programming.
Dave and John,
I think the second item in this description of a Debug Express is a PIC16F887. Isn't that the micro that I need?
Features of PICkit 2 Debug Express:
* PICkit 2 Development Programmer/Debugger
* 44-pin demo board with PIC16F887 Midrange PIC microcontroller
The PIC16F887 may be debugged directly without any additional hardware.
* A series of 12 Lessons on assembly programming that cover I/O, A/D converters, timers, interrupts, and data tables (All source code files are provided)
* A Debugging Tutorial on using the PICkit 2 as a debugger with the MPLAB IDE (Ch. 4 of the PICkit 2 User’s Guide)
* Getting Started in C tutorial on developing and debugging in C with a FREE CCS PCM™ Midrange C Compiler Demo* for PIC16F887(contained on the PICkit 2 CD) *2kWord Program Limit.
* Getting Started in C tutorial on developing and debugging in C with a FREE HI-TECH PICC™ LITE C Compiler with MPLAB IDE
* FREE! Microchip’s MPLAB IDE software for a complete code development environment
----------------Yep. This should get me started--------------
This powerful yet easy-to-program (only 35 single word instructions) CMOS FLASH-based 8-bit microcontroller packs Microchip's powerful PIC® architecture into an 40- or 44-pin package.The PIC16F887 features 256 bytes of EEPROM data memory, self programming, an ICD, 2 Comparators, 14 channels of 10-bit Analog-to-Digital (A/D) converter, 1 capture/compare/PWM and 1 Enhanced capture/compare/PWM functions, a synchronous serial port that can be configured as either 3-wire Serial Peripheral Interface (SPI™) or the 2-wire Inter-Integrated Circuit (I²C™) bus and an Enhanced Universal Asynchronous Receiver Transmitter (EUSART). All of these features make it ideal for more advanced level A/D applications in automotive, industrial, appliances or consumer applications.
----------------------------------
I am going to need a power supply as I would rather the PIC not share the battery that drives the motor. It is a 7.2v and has plenty of work cut out for it just making the car go fast. Initially I think the PIC gets its power off the USB cord.
I am going to need some relays and some surge eating capacitors.
I am going to need to drive the relay.
I'll need hook up wire and a soldering iron and solder and whatever the modern proto kit uses.
I'll need a light sensor and a way to give it tunnel vision.
What else??
Ken
Ken
I'm not sure what the demo board really is that comes with the PICKIT2. If it has to be soldered, you may want to consider getting a proto or bread board to do your prototyping. This is a board with holes into which you can place jumper wires (which you can buy a box of different lengths already cut and bent) and make connections without soldering Typically, I need to mess around with the circuit to make it work or optimize it. Soldering and unsoldering really impacts my ability to try different things and make progress. I save soldering once the circuit has been fully debugged. Also, I would typically put a voltage regulator IC such as the 7805 to provide clean regulated power to the PIC on the proto board. I also use In Circuit Serial Programming (ICSP) using a 6 pin header that the PICKIT2 plugs right into to program the PIC. I don't want to have to pull the chip out every time to program it.
I usually break my project up into logical units and test individually. If you are going to control the throttle with the PIC, you could build a circuit to do this and the PWM code to control it. Same for steering, test out servo control with the kinds of inputs you expect. You may find that the PIC cannot actually drive a steering servo with its own power supply. You may have to provide the control signal from the PIC, but provide a separate power supply for the servo.
Same is true for the light seeking hardware and control software (which will be a bit challenging I think) and your manual/auto relay switching.
Only when all the pieces work, do I attempt to integrate. Even then, one at a time. Thus you can see the benefit of a proto board without soldering (at least for me).
You are also quite right to isolate the power for the motor from the electronic control supply. There are big spikes on it and would be very hard to clean up.
I found an oscilloscope extremely useful in debugging the PWM control circuit and hardware. You can learn a lot about the hardware and software if you can look at the signals.
You may know all this, and can just wire it up, program it and it will all work. If my approach is different than what you want to do, just say so and I will back away from the keyboard
Hope this helps
John
Last edited by John_Mac; - 20th November 2009 at 02:48.
Professionally I did digital hardware design, prototype, build and ship. That ended in 1973. I was working for CODEX. At that time I was promoted to management. I was that long ago? OMG!
I did not like management. I stepped down after a few years (we had a parallel salary scale) and went into programming.
I am now retired. I have forgotten more than I ever learned. I probably would not recognize a modern oscilloscope. Maybe I should go to a flea market to get one made by TI. I haven't seen them yet on Antique Road Show. (A friend of mine in that business mentioned the other day that Heath Kit radios are rising in value.)
I have some design images in my mind for this RC/autonomous vehicle.
The modern acronyms are driving me up he wall. I need to get something in my hands soon!
Ken
I did not think that Texas Instruments sounded correct when I wrote that last post. They were, of course, Tektronics oscilloscopes that danced to my touch oh those many years ago.
Ken
Bookmarks