I figured I could steer the car....
John,
My thought was that my light detector would be on the front of my car. The servo searching capability could be done by steering right and left just a little bit. This way the car goes directly to the light.
I imagine that once it gets there, the student operating he RC transmitter will be able to see it and retake control. These things go way fast under RC control. I image it creeps when autonomous.
Make sense to you?
I am having a difficult time figuring out what Basic Stamp starter kit is the best for me. I am USB oriented. I am guessing that I should spring for the 160 bucks for the BASIC Stamp Discovery Kit - Serial (With USB Adapter and Cable)
Your thoughts please. I'm going to bed now. It is eleven o'clock out east.
Ken
I am not wedded to Parallax..
John and Dave,
I am more than willing to go with PICaxe. We have a MicroChip outlet here in middle Massachusetts close enough for me to enroll in a course or two.
https://secure.microchip.com/RTCV2/C...e.aspx?rtcid=5
I am comfortable with C. Many years ago I coded in Assembly. (Funny thing there. I read the Wikipedia definition of PIC. It talked about a Harvard architecture. This description reminded me of the AN/FSQ7 which did the SAGE Air Defense of the USA in the 1950's. That computer was made of vacuum tubes. It read radar data off drums. The PIC Accumulator and Register structures sound similar. That was my first programming job - Lincoln Laboratory)
Please help me select a PIC product kit that would get me started. I need to have that nudge to dig out my soldering iron and borrow an oscilloscope.
Ken
I have the .pdf copy of the PICaxe manual
I have on my computer screen the 101 page PICaxe Manual1.
I don't think I have enough ink to print all 101 pages. I am too old to be comfortable with reading a whole manual on screen. Sigh...
Ken
I would appreciate a suggestion for PIC kit
John,
You suggested that I use a PICaxe kit that contains a power supply and a proto board etc.
Trouble is I have been trying to figure out which one that is.
Would you be willing to suggest a PICaxe kit model number.
Ken
I thought a PIC came with it.
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
Please do not back away from the keyboard
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
My RC car has one motor and one servo
John,
My RC hobby level car has one powerful motor and one servo. The motor drives both the front and the back tires. The servo positions the steering. The RC has three channels. One is not used.
I do not know how to draw a circuit diagram on a computer. What application do you use?
You mentioned a six pin ICSP header. I have no idea what that is. Wikipedia says, "Most PICs that Microchip currently sell feature ICSP (In Circuit ... special headers ". I can not picture that. I am acronym deprived.
I got an email from Microchip today telling me that my order has been shipped. I will wait for it to arrive then go to Radio Shack to see what they sell that looks like what I got. The man there seemed very helpful.
I plan to switch between the two PWM signal aimed at the ESC. Not the power to the motor.
I am concerned about the power because the radio receiver on my car gets its power from the 7.2volt battery via the ESC. I do not want to power the PIC from that source. A common ground is no problem.
You wrote:
"If you have a standard setup with 3 wire servo cables, you need to switch the signal wire only (this has the PWM signal on it). The power (red typically) and ground (black typically) can be common to all the components. You will need a common ground for all this stuff."
I do not want the power to be common to all components. I want the PIC to have its own supply. Yes, it is the white signal line into the ESC that i wish to switch, but that implies common power.
What application do you use to draw a circuit diagram?
Ken
1 Attachment(s)
Attempting to post an attachment
John,
I want to see if I can send you a .jpg picture of my first scribbles with McCAD. I just uploaded McCADtest.jpg, Does it somehow get attached to this posting? From viewing the Preview apparently the answer is yes.
Ken
the atomic powered matter transporter
Quote:
Originally Posted by
mackrackit
Hey Adam,
Do not be a stranger...
I think Ken could really benifit from your insight on a project like this.
You guys are pretty much on top of the whole “Getting Ken up and running with a PIC” mission.
We should caution him and other “newbie PIC users”:
Start slow. Before diving into the atomic powered matter transporter project, blink a LED .
Then make a switch toggle a LED.
Baby step your way, to world dominance.
We are all reading this thread and pulling for Ken to continue with this excellent idea.
-Adam-
It arrived. Today my micro. Tomorrow the world!
I looks so innocent - so small. It is difficult to imagine it can cause me so much frustration and consternation. Do I need to be careful with static electricity?
Happily I have located a dust covered oscilloscope which should arrive this week. Thanks for the support. It feels good!!!
Ken
Am full of turkey now. Back to basic(s)
I am having a difficult time with the forest of Microchip .pdf files.
Evidently my PICkit 2 Debug Express does not contain a compiler. I assume it contains an assembler, but I have found neither the specs for assembly language nor the assembler executable itself. Any suggestions?
What higher level language do you all suggest? Which version is the best. How much does it cost?
Ken